[clang] [llvm] [TLI] Add support for reallocarray (PR #114818)

2024-11-05 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/114818 >From a1ca0d1e0cbc2f1c5eb09639a687f0eed6f6826c Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Mon, 4 Nov 2024 16:50:45 +0100 Subject: [PATCH] [TLI] Add support for reallocarray >From the man p

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-11-05 Thread Alexandre Ganea via cfe-commits
aganea wrote: > I would like to benchmark `lld` after this change, since I have added a loop > that goes through every section of every object file. Could someone point in > the direction of a good benchmark for that? I was thinking I can benchmark on > the linking of `clang` or any other big

[clang] [HLSL] Add implicit resource element type concepts to AST (PR #112600)

2024-11-05 Thread Helena Kotas via cfe-commits
hekota wrote: Since your PR that adds `__builtin_hlsl_is_typed_resource_element_compatible` is merged do you want to incorporate here? https://github.com/llvm/llvm-project/pull/112600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [llvm] [TLI] Add support for reallocarray (PR #114818)

2024-11-05 Thread via cfe-commits
@@ -852,6 +852,7 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T, TLI.setUnavailable(LibFunc_memrchr); TLI.setUnavailable(LibFunc_ntohl); TLI.setUnavailable(LibFunc_ntohs); +TLI.setUnavailable(LibFunc_reallocarray); ---

[clang] [HLSL] Add implicit resource element type concepts to AST (PR #112600)

2024-11-05 Thread Helena Kotas via cfe-commits
@@ -483,10 +581,105 @@ static BuiltinTypeDeclBuilder setupBufferType(CXXRecordDecl *Decl, Sema &S, .addDefaultHandleConstructor(S, RC); } +BinaryOperator *constructSizeOfLEQ16Expr(ASTContext &Context, + SourceLocation NameLoc, +

[clang] [HLSL] Add implicit resource element type concepts to AST (PR #112600)

2024-11-05 Thread Joshua Batista via cfe-commits
bob80905 wrote: > Since your PR that adds `__builtin_hlsl_is_typed_resource_element_compatible` > is merged do you want to incorporate here? I'd prefer not to, because this PR is already pretty big and I have a separate task that is singularly dedicated to finalizing the constraint expression,

[clang] [SystemZ][XRay] Enable XRay for SystemZ in clang (PR #113254)

2024-11-05 Thread Kai Nacke via cfe-commits
https://github.com/redstar closed https://github.com/llvm/llvm-project/pull/113254 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][XRay] Enable XRay for SystemZ in clang (PR #113254)

2024-11-05 Thread Kai Nacke via cfe-commits
https://github.com/redstar updated https://github.com/llvm/llvm-project/pull/113254 >From 7237a7ad870421beb147870a4cc81910be32e7b5 Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Mon, 21 Oct 2024 22:39:57 -0400 Subject: [PATCH] [SystemZ][XRay] Enable XRay for SystemZ in clang With the support f

[clang] 0c60573 - clang/AMDGPU: Emit grid size builtins with range metadata (#113038)

2024-11-05 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-05T12:47:04-08:00 New Revision: 0c60573d1c2d19133d84da092b240f32e0574be5 URL: https://github.com/llvm/llvm-project/commit/0c60573d1c2d19133d84da092b240f32e0574be5 DIFF: https://github.com/llvm/llvm-project/commit/0c60573d1c2d19133d84da092b240f32e0574be5.diff

[clang] clang/AMDGPU: Emit grid size builtins with range metadata (PR #113038)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/113038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Treat uint32_max as the default value for amdgpu-max-num-workgroups (PR #113751)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/113751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][deps][modules] Allocate input file paths lazily (PR #114457)

2024-11-05 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: Ping. https://github.com/llvm/llvm-project/pull/114457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-11-05 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79667 >From 2b526821d4e70f3ea83f95d25f804d9fbcf82612 Mon Sep 17 00:00:00 2001 From: cqwrteur <100043421+trcrsi...@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:55:50 -0400 Subject: [PATCH] [libunwind][libcxx][lib

[clang] [llvm] [Transforms][Utils][PromoteMem2Reg] Propagate nnan flag on par with the nsz flag (PR #114271)

2024-11-05 Thread Paul Osmialowski via cfe-commits
https://github.com/pawosm-arm updated https://github.com/llvm/llvm-project/pull/114271 >From 45a02d4dd6102bf825943e738a15adf64361f976 Mon Sep 17 00:00:00 2001 From: Pawel Osmialowski Date: Wed, 30 Oct 2024 14:30:08 + Subject: [PATCH] [Transforms][Utils][PromoteMem2Reg] Propagate nnan and ni

[clang] [HLSL] Add empty struct test cases to `__builtin_hlsl_is_typed_resource_element_compatible` test file (PR #115045)

2024-11-05 Thread Chris B via cfe-commits
https://github.com/llvm-beanz requested changes to this pull request. I think there is actually a bigger problem with your earlier PR that we need to address. There is an inconsistency in the [design document](https://github.com/llvm/wg-hlsl/blob/main/proposals/0011-resource-element-type-valid

[clang] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (PR #114883)

2024-11-05 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG with a nit. Update OpenMPSupport.rst https://github.com/llvm/llvm-project/pull/114883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread Matt Arsenault via cfe-commits
@@ -745,12 +745,12 @@ Let ``VT`` be a vector type and ``ET`` the element type of ``VT``. === == == Name

[clang] [Clang] Correctly initialize placeholder fields from their initializers (PR #114196)

2024-11-05 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/114196 >From 570a35958d772e3018a04791876d4c547f9124f2 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 30 Oct 2024 10:25:42 +0100 Subject: [PATCH] [Clang] Correctly initialize placeholder fields from their in

[clang] [llvm] [Clang][Darwin] Introduce `SubFrameworks` as a SDK default location (PR #115048)

2024-11-05 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/115048 >From 9359df8624a75b7c0c361fdfcd9fc9102824dc68 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Tue, 5 Nov 2024 10:48:09 -0800 Subject: [PATCH 1/2] [Clang][Darwin] Introduce `SubFrameworks` as a SDK defaul

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `dot4add_u8packed` intrinsic (PR #115068)

2024-11-05 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/115068 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `dot4add_u8packed` intrinsic (PR #115068)

2024-11-05 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/115068 >From 414b07fd2276946936dc137fb633b04cd8c12fc4 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Tue, 5 Nov 2024 21:15:17 + Subject: [PATCH 1/2] [HLSL][SPIRV][DXIL] Implement `dot4add_u8packed` intrinsic -

[clang] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (PR #114883)

2024-11-05 Thread David Pagan via cfe-commits
https://github.com/ddpagan updated https://github.com/llvm/llvm-project/pull/114883 >From 0959f99f541f7e10e3f761b062948f2408afc0fd Mon Sep 17 00:00:00 2001 From: Dave Pagan Date: Mon, 14 Oct 2024 15:27:56 -0500 Subject: [PATCH 1/2] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause

[clang] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (PR #114883)

2024-11-05 Thread David Pagan via cfe-commits
@@ -2242,9 +2247,16 @@ void OMPClausePrinter::VisitOMPAllocateClause(OMPAllocateClause *Node) { if (Node->varlist_empty()) return; OS << "allocate"; + OpenMPAllocateClauseModifier Modifier = Node->getAllocatorModifier(); if (Expr *Allocator = Node->getAllocator())

[clang] [llvm] [Clang][Darwin] Introduce `SubFrameworks` as a SDK default location (PR #115048)

2024-11-05 Thread Cyndy Ishida via cfe-commits
cyndyishida wrote: ``` > git checkout -f baecb5c50287efebf2482739bfbe320c8147b7ff error: unable to unlink old 'clang/lib/AST/Decl.cpp': Invalid argument error: unable to unlink old 'clang/lib/Serialization/ASTReaderDecl.cpp': Invalid argument ``` Seems like an unrelated issue is happening on the

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-11-05 Thread Matheus Izvekov via cfe-commits
@@ -3430,15 +3430,17 @@ bool Sema::SubstDefaultArgument( ContextRAII SavedContext(*this, FD); std::unique_ptr LIS; -if (ForCallExpr) { +FunctionDecl *PatternFD = +ForCallExpr +? FD->getTemplateInstantiationPattern(/*ForDefinition*/ false) +

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `dot4add_u8packed` intrinsic (PR #115068)

2024-11-05 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/115068 ```- create a clang built-in in Builtins.td - link dot4add_u8packed in hlsl_intrinsics.h - add lowering to spirv backend through expansion of operation as OpUDot is missing up to SPIRV 1.6 in SPIRVInstructionSel

[clang] clang: Remove requires system-linux from some driver tests (PR #111976)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/111976 >From 947c0732cb8ebff4495a64d9fe7aa79ab3827926 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 11 Oct 2024 14:33:32 +0400 Subject: [PATCH 1/9] clang: Remove requires system-linux from some driver tests

[clang-tools-extra] [clang-tidy] Filter out googletest TUs in bugprone-unchecked-optional-access (PR #115051)

2024-11-05 Thread Jan Voung via cfe-commits
jvoung wrote: > A quick middle-point solution is to add an option to allow ignoring code that > is executed from within macros, or even allow the user to specify which > macros to ignore. Unfortunately, the problem is exactly that we're not (fully) understanding the content of `ASSERT_TRUE` a

[clang-tools-extra] [clang-tidy] Filter out googletest TUs in bugprone-unchecked-optional-access (PR #115051)

2024-11-05 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand approved this pull request. https://github.com/llvm/llvm-project/pull/115051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (PR #113470)

2024-11-05 Thread Eli Friedman via cfe-commits
@@ -8714,6 +8714,21 @@ void Sema::CheckVariableDeclarationType(VarDecl *NewVD) { } } + // zero sized static arrays are not allowed in HIP device functions + if (LangOpts.CUDAIsDevice && LangOpts.HIP) { +if (FunctionDecl *FD = getCurFunctionDecl(); +FD && +

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-11-05 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/112983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Filter out googletest TUs in bugprone-unchecked-optional-access (PR #115051)

2024-11-05 Thread Jan Voung via cfe-commits
jvoung wrote: > Relying on Google-test internal implementation details that are outside of > our control and may change at any point in time does not feel good. > > The patch should instead fix the root cause of the problem. I agree that it's not good to rely on implementation details, but the

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread Matt Arsenault via cfe-commits
@@ -745,12 +745,8 @@ Let ``VT`` be a vector type and ``ET`` the element type of ``VT``. === == == NameO

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-11-05 Thread Oleksandr T. via cfe-commits
@@ -3430,15 +3430,17 @@ bool Sema::SubstDefaultArgument( ContextRAII SavedContext(*this, FD); std::unique_ptr LIS; -if (ForCallExpr) { +FunctionDecl *PatternFD = +ForCallExpr +? FD->getTemplateInstantiationPattern(/*ForDefinition*/ false) +

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/114637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-11-05 Thread Sam Elliott via cfe-commits
lenary wrote: Gentle Ping. I'm looking for answers to two questions: - [Should I] prepare a fixup commit that [uses `MVT::Untyped`] (and removes the `riscv_*_pair` MVTs), if we think that's a better target-independent approach? - Any advice on whether I should be digging deeply into changing

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/114637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][Darwin] Introduce `SubFrameworks` as a SDK default location (PR #115048)

2024-11-05 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/115048 >From dd22f1347530d8f866822074ec9b89cb8ee56867 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Tue, 5 Nov 2024 10:48:09 -0800 Subject: [PATCH 1/2] [Clang][Darwin] Introduce `SubFrameworks` as a SDK defaul

[clang] 0428f2c - [SystemZ][XRay] Enable XRay for SystemZ in clang (#113254)

2024-11-05 Thread via cfe-commits
Author: Kai Nacke Date: 2024-11-05T16:02:20-05:00 New Revision: 0428f2cb5a91cc93897252c9dc4883efea3dbd9a URL: https://github.com/llvm/llvm-project/commit/0428f2cb5a91cc93897252c9dc4883efea3dbd9a DIFF: https://github.com/llvm/llvm-project/commit/0428f2cb5a91cc93897252c9dc4883efea3dbd9a.diff LOG

[clang] [Clang] Correctly initialize placeholder fields from their initializers (PR #114196)

2024-11-05 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/114196 >From e96815e2aa85188e49bbaa20be1d196308a41354 Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Tue, 5 Nov 2024 16:02:20 -0500 Subject: [PATCH] [SystemZ][XRay] Enable XRay for SystemZ in clang (#113254) With the

[clang] clang/AMDGPU: Emit grid size builtins with range metadata (PR #113038)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/113038 >From 2e3964fef9cef4b374a8451367a01c850b70e7e8 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sat, 19 Oct 2024 02:39:06 +0400 Subject: [PATCH] clang/AMDGPU: Emit grid size builtins with range metadata These

[clang] clang/AMDGPU: Emit grid size builtins with range metadata (PR #113038)

2024-11-05 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 5, 3:43 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/113038). https://github.com/llvm/llvm-project/pull/113038 __

[clang] [Clang] Correctly initialize placeholder fields from their initializers (PR #114196)

2024-11-05 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/114196 >From a522f774996b683905c5394ab68e9f4cf5a032c7 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 30 Oct 2024 10:25:42 +0100 Subject: [PATCH] [Clang] Correctly initialize placeholder fields from their in

[clang] [SystemZ][XRay] Enable XRay for SystemZ in clang (PR #113254)

2024-11-05 Thread Kai Nacke via cfe-commits
https://github.com/redstar updated https://github.com/llvm/llvm-project/pull/113254 >From c8e629749e7cef1fff941729fe2b1b393c4f7ba5 Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Mon, 21 Oct 2024 22:39:57 -0400 Subject: [PATCH] [SystemZ][XRay] Enable XRay for SystemZ in clang With the support f

[clang] [clang][deps] Share `FileManager` between modules (PR #115065)

2024-11-05 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/115065 The `FileManager` sharing between module-building `CompilerInstance`s was disabled a while ago due to `FileEntry::getName()` being unreliable. Now that we use `FileEntryRef::getNameAsRequested()` in places

[clang] [clang][deps] Share `FileManager` between modules (PR #115065)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes The `FileManager` sharing between module-building `CompilerInstance`s was disabled a while ago due to `FileEntry::getName()` being unreliable. Now that we use `FileEntryRef::getNameAsRequested()` in plac

[clang] [SystemZ][XRay] Enable XRay for SystemZ in clang (PR #113254)

2024-11-05 Thread Kai Nacke via cfe-commits
https://github.com/redstar updated https://github.com/llvm/llvm-project/pull/113254 >From 74b626537d1e9944f18e4a0404480a27c63bb922 Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Mon, 21 Oct 2024 22:39:57 -0400 Subject: [PATCH] [SystemZ][XRay] Enable XRay for SystemZ in clang With the support f

[clang] [llvm] AMDGPU: Propagate amdgpu-max-num-workgroups attribute (PR #113018)

2024-11-05 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/113018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-11-05 Thread Tobias Hieta via cfe-commits
tru wrote: I can recommend the hyperfine tool when benchmarking. It runs the same command multiple times and does all the fancy things to make sure you are measuring correctly. https://github.com/llvm/llvm-project/pull/114260 ___ cfe-commits mailing

[clang] [C2y] Add test coverage for WG14 N3370 (PR #115054)

2024-11-05 Thread Erich Keane via cfe-commits
erichkeane wrote: > > Release note to say we enable this in C2Y? > > I'm not opposed, but we've always supported this feature. Similar to `i` and > `j` suffixes, I didn't add a release for imaginary constants which are in the > same boat (extensions we've supported forever but are now C2y feat

[clang] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (PR #114883)

2024-11-05 Thread David Pagan via cfe-commits
@@ -4539,6 +4539,8 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind DKind, bool NeedRParenForLinear = false; BalancedDelimiterTracker LinearT(*this, tok::l_paren, tok::annot_pragma_openmp_end); + BalancedDelimiterTracker AllocateT(*

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-05 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt created https://github.com/llvm/llvm-project/pull/115094 > [!NOTE] > Expansion of https://github.com/llvm/llvm-project/pull/86618, with a larger > scope including `no_wraps` and > [SSCL](https://clang.llvm.org/docs/SanitizerSpecialCaseList.html) > integration.

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Justin Stitt (JustinStitt) Changes > [!NOTE] > Expansion of https://github.com/llvm/llvm-project/pull/86618, with a larger scope including `no_wraps` and [SSCL](https://clang.llvm.org/docs/SanitizerSpecialCaseList.html) integration. Th

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Justin Stitt (JustinStitt) Changes > [!NOTE] > Expansion of https://github.com/llvm/llvm-project/pull/86618, with a larger scope including `no_wraps` and [SSCL](https://clang.llvm.org/docs/SanitizerSpecialCaseList.html) integrat

[clang] [clang][deps] Share `FileManager` between modules (PR #115065)

2024-11-05 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. https://github.com/llvm/llvm-project/pull/115065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-05 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 c949500d519085a4e5b93928b14ca766a353ad73 bd63565b43c17f16b9c2a79143368e7ef607f14c --e

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread via cfe-commits
@@ -745,12 +745,12 @@ Let ``VT`` be a vector type and ``ET`` the element type of ``VT``. === == == Name

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread via cfe-commits
@@ -745,12 +745,12 @@ Let ``VT`` be a vector type and ``ET`` the element type of ``VT``. === == == Name

[clang] [RFC] Initial implementation of P2719 (PR #113510)

2024-11-05 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/113510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Parser] Don't evaluate concept when its definition is invalid (PR #111179)

2024-11-05 Thread Shafik Yaghmour via cfe-commits
shafik wrote: This crash looks linked to this change: https://github.com/llvm/llvm-project/issues/115004 https://github.com/llvm/llvm-project/pull/79 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [clang][docs] Revise documentation for `__builtin_reduce_(max|min)`. (PR #114637)

2024-11-05 Thread via cfe-commits
@@ -745,12 +745,8 @@ Let ``VT`` be a vector type and ``ET`` the element type of ``VT``. === == == NameO

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2024-11-05 Thread Reid Kleckner via cfe-commits
https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/115099 >From e1331b2c00db0cdff09345b36fd484f2269ee1cc Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 5 Nov 2024 16:05:53 -0800 Subject: [PATCH 1/2] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts

[clang] [RFC] [clang] [CodeGen] Avoid creating global variable repeatedly when type are not specified (PR #114948)

2024-11-05 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > I think it's reasonable to do something similar here, but I believe the > change for that should be inside GetOrCreateLLVMGlobal, not in > GetAddrOfGlobalVar. The problem to make it in `GetOrCreateLLVMGlobal` is that the argument of `Ty` is not skippable. So the semantics

[clang] [Webkit Checkers] Introduce a Webkit checker for memory unsafe casts (PR #114606)

2024-11-05 Thread Ryosuke Niwa via cfe-commits
@@ -0,0 +1,154 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.MemoryUnsafeCastChecker -verify %s + +class Base { }; +class Derived : public Base { }; + +void test_pointers(Base *base) { + Derived *derived_static = static_cast(base); + // expected-warning@-1{{Unsa

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-11-05 Thread Brandon Wu via cfe-commits
@@ -317,38 +323,60 @@ ABIArgInfo RISCVABIInfo::coerceAndExpandFPCCEligibleStruct( // Fixed-length RVV vectors are represented as scalable vectors in function // args/return and must be coerced from fixed vectors. -ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty) const {

[clang] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (PR #114883)

2024-11-05 Thread David Pagan via cfe-commits
ddpagan wrote: @alexey-bataev - I'll make that change in the next PR. Thanks for the review. https://github.com/llvm/llvm-project/pull/114883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (PR #114883)

2024-11-05 Thread David Pagan via cfe-commits
https://github.com/ddpagan closed https://github.com/llvm/llvm-project/pull/114883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 435e584 - [clang][OpenMP] Add 'allocator' modifier for 'allocate' clause. (#114883)

2024-11-05 Thread via cfe-commits
Author: David Pagan Date: 2024-11-05T17:06:41-08:00 New Revision: 435e58468a1a99a4bbfad88d060abd37a9bc6928 URL: https://github.com/llvm/llvm-project/commit/435e58468a1a99a4bbfad88d060abd37a9bc6928 DIFF: https://github.com/llvm/llvm-project/commit/435e58468a1a99a4bbfad88d060abd37a9bc6928.diff L

[clang] [Clang] [NFC] Introduce `DynamicRecursiveASTVisitor` (PR #110040)

2024-11-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot11` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/3351 Here is the rel

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-05 Thread Vitaly Buka via cfe-commits
@@ -67,9 +67,11 @@ types specified within an ignorelist. int a = 2147483647; // INT_MAX ++a;// Normally, an overflow with -fsanitize=signed-integer-overflow } + vitalybuka wrote: Please do unrelated fixes in separate PRs. https://gi

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-11-05 Thread Luke Lau via cfe-commits
@@ -146,18 +146,104 @@ is a zero-based file offset, assuming ‘utf-8-unix’ coding." (lambda (byte &optional _quality _coding-system) (byte-to-position (1+ byte) -;;;###autoload -(defun clang-format-region (start end &optional style assume-file-name) - "Use clang

[clang] [Clang] eliminate shadowing warnings for parameters using deducing this (PR #114813)

2024-11-05 Thread via cfe-commits
@@ -8236,11 +8236,14 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, DeclContext *NewDC = D->getDeclContext(); if (FieldDecl *FD = dyn_cast(ShadowedDecl)) { -// Fields are not shadowed by variables in C++ static methods. -if (CXXMethodDecl *MD = d

[clang] [flang] [Flang][LoongArch] Emit target features for Loongarch64. (PR #114735)

2024-11-05 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/114735 >From dd4aca55c1e35ebd6dbb9d849ba9de8b930ae209 Mon Sep 17 00:00:00 2001 From: ylzsx <2375355...@qq.com> Date: Sat, 2 Nov 2024 10:48:29 +0800 Subject: [PATCH 1/2] [Flang][LoongArch] Emit target features for Loongarc

[clang] [Clang] Add __builtin_counted_by_ref builtin (PR #114495)

2024-11-05 Thread via cfe-commits
Sirraide wrote: > I still see `CodeGen/attr-counted-by*.c` being unnecessarily changed. Yeah, the `-O2` definitely needs to be added back to those tests. https://github.com/llvm/llvm-project/pull/114495 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [C2y] Add test coverage for WG14 N3370 (PR #115054)

2024-11-05 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Changes lgtm. I don’t really have a strong opinion on the release note: on the one hand, writing one for this does feel a bit like we’d be writing a release note for C2y itself rather than for Clang, but on the other, I guess adding some

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #114897)

2024-11-05 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/114897 >From d08c1b364c392aa42b7ef71528a52ab6a7d9c548 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Mon, 4 Nov 2024 16:01:49 -0800 Subject: [PATCH 1/2] [webkit.UncountedLambdaCapturesChecker] Ignore trivial function

[clang] [clang] Make source locations space usage diagnostics numbers easier to read (PR #114999)

2024-11-05 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb updated https://github.com/llvm/llvm-project/pull/114999 >From 6f3c9f95f7ad558659bc7d868ab4d5e5f6af05c0 Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Tue, 5 Nov 2024 15:29:10 +0100 Subject: [PATCH 1/3] [clang] Make source locations space usage diagnostics numb

[clang] [clang] Make source locations space usage diagnostics numbers easier to read (PR #114999)

2024-11-05 Thread Boaz Brickner via cfe-commits
@@ -2227,6 +2227,28 @@ LLVM_DUMP_METHOD void SourceManager::dump() const { } } +static std::string NumberToHumanString(uint64_t Number) { bricknerb wrote: Renamed to `humanizeNumber()`. https://github.com/llvm/llvm-project/pull/114999 _

[clang] [Clang] eliminate shadowing warnings for parameters using deducing this (PR #114813)

2024-11-05 Thread via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -verify -fsyntax-only -std=c++2b -Wshadow-all %s + +namespace GH95707 { +struct Foo { + int a; // expected-note {{previous declaration is here}} + + void f1(this auto &self, int a) { self.a = a; } + void f2(int a) { } // expected-warning {{d

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (PR #111852)

2024-11-05 Thread Lei Wang via cfe-commits
wlei-llvm wrote: Hi @sdkrystian , FYI, we also hit an error/assertion that bisected to this https://github.com/llvm/llvm-project/pull/114569 ``` lvm-project/clang/lib/AST/ExprConstant.cpp:16601: bool clang::Expr::EvaluateAsConstantExpr(EvalResult &, const ASTContext &, ConstantExprKind) const

[clang] [llvm] [clang] Implement pragma clang section on COFF targets (PR #112714)

2024-11-05 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/112714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e48d8f9 - [Clang] Correctly initialize placeholder fields from their initializers (#114196)

2024-11-05 Thread via cfe-commits
Author: cor3ntin Date: 2024-11-06T05:10:53+01:00 New Revision: e48d8f9fea69095757d3593a567316197ec70450 URL: https://github.com/llvm/llvm-project/commit/e48d8f9fea69095757d3593a567316197ec70450 DIFF: https://github.com/llvm/llvm-project/commit/e48d8f9fea69095757d3593a567316197ec70450.diff LOG:

[clang] [Clang] Correctly initialize placeholder fields from their initializers (PR #114196)

2024-11-05 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/114196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Implement pragma clang section on COFF targets (PR #112714)

2024-11-05 Thread Hubert Tong via cfe-commits
@@ -2378,13 +2394,28 @@ MCSection *TargetLoweringObjectFileXCOFF::getExplicitSectionGlobal( StringRef SectionName = GO->getSection(); hubert-reinterpretcast wrote: See `report_fatal_error` above. I think the new code should be moved up so that `SectionName` i

[clang] [llvm] [clang] Implement pragma clang section on COFF targets (PR #112714)

2024-11-05 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: There doesn't seem to be changes to handle the text section cases? https://github.com/llvm/llvm-project/pull/112714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang-tools-extra] [clang-tidy] Call StringMap::find without constructing std::string (NFC) (PR #115114)

2024-11-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/115114 StringMap::find takes StringRef, so we don't need to allocate temporary instances of std::string. >From 9614bd57bc2175e6f66bb251294dffc0855fa459 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 5 N

[clang-tools-extra] [clang-include-fixer] Use heterogenous lookups with std::map (NFC) (PR #115113)

2024-11-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/115113 Heterogenous lookups allow us to call find with StringRef, avoiding a temporary heap allocation of std::string. >From d83d2c1478982e3c09ef7c7e80880e3f874c69eb Mon Sep 17 00:00:00 2001 From: Kazu Hirata

[clang-tools-extra] [clang-include-fixer] Use heterogenous lookups with std::map (NFC) (PR #115113)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes Heterogenous lookups allow us to call find with StringRef, avoiding a temporary heap allocation of std::string. --- Full diff: https://github.com/llvm/llvm-project/pull/115113.diff 2 File

[clang-tools-extra] [clang-tidy] Call StringMap::find without constructing std::string (NFC) (PR #115114)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes StringMap::find takes StringRef, so we don't need to allocate temporary instances of std::string. --- Full diff: https://github.com/llvm/llvm-project/pull/115114.diff 1 Files Affected: -

[clang-tools-extra] [clang-tidy] Call StringMap::find without constructing std::string (NFC) (PR #115114)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Kazu Hirata (kazutakahirata) Changes StringMap::find takes StringRef, so we don't need to allocate temporary instances of std::string. --- Full diff: https://github.com/llvm/llvm-project/pull/115114.diff 1 Files Affected: - (modif

[clang] [StaticAnalyzer] Simplify code with DenseMap::operator[] (NFC) (PR #115116)

2024-11-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/115116 None >From 6e60305ce06368ca6f0a85407f7945d83f5bacf0 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 5 Nov 2024 09:59:27 -0800 Subject: [PATCH] [StaticAnalyzer] Simplify code with DenseMap::operator

[clang] [StaticAnalyzer] Simplify code with DenseMap::operator[] (NFC) (PR #115116)

2024-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/115116.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/LocalizationChecker

[clang] [llvm] [ARM] Emit an error when the hard-float ABI is enabled but can't be used. (PR #111334)

2024-11-05 Thread Chris Copeland via cfe-commits
https://github.com/chrisnc updated https://github.com/llvm/llvm-project/pull/111334 >From 4bd5ec308b2d99c6a48457f3c9dbd96e70557e04 Mon Sep 17 00:00:00 2001 From: Chris Copeland Date: Sun, 6 Oct 2024 20:27:48 -0700 Subject: [PATCH] [ARM] Emit an error when the hard-float ABI is enabled but can'

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-11-05 Thread Brandon Wu via cfe-commits
@@ -317,38 +323,60 @@ ABIArgInfo RISCVABIInfo::coerceAndExpandFPCCEligibleStruct( // Fixed-length RVV vectors are represented as scalable vectors in function // args/return and must be coerced from fixed vectors. -ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty) const {

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-05 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/106683 >From 15aa6af1f5d22e4b837e8e2fd49469310ffbe7f1 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Fri, 30 Aug 2024 15:11:07 +0800 Subject: [PATCH 1/4] [clangd] [Modules] Support Reusable Modules Builder --- cl

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-05 Thread Chuanqi Xu via cfe-commits
@@ -316,36 +287,169 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-05 Thread Chuanqi Xu via cfe-commits
@@ -228,54 +223,30 @@ class StandalonePrerequisiteModules : public PrerequisiteModules { return BuiltModuleNames.contains(ModuleName); } - void addModuleFile(llvm::StringRef ModuleName, - llvm::StringRef ModuleFilePath) { -RequiredModules.emplac

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-05 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/106683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-05 Thread Chuanqi Xu via cfe-commits
@@ -316,36 +287,169 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-05 Thread Chuanqi Xu via cfe-commits
@@ -316,36 +294,205 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

<    1   2   3   4   5   6   >