[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Alexey Bataev via cfe-commits
@@ -5790,7 +5805,11 @@ class OMPReverseDirective final : public OMPLoopTransformationDirective { explicit OMPReverseDirective(SourceLocation StartLoc, SourceLocation EndLoc) : OMPLoopTransformationDirective(OMPReverseDirectiveClass,

[clang] 49c22e3 - Thread Safety Analysis: Improve comments of LockErrorKind

2025-05-09 Thread Marco Elver via cfe-commits
Author: Marco Elver Date: 2025-05-09T20:14:30+02:00 New Revision: 49c22e3ee147326668aa0b2097f857d0b0c2a81e URL: https://github.com/llvm/llvm-project/commit/49c22e3ee147326668aa0b2097f857d0b0c2a81e DIFF: https://github.com/llvm/llvm-project/commit/49c22e3ee147326668aa0b2097f857d0b0c2a81e.diff L

[clang] [HLSL][NFC] Test cleanup - remove function attributes (PR #139302)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes The function attribute numbers are not stable. They are not part of the test and can be removed. --- Full diff: https://github.com/llvm/llvm-project/pull/139302.diff 1 Files Affected: - (modified) clang/t

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Alexey Bataev via cfe-commits
@@ -14175,27 +14222,350 @@ bool SemaOpenMP::checkTransformableLoopNest( return false; }, [&OriginalInits](OMPLoopBasedDirective *Transform) { -Stmt *DependentPreInits; -if (auto *Dir = dyn_cast(Transform)) - DependentPreInits = Dir->

[clang] [HLSL][NFC] Test cleanup - remove function attributes (PR #139302)

2025-05-09 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/139302 The function attribute numbers are not stable. They are not part of the test and can be removed. >From 14eda614ef4d2f3d5617dcedd935adfe97ec9c1a Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Fri, 9 May 2025

[clang] [HLSL][NFC] Test cleanup - remove function attributes (PR #139302)

2025-05-09 Thread Deric C. via cfe-commits
https://github.com/Icohedron approved this pull request. https://github.com/llvm/llvm-project/pull/139302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Function type attribute to prevent CFI instrumentation (PR #135836)

2025-05-09 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/135836 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -1969,6 +1969,43 @@ def VecCreateOp : CIR_Op<"vec.create", [Pure]> { let hasVerifier = 1; } +//===--===// +// VecInsertOp +//===--===//

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/139146 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM after nits https://github.com/llvm/llvm-project/pull/139146 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Alexey Bataev via cfe-commits
@@ -1480,6 +1493,108 @@ class SemaOpenMP : public SemaBase { SmallVectorImpl &LoopHelpers, Stmt *&Body, SmallVectorImpl> &OriginalInits); + /// @brief Categories of loops encountered during semantic OpenMP loop + /// analysis + /// + /// This enumeration identi

[clang] [clang] Function type attribute to prevent CFI instrumentation (PR #135836)

2025-05-09 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/135836 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [Clang] Reland: Diagnose invalid function types in dependent contexts (PR #139246)

2025-05-09 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/139246 >From 4c87a813ed0d4b4646ab6d32374dfa1525a3711e Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 6 May 2025 20:00:18 +0200 Subject: [PATCH 1/5] [Clang] Diagnose invalid function types in dependent conte

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-09 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale updated https://github.com/llvm/llvm-project/pull/134709 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,s

[clang] [Clang] Allow parsing arbitrary order of attributes for declarations (PR #133107)

2025-05-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/133107 >From c46eda67cd7434dcce5c1f29125a940dc4ff64ba Mon Sep 17 00:00:00 2001 From: Denis Gerasimov Date: Wed, 26 Mar 2025 18:29:38 +0300 Subject: [PATCH 1/8] [CLANG] Enable alignas after GNU attributes --- cla

[clang] [HLSL][NFC] Test cleanup - remove function attributes (PR #139302)

2025-05-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/139302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Add parsing for RootFlags (PR #138055)

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

[clang] [llvm] [OpenMP] implementation set controls elision for begin declare variant (PR #139287)

2025-05-09 Thread Kelvin Li via cfe-commits
https://github.com/kkwli approved this pull request. https://github.com/llvm/llvm-project/pull/139287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement address sanitizer on AIX (1/n) (PR #129925)

2025-05-09 Thread Jake Egan via cfe-commits
https://github.com/jakeegan edited https://github.com/llvm/llvm-project/pull/129925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Alexey Bataev via cfe-commits
@@ -14175,27 +14222,350 @@ bool SemaOpenMP::checkTransformableLoopNest( return false; }, [&OriginalInits](OMPLoopBasedDirective *Transform) { -Stmt *DependentPreInits; -if (auto *Dir = dyn_cast(Transform)) - DependentPreInits = Dir->

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Alexey Bataev via cfe-commits
@@ -0,0 +1,186 @@ +// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c++20 -fopenmp -fopenmp-version=60 -fsyntax-only -Wuninitialized -verify %s + +void func() { + +// expected-error@+2 {{statement after '#pragma omp fuse' must be a loop sequence containing canonical loops

[clang] [Clang] [Sema] Improve support for `__restrict`-qualified member functions (PR #83855)

2025-05-09 Thread via cfe-commits
Sirraide wrote: > @Sirraide, wait, did we all miss this PR? I am so sorry This was a while ago, but I recall talking to @AaronBallman about this one several times, and I think our conclusion at some point was that it wasn’t worth supporting this divergent behaviour or sth like that but I could

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Walter J.T.V via cfe-commits
@@ -3223,6 +3223,8 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { // No other cases for now. } else { + llvm::dbgs() << "THE DAMN DECLREFEXPR HASN'T BEEN ENTERED IN LOCALDECLMAP\n"; + VD->dumpColor(); eZWALT wrote: Oo

[clang] 0d51247 - [clang][Darwin] Minor args cleanup (#139142)

2025-05-09 Thread via cfe-commits
Author: Ian Anderson Date: 2025-05-09T11:37:47-07:00 New Revision: 0d5124775cace200f6f99905989ebeb65853b16e URL: https://github.com/llvm/llvm-project/commit/0d5124775cace200f6f99905989ebeb65853b16e DIFF: https://github.com/llvm/llvm-project/commit/0d5124775cace200f6f99905989ebeb65853b16e.diff

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Walter J.T.V via cfe-commits
@@ -5378,6 +5379,10 @@ class CodeGenFunction : public CodeGenTypeCache { /// Set the address of a local variable. void setAddrOfLocalVar(const VarDecl *VD, Address Addr) { +if (LocalDeclMap.count(VD)) { + llvm::errs() << "Warning: VarDecl already exists in map: ";

[clang] [CIR][NFC] Remove ABI handling from CIRGen call handling (PR #139159)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/139159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/139154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [llvm] [libcxxabi][libunwind] Support for using LLVM libc (PR #134893)

2025-05-09 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/134893 >From 1677ee5c547018472a1f6a29282d3af3500abcd7 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 2 Aug 2024 08:25:53 -0700 Subject: [PATCH 1/2] [libcxxabi][libunwind] Support for using LLVM libc This gener

[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)

2025-05-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Thank you for the fix! I've added a few more reviewers. This is a pretty general problem, so I think we may want additional test coverage for basically any of the OpenMP clauses which accept an integer argument. For example, this is another related issue: https://github.com

[clang] [HIP] change default offload archs (PR #139281)

2025-05-09 Thread Cory Bloor via cfe-commits
https://github.com/cgmb commented: Thanks @yxsamliu! To add a bit more context, this was my original email that raised the topic: > I wonder if we should consider revisiting the decision to default clang to > gfx906 [1]. I came across how that decision was made shortly after it was > implemen

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes commented: This is also missing a end-to-end test that proves we generate switchflatop if we are coming all the way from source code. There are examples in the incubator on how to check if a pass runs (you can use print-before/after) and the IR for it. https:/

[libcxx] [libcxxabi] [libunwind] [llvm] [libcxxabi][libunwind] Support for using LLVM libc (PR #134893)

2025-05-09 Thread Petr Hosek via cfe-commits
@@ -0,0 +1,39 @@ +#=== petrhosek wrote: These are no longer used, removed. https://github.com/llvm/llvm-project/pull/134893 ___ cfe-commits ma

[clang] [clang][Darwin] Minor args cleanup (PR #139142)

2025-05-09 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder closed https://github.com/llvm/llvm-project/pull/139142 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %check_clang_tidy -std=c++11-or-later %s cppcoreguidelines-use-enum-class %t -- -config="{CheckOptions: {cppcoreguidelines-use-enum-class.IgnoreUnscopedEnumsInClasses: true}}" -- + +enum E {}; +// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: enum 'E' is uns

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %check_clang_tidy -std=c++11-or-later %s cppcoreguidelines-use-enum-class %t -- -config="{CheckOptions: {cppcoreguidelines-use-enum-class.IgnoreUnscopedEnumsInClasses: true}}" -- JungPhilipp wrote: Done https://github.com/llvm/llvm-pr

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,31 @@ +.. title:: clang-tidy - cppcoreguidelines-use-enum-class + +cppcoreguidelines-use-enum-class += JungPhilipp wrote: Done https://github.com/llvm/llvm-project/pull/138282 ___

[clang-tools-extra] Fix spelling error crtp-constructor-accessibility.rst (PR #139307)

2025-05-09 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang-tools-extra] Fix spelling error crtp-constructor-accessibility.rst (PR #139307)

2025-05-09 Thread Bart Louwers via cfe-commits
https://github.com/louwers created https://github.com/llvm/llvm-project/pull/139307 it's = it has, which is not correct here. Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMac

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,31 @@ +.. title:: clang-tidy - cppcoreguidelines-use-enum-class + +cppcoreguidelines-use-enum-class += + +Finds plain non-class ``enum`` definitions that could use ``enum class``. + +This check implements `Enum.3 +

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -59,6 +60,8 @@ class CppCoreGuidelinesModule : public ClangTidyModule { void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { CheckFactories.registerCheck( "cppcoreguidelines-avoid-capturing-lambda-coroutines"); +CheckFactories.register

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -136,6 +136,11 @@ New checks Finds potentially erroneous calls to ``reset`` method on smart pointers when the pointee type also has a ``reset`` method. +- New :doc:`cppcoreguidelines-use-enum-class JungPhilipp wrote: Done https://github.com/llvm/llvm-

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -211,6 +211,7 @@ Clang-Tidy Checks :doc:`cppcoreguidelines-rvalue-reference-param-not-moved `, :doc:`cppcoreguidelines-slicing `, :doc:`cppcoreguidelines-special-member-functions `, + :doc:`cppcoreguidelines-use-enum-class `, "Yes" JungPhilipp

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,31 @@ +.. title:: clang-tidy - cppcoreguidelines-use-enum-class + +cppcoreguidelines-use-enum-class += + +Finds plain non-class ``enum`` definitions that could use ``enum class``. + +This check implements `Enum.3 +

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %check_clang_tidy -std=c++11-or-later %s cppcoreguidelines-use-enum-class %t -- -config="{CheckOptions: {cppcoreguidelines-use-enum-class.IgnoreUnscopedEnumsInClasses: true}}" -- + +enum E {}; +// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: enum 'E' is uns

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
@@ -0,0 +1,31 @@ +.. title:: clang-tidy - cppcoreguidelines-use-enum-class + +cppcoreguidelines-use-enum-class += + +Finds plain non-class ``enum`` definitions that could use ``enum class``. JungPhilipp wrote: Done https://github.com/

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -0,0 +1,68 @@ +// RUN: cir-opt %s | FileCheck %s +!s32i = !cir.int + +cir.func @FlatSwitchWithoutDefault(%arg0: !s32i) { + cir.switch.flat %arg0 : !s32i, ^bb2 [ +1: ^bb1 + ] + ^bb1: +cir.br ^bb2 + ^bb2: +cir.return +} + +// CHECK: cir.switch.flat %arg0 : !s32i,

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-09 Thread Oliver Hunt via cfe-commits
@@ -1031,10 +1031,12 @@ def err_ptrauth_qualifier_invalid : Error< "%select{return type|parameter type|property}1 may not be qualified with '__ptrauth'; type is %0">; def err_ptrauth_qualifier_cast : Error< "cannot cast to '__ptrauth'-qualified type %0">; -def err_ptrauth_

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
https://github.com/JungPhilipp updated https://github.com/llvm/llvm-project/pull/138282 >From 0567bc8e1168bb409ee759dd5505861a644a8ead Mon Sep 17 00:00:00 2001 From: Philipp Jung Date: Fri, 2 May 2025 15:22:40 +0200 Subject: [PATCH 1/6] Add check 'modernize-use-enum-class' Warn on non-class en

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Walter J.T.V via cfe-commits
@@ -5790,7 +5805,11 @@ class OMPReverseDirective final : public OMPLoopTransformationDirective { explicit OMPReverseDirective(SourceLocation StartLoc, SourceLocation EndLoc) : OMPLoopTransformationDirective(OMPReverseDirectiveClass,

[clang] [CIR] Implement folder for VecExtractOp (PR #139304)

2025-05-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/139304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [DNC] Break formatting to test clang-format (PR #124809)

2025-05-09 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j closed https://github.com/llvm/llvm-project/pull/124809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Support reentrant capabilities (PR #137133)

2025-05-09 Thread Marco Elver via cfe-commits
@@ -235,6 +266,20 @@ class FactSet { return false; } + std::optional replaceLock(FactManager &FM, iterator It, +std::unique_ptr Entry) { +if (It == end()) + return std::nullopt; +FactID F = FM.newFact(std::move(Entry)); +

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/137580 >From 07b6275740646c6ac0ffd95518e7e9fa8f1e8717 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sun, 27 Apr 2025 22:33:44 -0700 Subject: [PATCH 1/2] [clang] Add support for __ptrauth being applied to integer typ

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Walter J.T.V via cfe-commits
@@ -962,6 +962,9 @@ class OMPLoopTransformationDirective : public OMPLoopBasedDirective { /// Number of loops generated by this loop transformation. unsigned NumGeneratedLoops = 0; + /// Number of top level canonical loop nests generated by this loop + /// transformatio

[clang-tools-extra] Fix spelling error crtp-constructor-accessibility.rst (PR #139307)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Bart Louwers (louwers) Changes it's = it has, which is not correct here. --- Full diff: https://github.com/llvm/llvm-project/pull/139307.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/bugprone/crtp-co

[clang-tools-extra] Fix spelling error crtp-constructor-accessibility.rst (PR #139307)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Bart Louwers (louwers) Changes it's = it has, which is not correct here. --- Full diff: https://github.com/llvm/llvm-project/pull/139307.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/bugprone/

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139146 >From 11de7d363ae9f06e98f15fc5c492e74a660693f8 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 8 May 2025 22:10:39 +0200 Subject: [PATCH 1/3] [CIR] Upstream insert op for VectorType --- clang/inclu

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)

2025-05-09 Thread Walter J.T.V via cfe-commits
@@ -962,6 +962,9 @@ class OMPLoopTransformationDirective : public OMPLoopBasedDirective { /// Number of loops generated by this loop transformation. unsigned NumGeneratedLoops = 0; + /// Number of top level canonical loop nests generated by this loop + /// transformatio

[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

2025-05-09 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/125320 >From f429ad43fa0f56240721f071607b196ad970a6a0 Mon Sep 17 00:00:00 2001 From: "Daniel Paoliello (HE/HIM)" Date: Fri, 31 Jan 2025 16:47:23 -0800 Subject: [PATCH] [aarch64][x86][win] Add support for MSVC's /fun

[clang-tools-extra] Add check 'cppcoreguidelines-use-enum-class' (PR #138282)

2025-05-09 Thread Philipp Jung via cfe-commits
https://github.com/JungPhilipp edited https://github.com/llvm/llvm-project/pull/138282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecExtractOp (PR #139304)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -1395,6 +1395,26 @@ LogicalResult cir::VecCreateOp::verify() { return success(); } +//===--===// +// VecExtractOp +//===--===// + +OpFol

[clang] [CIR] Implement foldder for VecExtractOp (PR #139304)

2025-05-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/139304 This change adds a folder for the VecExtractOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 6a21dc2a983094f61a54755454d12c45cf074c9d Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri

[clang] [CIR] Implement folder for VecExtractOp (PR #139304)

2025-05-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/139304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a783edf - [OpenACC][CIR] 'tile' lowering for combined constructs

2025-05-09 Thread via cfe-commits
Author: erichkeane Date: 2025-05-09T11:54:16-07:00 New Revision: a783edf3db8eaa9797e25cbece7a71370f968d3d URL: https://github.com/llvm/llvm-project/commit/a783edf3db8eaa9797e25cbece7a71370f968d3d DIFF: https://github.com/llvm/llvm-project/commit/a783edf3db8eaa9797e25cbece7a71370f968d3d.diff LO

[clang-tools-extra] Add check 'cppcoreguidelines-use-enum-class' (PR #138282)

2025-05-09 Thread Baranov Victor via cfe-commits
@@ -198,7 +203,7 @@ Changes in existing checks diagnosing designated initializers for ``std::array`` initializations. - Improved :doc:`modernize-use-ranges - ` check by updating suppress + ` check by updating suppress vbvictor wrote: Unrelated change? I'

[clang-tools-extra] Add check 'cppcoreguidelines-use-enum-class' (PR #138282)

2025-05-09 Thread via cfe-commits
@@ -117,6 +117,11 @@ Improvements to clang-tidy New checks ^^ +- New :doc:`cppcoreguidelines-use-enum-class EugeneZelenko wrote: Should be after `bugprone-unintended-char-ostream-output`. https://github.com/llvm/llvm-project/pull/138282 _

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

2025-05-09 Thread Reid Kleckner via cfe-commits
@@ -138,6 +138,12 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<256>], Features = "avx" in } } +// PRFCHW +let Features = "prfchw", Header = "intrin.h", Attributes = [NoThrow, Const] in { rnk wrote: Looks like I actually had a pending change to

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-05-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From d53d1ad252ad5c4c9db61ad03e8a606e195156d9 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH] [clang][PAC] add support for options parameter to __ptrauth This P

[clang] [clang][PAC] add ptrauth intptr test (PR #139338)

2025-05-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/139338 Forgot to actually add the test as part of the `__ptrauth` on intptr PR >From db7075b4855eca0dbb5c0d6c7184c193a975f405 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 9 May 2025 16:36:51 -0700 Subject: [PA

[clang] [clang][PAC] add ptrauth intptr test (PR #139338)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) Changes Forgot to actually add the test as part of the `__ptrauth` on intptr PR --- Full diff: https://github.com/llvm/llvm-project/pull/139338.diff 1 Files Affected: - (added) clang/test/Sema/ptrauth-intptr-qualifi

[clang] [clang][unittests] Fix a leak in SearchPathTest (PR #139335)

2025-05-09 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: I checked on the bot, this fixes the leak! Thank you! https://github.com/llvm/llvm-project/pull/139335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] add ptrauth intptr test (PR #139338)

2025-05-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/139338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-05-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From 6f161d3699cac269f74376dc02697a7242b5 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH] [clang][PAC] add support for options parameter to __ptrauth This P

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-09 Thread Pierre Jolivet via cfe-commits
prj- wrote: @owenca, I actually think that this introduced a regression that was previously fixed in the nightly snapshot of `clang-format-21`. With `clang-format-20`: ``` $ cat foo.cpp template using invoke_result_t = typename std::result_of::type; $ clang-format-20 foo.cpp template using inv

[clang] [clang][bytecode][NFC] Remove unused function (PR #139355)

2025-05-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/139355 None >From a7aba9984f3a01d07d8e90c64bea7d9c9fd328a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 10 May 2025 07:19:37 +0200 Subject: [PATCH] [clang][bytecode][NFC] Remove unused func

[clang] [clang][bytecode][NFC] Remove unused function (PR #139355)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/139355.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (-9) - (modified) clang/lib/AST/ByteCode/Interp.h (-3) ``d

[clang-tools-extra] [clangd] Add tweak to add pure virtual overrides (PR #139348)

2025-05-09 Thread Marco Maia via cfe-commits
marcogmaia wrote: @HighCommander4 could you please take a look here, or forward it to anyone who can? https://github.com/llvm/llvm-project/pull/139348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] 97a58b0 - [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (#125320)

2025-05-09 Thread via cfe-commits
Author: Daniel Paoliello Date: 2025-05-09T14:56:38-07:00 New Revision: 97a58b04c6813d8cab1bfb47ce5023895b016319 URL: https://github.com/llvm/llvm-project/commit/97a58b04c6813d8cab1bfb47ce5023895b016319 DIFF: https://github.com/llvm/llvm-project/commit/97a58b04c6813d8cab1bfb47ce5023895b016319.di

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-05-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From f19a0a6045c98211fcb354e6614aa6707dfccc59 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH] [clang][ptrauth] add support for options parameter to __ptrauth T

[clang] [clang][ThreadSafety]: fix discrepancy between capability attributes (PR #139343)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Cory Fields (theuni) Changes Fix the case where `release_generic_capability` did not correctly release when used as a reverse capability as enabled by commit 6a68efc959. I noticed this when trying to implement a reverse lock. My my proje

[clang] [clang][unittests] Fix a leak in SearchPathTest (PR #139335)

2025-05-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/139335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3f42d34 - [clang][PAC] add ptrauth intptr test (#139338)

2025-05-09 Thread via cfe-commits
Author: Oliver Hunt Date: 2025-05-09T16:38:42-07:00 New Revision: 3f42d34c03096af4f026db2dbe049bbb20f0fddc URL: https://github.com/llvm/llvm-project/commit/3f42d34c03096af4f026db2dbe049bbb20f0fddc DIFF: https://github.com/llvm/llvm-project/commit/3f42d34c03096af4f026db2dbe049bbb20f0fddc.diff L

[clang] [StaticAnalyzer] Remove redundant calls to std::unique_ptr::get (NFC) (PR #139353)

2025-05-09 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139353 None >From b2e1ad4dde2e1a2ef56e47d7c86e86271c264521 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 25 Mar 2025 00:24:37 -0700 Subject: [PATCH] [StaticAnalyzer] Remove redundant calls to std::uniq

[clang] [StaticAnalyzer] Remove redundant calls to std::unique_ptr::get (NFC) (PR #139353)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/139353.diff 5 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/CheckPlacementNew.cpp (+1-1) - (modified) clang/lib/StaticAnaly

[clang] [StaticAnalyzer] Remove redundant calls to std::unique_ptr::get (NFC) (PR #139353)

2025-05-09 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/139353 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][unittests] Fix a leak in SearchPathTest (PR #139335)

2025-05-09 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan approved this pull request. https://github.com/llvm/llvm-project/pull/139335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][unittests] Fix a leak in SearchPathTest (PR #139335)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ian Anderson (ian-twilightcoder) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/139335.diff 1 Files Affected: - (modified) clang/unittests/Frontend/SearchPathTest.cpp (+3-3) ``diff diff --git a/clang/unitte

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #138234)

2025-05-09 Thread Ian Anderson via cfe-commits
ian-twilightcoder wrote: Yeah that's the one, https://github.com/llvm/llvm-project/pull/139335. Hopefully that'll take care of the buildbot https://github.com/llvm/llvm-project/pull/138234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [llvm] [NVPTX] Add intrinsics and clang builtins for conversions of f4x2 type (PR #139244)

2025-05-09 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. https://github.com/llvm/llvm-project/pull/139244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 73165de - [OpenMP] implementation set controls elision for begin declare variant (#139287)

2025-05-09 Thread via cfe-commits
Author: Johannes Doerfert Date: 2025-05-09T16:32:39-07:00 New Revision: 73165de4e68166da5527641078aeaa039116d63d URL: https://github.com/llvm/llvm-project/commit/73165de4e68166da5527641078aeaa039116d63d DIFF: https://github.com/llvm/llvm-project/commit/73165de4e68166da5527641078aeaa039116d63d.d

[clang] [llvm] [OpenMP] implementation set controls elision for begin declare variant (PR #139287)

2025-05-09 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/139287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Allow begin/end declare variant in executable context (PR #139344)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-openmp Author: Johannes Doerfert (jdoerfert) Changes We are missing a few declerative directives in the parser for executable and declerative directives causing us to error out if they are inside of functions. This adds support for begin/end declare va

[clang] [OpenMP] Allow begin/end declare variant in executable context (PR #139344)

2025-05-09 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert created https://github.com/llvm/llvm-project/pull/139344 We are missing a few declerative directives in the parser for executable and declerative directives causing us to error out if they are inside of functions. This adds support for begin/end declare variant by

[clang] [RawPtrRefMemberChecker] Add the support for union and pointers to unsafe pointers. (PR #138042)

2025-05-09 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/138042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (PR #138995)

2025-05-09 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/138995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 12e6622 - [Support] Avoid setting minor/subminor/build in VersionTuple::withMajorReplaced (#139318)

2025-05-09 Thread via cfe-commits
Author: Cyndy Ishida Date: 2025-05-09T16:56:18-07:00 New Revision: 12e6622d4a6602e1c63b261b185eab136b4827de URL: https://github.com/llvm/llvm-project/commit/12e6622d4a6602e1c63b261b185eab136b4827de DIFF: https://github.com/llvm/llvm-project/commit/12e6622d4a6602e1c63b261b185eab136b4827de.diff

[clang] 984475d - [RawPtrRefMemberChecker] Add the support for union and pointers to unsafe pointers. (#138042)

2025-05-09 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-05-09T17:44:13-07:00 New Revision: 984475d82df8d75095c987c909073cec83d5375e URL: https://github.com/llvm/llvm-project/commit/984475d82df8d75095c987c909073cec83d5375e DIFF: https://github.com/llvm/llvm-project/commit/984475d82df8d75095c987c909073cec83d5375e.diff

[clang] [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (PR #138995)

2025-05-09 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/138995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ThreadSafety]: fix discrepancy between capability attributes (PR #139343)

2025-05-09 Thread Cory Fields via cfe-commits
https://github.com/theuni edited https://github.com/llvm/llvm-project/pull/139343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   6   >