[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-29 Thread via cfe-commits
@@ -1964,11 +1969,14 @@ bool Lexer::LexIdentifierContinue(Token &Result, const char *CurPtr) { /// isHexaLiteral - Return true if Start points to a hex constant. /// in microsoft mode (where this is supposed to be several different tokens). bool Lexer::isHexaLiteral(const char

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-29 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/70543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Handle CXXTryStmts (PR #70584)

2023-10-29 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/70584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-29 Thread via cfe-commits
@@ -817,7 +817,7 @@ For later versions of Visual Studio, no setup is required--> {IncludeMacroStack._Mypair._Myval2._Mylast - 1,na} {CurLexer._Mypair._Myval2,na} Expanding Macro: {CurTokenLexer._Mypair._Myval2,na} - cor3ntin wrote: @AaronBal

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-29 Thread via cfe-commits
@@ -1914,7 +1909,7 @@ class Preprocessor { /// Recompute the current lexer kind based on the CurLexer/ /// CurTokenLexer pointers. - void recomputeCurLexerKind(); + void recomputeCurLexerCallback(); cor3ntin wrote: I think renaming this one is a bit too

[clang] d8f5a18 - Perf/lexer faster slow get char and size (#70543)

2023-10-29 Thread via cfe-commits
Author: serge-sans-paille Date: 2023-10-29T18:17:02Z New Revision: d8f5a18b6e587aeaa8b99707e87b652f49b160cd URL: https://github.com/llvm/llvm-project/commit/d8f5a18b6e587aeaa8b99707e87b652f49b160cd DIFF: https://github.com/llvm/llvm-project/commit/d8f5a18b6e587aeaa8b99707e87b652f49b160cd.diff

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-29 Thread via cfe-commits
https://github.com/serge-sans-paille closed https://github.com/llvm/llvm-project/pull/70543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-29 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70381 >From 3fe63f81fcb999681daa11b2890c82fda3aaeef5 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH 1/2] [clang] Change representation of CurLexerKind

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-29 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70381 >From 3fe63f81fcb999681daa11b2890c82fda3aaeef5 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH 1/2] [clang] Change representation of CurLexerKind

[clang] d346c82 - [OpenMP] Associate the KernelEnvironment with the GenericKernelTy (#70383)

2023-10-29 Thread via cfe-commits
Author: Johannes Doerfert Date: 2023-10-29T11:35:34-07:00 New Revision: d346c82435f377984c2ff3d7d4b5e3942c72bc17 URL: https://github.com/llvm/llvm-project/commit/d346c82435f377984c2ff3d7d4b5e3942c72bc17 DIFF: https://github.com/llvm/llvm-project/commit/d346c82435f377984c2ff3d7d4b5e3942c72bc17.d

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-29 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70381 >From 3fe63f81fcb999681daa11b2890c82fda3aaeef5 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH 1/3] [clang] Change representation of CurLexerKind

[clang-tools-extra] [clang-tidy] Improve modernize-make-shared check (PR #70600)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes Improved modernize-make-shared check to support std::shared_ptr implementations that inherit the reset method from a base class. In GCC that class is called __shared_ptr. Fixes #64481 --- Full diff: htt

[clang] 91b9a66 - [clang-format][NFC] Reduce indent

2023-10-29 Thread via cfe-commits
Author: Björn Schäpers Date: 2023-10-29T20:55:12+01:00 New Revision: 91b9a661c21891dc06e1721a26478d5bfe53e4ed URL: https://github.com/llvm/llvm-project/commit/91b9a661c21891dc06e1721a26478d5bfe53e4ed DIFF: https://github.com/llvm/llvm-project/commit/91b9a661c21891dc06e1721a26478d5bfe53e4ed.diff

[clang] [clang-format] Fix annotating annotations after requires clause (PR #70602)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Björn Schäpers (HazardyKnusperkeks) Changes Fixes #69325. --- Full diff: https://github.com/llvm/llvm-project/pull/70602.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+2-1) - (modified) clang/unittests

[clang] [CodeGen] Revamp counted_by calculations (PR #70606)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes Break down the counted_by calculations so that they correctly handle anonymous structs, which are specified internally as IndirectFieldDecls. Also simplify the code to use helper methods to get the field re

[clang] [CodeGen] Revamp counted_by calculations (PR #70606)

2023-10-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 91b9a661c21891dc06e1721a26478d5bfe53e4ed 19dd7db8ab5f98a618c717944c96b34e604fbc30 --

[clang] [OpenMP] Directly use user's grid and block size in kernel language mode (PR #70612)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shilei Tian (shiltian) Changes In kernel language mode, use user's grid and blocks size directly. No validity check, which means if user's values are too large, the launch will fail, similar to what CUDA and HIP are doing right now. Depend

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-29 Thread via cfe-commits
https://github.com/daltairwalter created https://github.com/llvm/llvm-project/pull/70621 What should be done when "using namespace" has been abused or used in header files? This check will update all references to include full namespace qualification. >From f44d7746a990a3bd8e53de047a30baee4d

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff a8d0c86174b4e7355e250b3eb266e055df224f48 38df6a99730d64eb96945845b69ce7602ce3ddfa --

[clang] [clang] Remove diagnostic that came with `[[clang::preferred_type]]` (PR #70632)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes https://github.com/llvm/llvm-project/pull/69104 introduce a diagnostic that checked underlying type of an enum against type of bit-field that is annotated with `[[clang::preferred_type]]`. When I tried

[clang] [clang] Remove diagnostic that came with `[[clang::preferred_type]]` (PR #70632)

2023-10-30 Thread via cfe-commits
@@ -5928,28 +5928,6 @@ static void handlePreferredTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { S.RequireCompleteType(ParmTSI->getTypeLoc().getBeginLoc(), QT, diag::err_incomplete_type); - if (QT->isEnumeralType()) { -auto IsCorrespondingTy

[clang] b72732c - [clang][Interp] Handle CXXTryStmts (#70584)

2023-10-30 Thread via cfe-commits
Author: Timm Baeder Date: 2023-10-30T09:38:02+01:00 New Revision: b72732c37fd8d193cfa64e693b879dabdec813a5 URL: https://github.com/llvm/llvm-project/commit/b72732c37fd8d193cfa64e693b879dabdec813a5 DIFF: https://github.com/llvm/llvm-project/commit/b72732c37fd8d193cfa64e693b879dabdec813a5.diff L

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-10-30 Thread via cfe-commits
DaMatrix wrote: @zygoloid can you commit this? I don't have write access to the repository. https://github.com/llvm/llvm-project/pull/66894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [LoongArch] Fix ABI mismatch with gcc/g++ about empty structs passing (PR #70320)

2023-10-30 Thread via cfe-commits
https://github.com/heiher approved this pull request. https://github.com/llvm/llvm-project/pull/70320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Fix crash in CXXDeleteChecker (PR #70638)

2023-10-30 Thread via cfe-commits
https://github.com/Discookie created https://github.com/llvm/llvm-project/pull/70638 While inheritance can only be expressed if the class has a definition, in this case one of the types might be opaque to the analyzer. Fixes a crash encountered whie analyzing LLVM. >From 910445aacf8b87503990b

[clang] [clang][analyzer] Fix crash in CXXDeleteChecker (PR #70638)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Discookie (Discookie) Changes While inheritance can only be expressed if the class has a definition, in this case one of the types might be opaque to the analyzer. Fixes a crash encountered whie analyzing LLVM. --- Full

[clang] [clang][analyzer] Do not analyze opaque types in CXXDeleteChecker (PR #70638)

2023-10-30 Thread via cfe-commits
https://github.com/Discookie edited https://github.com/llvm/llvm-project/pull/70638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes When an LLDB user asks for the value of a static data member, LLDB starts by searching the Names accelerator table for the corresponding variable definition DIE. For static data members with out-of-class de

[clang] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)

2023-10-30 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff a902ca66428164b4f11dedf1c551393add511271 e3ae0862dd834ca54a096b3154bbbcc5a627014f --

[clang] [clang][analyzer] Do not analyze opaque types in CXXDeleteChecker (PR #70638)

2023-10-30 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. LGTM, seems to be a straightforward fix. Note that "whie" is a typo in the commit message. https://github.com/llvm/llvm-project/pull/70638 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [clang][analyzer] Do not analyze opaque types in CXXDeleteChecker (PR #70638)

2023-10-30 Thread via cfe-commits
https://github.com/Discookie edited https://github.com/llvm/llvm-project/pull/70638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add tweak for turning an unscoped into a scoped enum (PR #69481)

2023-10-30 Thread via cfe-commits
ckandeler wrote: ping https://github.com/llvm/llvm-project/pull/69481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Do not offer extraction to variable for decl init expression (PR #69477)

2023-10-30 Thread via cfe-commits
ckandeler wrote: ping https://github.com/llvm/llvm-project/pull/69477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Serge Pavlov (spavloff) Changes When instantiation function, a call to Sema::resetFPOption was used to set the FP options associated with AST node. However this function also cleared FP pragma stack, and it is incorrect. Template instanti

[clang] 8f11f98 - [clang][NFC] Assert not llvm_unreachable (#70149)

2023-10-30 Thread via cfe-commits
Author: Nathan Sidwell Date: 2023-10-30T07:37:42-04:00 New Revision: 8f11f984817ffe48725e35cffa0fdc45492497e9 URL: https://github.com/llvm/llvm-project/commit/8f11f984817ffe48725e35cffa0fdc45492497e9 DIFF: https://github.com/llvm/llvm-project/commit/8f11f984817ffe48725e35cffa0fdc45492497e9.diff

[clang] 7b2e009 - [clang] Robustify openmp test (#69739)

2023-10-30 Thread via cfe-commits
Author: Nathan Sidwell Date: 2023-10-30T07:39:45-04:00 New Revision: 7b2e0095bccb2f63e6b6cc8b8e524d206ebf8d69 URL: https://github.com/llvm/llvm-project/commit/7b2e0095bccb2f63e6b6cc8b8e524d206ebf8d69 DIFF: https://github.com/llvm/llvm-project/commit/7b2e0095bccb2f63e6b6cc8b8e524d206ebf8d69.diff

[clang] [clang] Refactor TBAA Base Info construction (PR #70499)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Nathan Sidwell (urnathan) Changes I noticed a few issues with `CodeGenTBAA::getBaseTypeInfo`. 1) `isValidBaseType` explicitly checks for a reference type to return false, but then also returns false for all non-record types. Just

[clang] [PowerPC] Support mcmodel=large for AIX (PR #70652)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiu Chaofan (ecnelises) Changes 7e42545 rejects unsupported mcmodel options, but large should be a supported model for 32-bit AIX targets. --- Full diff: https://github.com/llvm/llvm-project/pull/70652.diff 1 Files Affected: - (modifie

[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)

2023-10-30 Thread via cfe-commits
cor3ntin wrote: > > Per https://eel.is/c++draft/dcl.fct.def.default#2.2, the explicit object > > parameter of a defaulted special member function must be of the same type > > as the one of an equivalent implicitly defaulted function, ignoring > > references. > > I could use an explanation as

[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)

2023-10-30 Thread via cfe-commits
@@ -7748,6 +7748,24 @@ bool Sema::CheckExplicitlyDefaultedSpecialMember(CXXMethodDecl *MD, HadError = true; } } +// [C++23][dcl.fct.def.default]/p2.2 cor3ntin wrote: It applies to special member functions - Which excludes comparison. and

[clang] 526c9b7 - [clang][nullability] Use `proves()` and `assume()` instead of deprecated synonyms. (#70297)

2023-10-30 Thread via cfe-commits
Author: martinboehme Date: 2023-10-30T13:18:57+01:00 New Revision: 526c9b7e37fa12abc17eebc68f21c1d213477ba8 URL: https://github.com/llvm/llvm-project/commit/526c9b7e37fa12abc17eebc68f21c1d213477ba8 DIFF: https://github.com/llvm/llvm-project/commit/526c9b7e37fa12abc17eebc68f21c1d213477ba8.diff

[clang] [clang][nullability] Use `proves()` and `assume()` instead of deprecated synonyms. (PR #70297)

2023-10-30 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/70297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)

2023-10-30 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/70176 >From bd24d172c3ea66909748dca00fa368a7e4e9c358 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 25 Oct 2023 10:08:24 +0200 Subject: [PATCH 1/3] [Clang] Diagnose defaulted assignment operator with incomp

[clang] [AArch64] Implement reinterpret builtins for SVE vector tuples (PR #69598)

2023-10-30 Thread via cfe-commits
https://github.com/CarolineConcatto approved this pull request. Thank you Momchil for the changes. https://github.com/llvm/llvm-project/pull/69598 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-10-30 Thread via cfe-commits
https://github.com/mydeveloperday edited https://github.com/llvm/llvm-project/pull/70338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-10-30 Thread via cfe-commits
@@ -4648,6 +4648,10 @@ struct FormatStyle { /// \version 11 std::vector WhitespaceSensitiveMacros; + /// Ignore formatting in preprocessor definitions. mydeveloperday wrote: If you are changing this you need to regenerate the documentation https://githu

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-10-30 Thread via cfe-commits
https://github.com/mydeveloperday requested changes to this pull request. https://github.com/llvm/llvm-project/pull/70338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-10-30 Thread via cfe-commits
@@ -24153,6 +24153,23 @@ TEST_F(FormatTest, WhitespaceSensitiveMacros) { verifyNoChange("FOO(String-ized&Messy+But: :Still=Intentional);", Style); } +TEST_F(FormatTest, IgnorePPDefinitions) { + FormatStyle Style = getLLVMStyle(); + Style.IgnorePPDefinitions = true; + + ve

[clang] [clang][analyzer] Do not analyze opaque types in CXXDeleteChecker (PR #70638)

2023-10-30 Thread via cfe-commits
https://github.com/Discookie closed https://github.com/llvm/llvm-project/pull/70638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 564e016 - [clang][analyzer] Do not analyze opaque types in CXXDeleteChecker (#70638)

2023-10-30 Thread via cfe-commits
Author: Discookie Date: 2023-10-30T14:03:33Z New Revision: 564e0165abc851dcd7a3485d4e728ce63c3d6466 URL: https://github.com/llvm/llvm-project/commit/564e0165abc851dcd7a3485d4e728ce63c3d6466 DIFF: https://github.com/llvm/llvm-project/commit/564e0165abc851dcd7a3485d4e728ce63c3d6466.diff LOG: [cl

[clang-tools-extra] [sanitizer][msan] fix AArch64 vararg support for KMSAN (PR #70659)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Alexander Potapenko (ramosian-glider) Changes Cast StackSaveAreaPtr, GrRegSaveAreaPtr, VrRegSaveAreaPtr to pointers to fix assertions in getShadowOriginPtrKernel(). Fixes: https://github.com/llvm/llvm-project/issues/69738

[clang] [AArch64][Clang] Refactor code to emit SVE & SME builtins (PR #70662)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kerry McLaughlin (kmclaughlin-arm) Changes This patch removes duplicated code in EmitAArch64SVEBuiltinExpr and EmitAArch64SMEBuiltinExpr by creating a new function called GetAArch64SVEProcessedOperands which handles splitting up mul

[clang] [clang][Module] Mark test unsupported since objc doesn't have xcoff/g… (PR #70661)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jake Egan (jakeegan) Changes …off support Same as D135848. The newly added test fails with `fatal error: error in backend: Objective-C support is unimplemented for object file format`. --- Full diff: https://github.com/llvm/llvm-project

[clang] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-10-30 Thread via cfe-commits
HaohaiWen wrote: Any more comments? I'd like to merge it if no objection. https://github.com/llvm/llvm-project/pull/68502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-10-30 Thread via cfe-commits
HaohaiWen wrote: Any more comments? I'd like to merge it if no objection. https://github.com/llvm/llvm-project/pull/68502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
https://github.com/daltairwalter updated https://github.com/llvm/llvm-project/pull/70621 >From f44d7746a990a3bd8e53de047a30baee4da2c790 Mon Sep 17 00:00:00 2001 From: Daniel Walter Date: Mon, 30 Oct 2023 00:08:56 -0500 Subject: [PATCH 1/4] Initial commit of add new check before changes --- ..

[clang] bb352b6 - [APINotes] Upstream APINotesReader

2023-10-30 Thread via cfe-commits
Author: Egor Zhdan Date: 2023-10-30T14:36:44Z New Revision: bb352b6ead5b37a51c7a9d3bf7a1b23198f7a330 URL: https://github.com/llvm/llvm-project/commit/bb352b6ead5b37a51c7a9d3bf7a1b23198f7a330 DIFF: https://github.com/llvm/llvm-project/commit/bb352b6ead5b37a51c7a9d3bf7a1b23198f7a330.diff LOG: [A

[clang] [clang][Interp] Fix stack peek offset for This ptr (PR #70663)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes `Function::getArgSize()` include both the instance and the RVO pointer, so we need to subtract here. --- Full diff: https://github.com/llvm/llvm-project/pull/70663.diff 4 Files Affected: - (modified) clan

[clang] [time-trace] Add a new time trace scope variable named "ParseDeclarationOrFunctionDefinition". (PR #65268)

2023-10-30 Thread via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/65268 >From cc5cf9500cbdbb2fdd332c7de26c0516e49594bf Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Fri, 1 Sep 2023 15:30:44 +0100 Subject: [PATCH 1/4] Add a new time trace scope variable named "ParseDeclarationOrF

[clang] [time-trace] Add a new time trace scope variable named "ParseDeclarationOrFunctionDefinition". (PR #65268)

2023-10-30 Thread via cfe-commits
MaggieYingYi wrote: Hi @AaronBallman, Thanks for reviewing and approving the patch. I have added a release note in the commit https://github.com/llvm/llvm-project/pull/65268/commits/014ad430c465f40b02ebd511038a2bf1bdff217c. Since I haven't ever added a release note before, could you please le

[clang] [libc] Adding a version of memset with software prefetching (PR #70493)

2023-10-30 Thread via cfe-commits
https://github.com/doshimili updated https://github.com/llvm/llvm-project/pull/70493 >From 6c313955185c0d59564f6535b6f1580dca168bea Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Oct 2023 21:15:23 + Subject: [PATCH 1/4] Add software prefetching to memset --- libc/src/string/memory

[clang-tools-extra] [libc] Adding a version of memset with software prefetching (PR #70493)

2023-10-30 Thread via cfe-commits
https://github.com/doshimili updated https://github.com/llvm/llvm-project/pull/70493 >From 6c313955185c0d59564f6535b6f1580dca168bea Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Oct 2023 21:15:23 + Subject: [PATCH 1/4] Add software prefetching to memset --- libc/src/string/memory

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
https://github.com/EugeneZelenko requested changes to this pull request. https://github.com/llvm/llvm-project/pull/70621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - readability-use-explicit-namespaces + +readability-use-explicit-namespaces +=== + +This check detects and fixes references to members of namespaces where the namespace is not explicity specified in the refe

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,840 @@ +//===--- UseExplicitNamespacesCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,840 @@ +//===--- UseExplicitNamespacesCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/70621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - readability-use-explicit-namespaces + +readability-use-explicit-namespaces +=== + +This check detects and fixes references to members of namespaces where the namespace is not explicity specified in the refe

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,840 @@ +//===--- UseExplicitNamespacesCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,22 @@ +// RUN: %check_clang_tidy %s readability-use-explicit-namespaces %t + +namespace foo +{ +void doSomething() +{ +} +} + +void test1() +{ +foo::doSomething(); +} + +using namespace foo; + +void test2() +{ + // CHECK-MESSAGES: :[[@LINE+1]]:2: warning:

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - readability-use-explicit-namespaces + +readability-use-explicit-namespaces +=== + +This check detects and fixes references to members of namespaces where the namespace is not explicity specified in the refe

[clang] 273ceb1 - [Clang] Diagnose defaulted assignment operator with incompatible object parameter (#70176)

2023-10-30 Thread via cfe-commits
Author: cor3ntin Date: 2023-10-30T16:05:53+01:00 New Revision: 273ceb1337cdccb730a6930b50544c0ee7d7cd7e URL: https://github.com/llvm/llvm-project/commit/273ceb1337cdccb730a6930b50544c0ee7d7cd7e DIFF: https://github.com/llvm/llvm-project/commit/273ceb1337cdccb730a6930b50544c0ee7d7cd7e.diff LOG:

[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)

2023-10-30 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/70176 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,41 @@ +//===-- Client.h --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,135 @@ +//===- SocketMsgSupport.h -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [openmp] Add memory diff dump for kernel record-replay (PR #70667)

2023-10-30 Thread via cfe-commits
https://github.com/nmustakin updated https://github.com/llvm/llvm-project/pull/70667 >From 153c6d812939cd23bb71e53c71378117ed5b23c7 Mon Sep 17 00:00:00 2001 From: Nafis Mustakin Date: Mon, 30 Oct 2023 07:50:59 -0700 Subject: [PATCH] Add memory diff dump for kernel record-replay --- .../Plugin

[clang-tools-extra] [openmp] Add memory diff dump for kernel record-replay (PR #70667)

2023-10-30 Thread via cfe-commits
https://github.com/nmustakin updated https://github.com/llvm/llvm-project/pull/70667 >From 153c6d812939cd23bb71e53c71378117ed5b23c7 Mon Sep 17 00:00:00 2001 From: Nafis Mustakin Date: Mon, 30 Oct 2023 07:50:59 -0700 Subject: [PATCH] Add memory diff dump for kernel record-replay --- .../Plugin

[clang] [openmp] Add memory diff dump for kernel record-replay (PR #70667)

2023-10-30 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 6a62707c048e16ce9bad37ed8e3520799139436b 153c6d812939cd23bb71e53c71378117ed5b23c7 --

[clang-tools-extra] [openmp] Add memory diff dump for kernel record-replay (PR #70667)

2023-10-30 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 6a62707c048e16ce9bad37ed8e3520799139436b 153c6d812939cd23bb71e53c71378117ed5b23c7 --

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
@@ -3553,6 +3553,56 @@ static unsigned getPackIndexForParam(Sema &S, llvm_unreachable("parameter index would not be produced from template"); } +// if `Specialization` is a `CXXConstructorDecl` or `CXXConversionDecl` +// we try to instantiate and update its explicit specifie

[clang] [clang][Interp] Fix truncateCast() (PR #69911)

2023-10-30 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/69911 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 56dab2c - [clang][Interp] Fix truncateCast() (#69911)

2023-10-30 Thread via cfe-commits
Author: Timm Baeder Date: 2023-10-30T16:27:47+01:00 New Revision: 56dab2cb0733f10df4e9cff8c83dd7081154527b URL: https://github.com/llvm/llvm-project/commit/56dab2cb0733f10df4e9cff8c83dd7081154527b DIFF: https://github.com/llvm/llvm-project/commit/56dab2cb0733f10df4e9cff8c83dd7081154527b.diff L

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
@@ -3553,6 +3553,56 @@ static unsigned getPackIndexForParam(Sema &S, llvm_unreachable("parameter index would not be produced from template"); } +// if `Specialization` is a `CXXConstructorDecl` or `CXXConversionDecl` +// we try to instantiate and update its explicit specifie

[clang] [AMDGPU] - Add clang builtins for tied WMMA intrinsics (PR #70669)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Jessica Del (OutOfCache) Changes Add clang builtins for the new tied wmma intrinsics. These variations tie the destination accumulator matrix to the input accumulator matrix. See https://github.com/llvm/llvm-project/pull/69903 for

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
https://github.com/LYP951018 edited https://github.com/llvm/llvm-project/pull/70548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f89b859 - [HLSL][SPIR-V] Fix clang driver lang target test (#70330)

2023-10-30 Thread via cfe-commits
Author: Natalie Chouinard Date: 2023-10-30T11:36:38-04:00 New Revision: f89b85996a1bd44ca5ef1f9d0df64f15f248148d URL: https://github.com/llvm/llvm-project/commit/f89b85996a1bd44ca5ef1f9d0df64f15f248148d DIFF: https://github.com/llvm/llvm-project/commit/f89b85996a1bd44ca5ef1f9d0df64f15f248148d.d

[clang] d9b15b0 - [CGExprConstant] stop calling into ConstExprEmitter for Reference type destinations (#70366)

2023-10-30 Thread via cfe-commits
Author: Nick Desaulniers Date: 2023-10-30T08:48:31-07:00 New Revision: d9b15b068d19089f72fc0d7dc59ed1d6d77125dc URL: https://github.com/llvm/llvm-project/commit/d9b15b068d19089f72fc0d7dc59ed1d6d77125dc DIFF: https://github.com/llvm/llvm-project/commit/d9b15b068d19089f72fc0d7dc59ed1d6d77125dc.di

[clang] [time-trace] Add a new time trace scope variable named "ParseDeclarationOrFunctionDefinition". (PR #65268)

2023-10-30 Thread via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/65268 >From cc5cf9500cbdbb2fdd332c7de26c0516e49594bf Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Fri, 1 Sep 2023 15:30:44 +0100 Subject: [PATCH 1/4] Add a new time trace scope variable named "ParseDeclarationOrF

[clang] [clang][DebugInfo][NFC] Add createConstantValueExpression helper (PR #70674)

2023-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Michael Buch (Michael137) Changes This patch factors out the code to create a DIExpression from an APValue into a separate helper function. This will be useful in a follow-up patch where we re-use this logic elsewhere. Pre-requis

[clang] [time-trace] Add a new time trace scope variable named "ParseDeclarationOrFunctionDefinition". (PR #65268)

2023-10-30 Thread via cfe-commits
@@ -301,6 +301,10 @@ Improvements to Clang's diagnostics - Clang now always diagnoses when using non-standard layout types in ``offsetof`` . (`#64619: `_) +Improvements to Clang's time-trace +---

[clang] [clang][AST] Fix printing `TagDecl`s. (PR #69971)

2023-10-30 Thread via cfe-commits
isuckatcs wrote: Ping https://github.com/llvm/llvm-project/pull/69971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Bfi precision (PR #66285)

2023-10-30 Thread via cfe-commits
WenleiHe wrote: Thanks for investigating, Matthias. So it looks like the regression is indeed just clang non-PGO build being unlucky after the BFI improvement.. Sounds good to leave it as is. https://github.com/llvm/llvm-project/pull/66285 ___ cfe-c

[clang] [ASAN] For Asan instrumented global, emit two symbols, one with actual size and other with instrumented size. (PR #70166)

2023-10-30 Thread via cfe-commits
skc7 wrote: > Would it be possible to create an issue, or RFC explain in one place what it > the problem you are trying to solve and how? Created issue : [70684 ](https://github.com/llvm/llvm-project/issues/70684 ) https://github.com/llvm/llvm-project/pull/70166 ___

[clang] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)

2023-10-30 Thread via cfe-commits
avl-llvm wrote: Should not we remove constant initializer from the type definition if we have a DW_TAG_variable with a DW_AT_const_value now? ``` 0x008d: DW_TAG_member DW_AT_name("i") DW_AT_type(0x0062 "const int") DW_AT_

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
https://github.com/LYP951018 updated https://github.com/llvm/llvm-project/pull/70548 From a5929ddc33057416cee75d91f13a1252f4357524 Mon Sep 17 00:00:00 2001 From: letrec Date: Sat, 28 Oct 2023 18:05:36 +0800 Subject: [PATCH 1/2] Defer the instantiation of explicit-specifier after constraint che

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
https://github.com/LYP951018 edited https://github.com/llvm/llvm-project/pull/70548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
@@ -3553,6 +3553,56 @@ static unsigned getPackIndexForParam(Sema &S, llvm_unreachable("parameter index would not be produced from template"); } +// if `Specialization` is a `CXXConstructorDecl` or `CXXConversionDecl` +// we try to instantiate and update its explicit specifie

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
@@ -3553,6 +3553,56 @@ static unsigned getPackIndexForParam(Sema &S, llvm_unreachable("parameter index would not be produced from template"); } +// if `Specialization` is a `CXXConstructorDecl` or `CXXConversionDecl` +// we try to instantiate and update its explicit specifie

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
@@ -3553,6 +3553,56 @@ static unsigned getPackIndexForParam(Sema &S, llvm_unreachable("parameter index would not be produced from template"); } +// if `Specialization` is a `CXXConstructorDecl` or `CXXConversionDecl` +// we try to instantiate and update its explicit specifie

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-30 Thread via cfe-commits
https://github.com/LYP951018 edited https://github.com/llvm/llvm-project/pull/70548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    19   20   21   22   23   24   25   26   27   28   >