[compiler-rt] [clang] [llvm] [flang] [clang-tools-extra] [Flang][OpenMP] Push genEval closer to leaf lowering functions (PR #77760)

2024-01-16 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz edited https://github.com/llvm/llvm-project/pull/77760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA][HIP] warn incompatible redeclare (PR #77359)

2024-01-16 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: ping https://github.com/llvm/llvm-project/pull/77359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [llvm] [libunwind] [libc] [lldb] [compiler-rt] [lld] [clang-tools-extra] [flang] [AMDGPU] Fix predicates for V_DOT instructions. (PR #78198)

2024-01-16 Thread Ivan Kosarev via cfe-commits
https://github.com/kosarev updated https://github.com/llvm/llvm-project/pull/78198 >From 0dc06c5ab3b1ff5f2441ff0ee26f5a6dfbbb7753 Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Mon, 15 Jan 2024 17:20:34 + Subject: [PATCH] [AMDGPU] Fix predicates for V_DOT instructions. Resolves

[flang] [clang] [flang][Driver] Support -pthread in the frontend (PR #77360)

2024-01-16 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/77360 >From ab27280e85d6027e6ff119c0803d962753e83b52 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Mon, 8 Jan 2024 10:56:09 -0700 Subject: [PATCH] [flang][Driver] Support -pthread in the frontend The -pthread

[clang] [Clang][Sema] improve sema check of clang::musttail attribute (PR #77727)

2024-01-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/77727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Extract ellipsis location from CXXFoldExpr for reattaching constraints on NTTPs (PR #78080)

2024-01-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/78080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [compiler-rt] [clang-tools-extra] [llvm] [Flang][OpenMP] Push genEval closer to leaf lowering functions (PR #77760)

2024-01-16 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz edited https://github.com/llvm/llvm-project/pull/77760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] fix crash of attribute transform (PR #78088)

2024-01-16 Thread via cfe-commits
@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only + +// expected-no-diagnostics + +template +struct Bar { +int* data; + +auto operator[](const int index) const [[clang::lifetimebound]] -> decltype(data[index]) { +return data[index]; +} +}; + +int

[clang] [Clang][Sema] fix crash of attribute transform (PR #78088)

2024-01-16 Thread via cfe-commits
@@ -7083,8 +7087,9 @@ QualType TreeTransform::TransformAttributedType( modifiedType != oldType->getModifiedType()) { // TODO: this is really lame; we should really be rebuilding the // equivalent type from first principles. cor3ntin wrote: This

[clang] [coroutines][coro_lifetimebound] Detect lifetime issues with lambda captures (PR #77066)

2024-01-16 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/77066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eca25bb - [OpenACC] Implement 'copyout' clause parsing.

2024-01-16 Thread via cfe-commits
Author: erichkeane Date: 2024-01-16T07:04:28-08:00 New Revision: eca25bbdbb4f4681cd82de80e92b5f1315f0996a URL: https://github.com/llvm/llvm-project/commit/eca25bbdbb4f4681cd82de80e92b5f1315f0996a DIFF: https://github.com/llvm/llvm-project/commit/eca25bbdbb4f4681cd82de80e92b5f1315f0996a.diff

[clang] d5000e9 - rename to 'try' isntead of 'Try'x

2024-01-16 Thread via cfe-commits
Author: erichkeane Date: 2024-01-16T07:04:28-08:00 New Revision: d5000e9cd95b720fc9082da6cdcdb2c865303dcf URL: https://github.com/llvm/llvm-project/commit/d5000e9cd95b720fc9082da6cdcdb2c865303dcf DIFF: https://github.com/llvm/llvm-project/commit/d5000e9cd95b720fc9082da6cdcdb2c865303dcf.diff

[clang] d835d6f - [OpenACC} Improve diagnostics for 'tag's on clauses/directives

2024-01-16 Thread via cfe-commits
Author: erichkeane Date: 2024-01-16T07:04:28-08:00 New Revision: d835d6f4fface8ac093b7583e07f4ce5b1802042 URL: https://github.com/llvm/llvm-project/commit/d835d6f4fface8ac093b7583e07f4ce5b1802042 DIFF: https://github.com/llvm/llvm-project/commit/d835d6f4fface8ac093b7583e07f4ce5b1802042.diff

[clang] [coroutines][coro_lifetimebound] Detect lifetime issues with lambda captures (PR #77066)

2024-01-16 Thread Utkarsh Saxena via cfe-commits
@@ -15845,8 +15845,10 @@ void Sema::CheckCoroutineWrapper(FunctionDecl *FD) { RecordDecl *RD = FD->getReturnType()->getAsRecordDecl(); if (!RD || !RD->getUnderlyingDecl()->hasAttr()) return; - // Allow `get_return_object()`. - if (FD->getDeclName().isIdentifier() &&

[clang] [clang-format] Add parse tests for SeparateDefinitionBlocks option (PR #78256)

2024-01-16 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. LGTM I assume this wasn't tested before https://github.com/llvm/llvm-project/pull/78256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-16 Thread Erich Keane via cfe-commits
erichkeane wrote: > I think this change is useful enough on its own that I'd like us to consider > merging it: to me, teaching the compiler to do additional diffing or further > clarifying the structure of complicated sub-objects feel like they'd benefit > from having this work as a fallback.

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-16 Thread Erich Keane via cfe-commits
@@ -0,0 +1,115 @@ +// RUN: %clang_cc1 -std=c++2a -verify %s + +struct A { + int a, b[3], c; + bool operator==(const A&) const = default; +}; + +constexpr auto a0 = A{0, 0, 3, 4, 5}; + +// expected-note@+1 {{evaluates to 'A{0, {0, 3, 4}, 5} == A{1, {2, 3, 4}, 5}'}}

[clang] [clang] Emit error for invalid friend functions under [temp.friend]p9 (PR #78083)

2024-01-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/78083 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Set the decl context to the instantiated constructor when instantiating the explicit specifier (PR #78053)

2024-01-16 Thread Erich Keane via cfe-commits
erichkeane wrote: > I think it looks good but I'd like @erichkeane's input. > > I also wonder whether we should look at the instantiated parent to determine > whether the lambda is dependent, instead of just looking at the > non-instantiated parent. > > Might fix a few bugs and it's an

[clang] [coroutines][coro_lifetimebound] Detect lifetime issues with lambda captures (PR #77066)

2024-01-16 Thread Ilya Biryukov via cfe-commits
@@ -15845,8 +15845,10 @@ void Sema::CheckCoroutineWrapper(FunctionDecl *FD) { RecordDecl *RD = FD->getReturnType()->getAsRecordDecl(); if (!RD || !RD->getUnderlyingDecl()->hasAttr()) return; - // Allow `get_return_object()`. - if (FD->getDeclName().isIdentifier() &&

[clang] [SemaCXX] Make __builtin_addressof more like std::addressof (PR #78035)

2024-01-16 Thread Erich Keane via cfe-commits
@@ -242,7 +242,7 @@ static bool SemaBuiltinAddressof(Sema , CallExpr *TheCall) { return true; ExprResult Arg(TheCall->getArg(0)); - QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getBeginLoc()); + QualType ResultType = S.CheckAddressOfOperand(Arg,

[clang] [SemaCXX] Make __builtin_addressof more like std::addressof (PR #78035)

2024-01-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Need a release note as well. I don't think I'm great for reviewing this, so I'll leave it to aaron to decide on the direction. https://github.com/llvm/llvm-project/pull/78035 ___ cfe-commits mailing list

[clang] [SemaCXX] Make __builtin_addressof more like std::addressof (PR #78035)

2024-01-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/78035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 23bfc27 - [clang][dataflow] Use `ignoreCFGOmittedNodes()` in `setValue()`. (#78245)

2024-01-16 Thread via cfe-commits
Author: martinboehme Date: 2024-01-16T15:48:44+01:00 New Revision: 23bfc271a316345459809427d98e942455d0e2b6 URL: https://github.com/llvm/llvm-project/commit/23bfc271a316345459809427d98e942455d0e2b6 DIFF: https://github.com/llvm/llvm-project/commit/23bfc271a316345459809427d98e942455d0e2b6.diff

[clang] [clang][dataflow] Use `ignoreCFGOmittedNodes()` in `setValue()`. (PR #78245)

2024-01-16 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/78245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [mlir] [libcxx] [llvm] [libunwind] [libcxxabi] [libc] [lldb] [compiler-rt] [lld] [clang-tools-extra] [flang] [libc++][numeric] P0543R3: Saturation arithmetic (PR #77967)

2024-01-16 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,119 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +//

[clang] [clang-tools-extra] [compiler-rt] [PGO] Reland PGO's Counter Reset and File Dumping APIs #76471 (PR #78285)

2024-01-16 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/78285 >From d64fabb3911ae6990a87729a2477df32c837fb1f Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Fri, 12 Jan 2024 11:45:50 -0500 Subject: [PATCH 1/2] Reland https://github.com/llvm/llvm-project/pull/76471 ---

[clang] [coroutines][coro_lifetimebound] Detect lifetime issues with lambda captures (PR #77066)

2024-01-16 Thread Ilya Biryukov via cfe-commits
@@ -7575,15 +7577,27 @@ static void visitLifetimeBoundArguments(IndirectLocalPath , Expr *Call, Path.pop_back(); }; - if (ObjectArg && implicitObjectParamIsLifetimeBound(Callee)) -VisitLifetimeBoundArg(Callee, ObjectArg); - bool CheckCoroCall = false; if

[clang] [libcxx] [llvm] [libunwind] [libc] [lldb] [compiler-rt] [clang-tools-extra] [flang] [libc++] Implement ranges::iota (PR #68494)

2024-01-16 Thread James E T Smith via cfe-commits
https://github.com/jamesETsmith edited https://github.com/llvm/llvm-project/pull/68494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lld] [llvm] [compiler-rt] [libcxx] [libunwind] [flang] [clang] [mlir] [clang-tools-extra] [libc] [lldb] [libcxxabi] [libc++][numeric] P0543R3: Saturation arithmetic (PR #77967)

2024-01-16 Thread Hristo Hristov via cfe-commits
@@ -0,0 +1,119 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +//

[clang] [clang][ASTImporter] Improve import of variable template specializations. (PR #78284)

2024-01-16 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/78284 From 41393908cb142f5b863a7a4203d89a57c5ce4bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Wed, 22 Nov 2023 16:33:58 +0100 Subject: [PATCH 1/2] [clang][ASTImporter] Improve import of

[clang] [OpenACC} Improve diagnostics for 'tag's on clauses/directives (PR #77957)

2024-01-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/77957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9e068cd - [OpenACC} Improve diagnostics for 'tag's on clauses/directives (#77957)

2024-01-16 Thread via cfe-commits
Author: Erich Keane Date: 2024-01-16T06:32:10-08:00 New Revision: 9e068cd78491d371f30fa2c5eeed98585adbef80 URL: https://github.com/llvm/llvm-project/commit/9e068cd78491d371f30fa2c5eeed98585adbef80 DIFF: https://github.com/llvm/llvm-project/commit/9e068cd78491d371f30fa2c5eeed98585adbef80.diff

[lld] [llvm] [compiler-rt] [libcxx] [libunwind] [flang] [clang] [mlir] [clang-tools-extra] [libc] [lldb] [libcxxabi] [libc++][numeric] P0543R3: Saturation arithmetic (PR #77967)

2024-01-16 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,119 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +//

[llvm] [compiler-rt] [libcxx] [clang] [mlir] [asan] Enable StackSafetyAnalysis by default (PR #77210)

2024-01-16 Thread Ulrich Weigand via cfe-commits
uweigand wrote: > This now causes failures in the SystemZ build bot: > https://lab.llvm.org/buildbot/#/builders/94/builds/18295 Looking at this a bit more, before this patch the stack alignment test passes because the IR is instrumented to include a call to `__asan_alloca_poison` using a

[clang] [clang-tools-extra] [flang] [llvm] [flang] add SYSTEM runtime and lowering intrinsics support (PR #74309)

2024-01-16 Thread Yi Wu via cfe-commits
yi-wu-arm wrote: Hi @jeanPerier sorry to throw a pin, do you mind doing a code review on this pr? This patch calls `std::system` to implement the `SYSTEM` gnu extension. The command passing will be ensured null-terminated, it is achieved by creating a length+1 char using malloc and free if

[clang] [clang-tools-extra] [flang] [llvm] [flang] add SYSTEM runtime and lowering intrinsics support (PR #74309)

2024-01-16 Thread Yi Wu via cfe-commits
https://github.com/yi-wu-arm updated https://github.com/llvm/llvm-project/pull/74309 >From 14f8c3e38791cc6b06455b8beffe37a6f7105e03 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 4 Dec 2023 10:32:03 + Subject: [PATCH 01/13] Add SYSTEM runtime and lowering intrinsic support Calls

[clang] [clang-tools-extra] [compiler-rt] [PGO] Reland PGO's Counter Reset and File Dumping APIs #76471 (PR #78285)

2024-01-16 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/78285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Improve import of variable template specializations. (PR #78284)

2024-01-16 Thread Balázs Kéri via cfe-commits
balazske wrote: After this change it should be possible to add a ``` static bool IsStructurallyEquivalent(StructuralEquivalenceContext , VarTemplateDecl *D1, VarTemplateDecl *D2) ``` function with all tests passing.

[clang] [clang][ASTImporter] Improve import of variable template specializations. (PR #78284)

2024-01-16 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 28bad76e34441a3a43f4bf32e028b43fad93 41393908cb142f5b863a7a4203d89a57c5ce4bc1 --

[llvm] [clang] [RISCV] Relax march string order constraint (PR #78120)

2024-01-16 Thread Kito Cheng via cfe-commits
kito-cheng wrote: I am working on GCC part[1], and it's still under review, also @bemg is working very closely with me :) [1] https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642151.html https://github.com/llvm/llvm-project/pull/78120 ___

[clang] [clang-tools-extra] [compiler-rt] [PGO] Reland PGO's Counter Reset and File Dumping APIs #76471 (PR #78285)

2024-01-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiongsi Wu (qiongsiwu) Changes https://github.com/llvm/llvm-project/pull/76471 caused buildbot failure on Windows. For more details, see https://github.com/llvm/llvm-project/issues/77546. This PR revises the test and relands

[compiler-rt] [clang] [clang-tools-extra] [PGO] Reland PGO's Counter Reset and File Dumping APIs #76471 (PR #78285)

2024-01-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-pgo Author: Qiongsi Wu (qiongsiwu) Changes https://github.com/llvm/llvm-project/pull/76471 caused buildbot failure on Windows. For more details, see https://github.com/llvm/llvm-project/issues/77546. This PR revises the test and relands

[clang] [clang][ASTImporter] Improve import of variable template specializations. (PR #78284)

2024-01-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes Code of `VisitVarTemplateSpecializationDecl` was rewritten based on code of `VisitVarDecl`. Additional changes (in structural equivalence) were made to make tests pass. --- Patch is 22.77 KiB, truncated

[clang] [clang-tools-extra] [compiler-rt] [PGO] Reland PGO's Counter Reset and File Dumping APIs #76471 (PR #78285)

2024-01-16 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu created https://github.com/llvm/llvm-project/pull/78285 https://github.com/llvm/llvm-project/pull/76471 caused buildbot failure on Windows. For more details, see https://github.com/llvm/llvm-project/issues/77546. This PR revises the test and relands

[clang] [clang][ASTImporter] Improve import of variable template specializations. (PR #78284)

2024-01-16 Thread Balázs Kéri via cfe-commits
https://github.com/balazske created https://github.com/llvm/llvm-project/pull/78284 Code of `VisitVarTemplateSpecializationDecl` was rewritten based on code of `VisitVarDecl`. Additional changes (in structural equivalence) were made to make tests pass. From

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian edited https://github.com/llvm/llvm-project/pull/78274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/78274 >From 03e0e75c2793de4429b15acdbd04382ee45b7952 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Tue, 16 Jan 2024 06:28:35 -0500 Subject: [PATCH 1/2] [Clang][Sema][NFC] Remove unused Scope* parameter

[llvm] [clang] [clang-tools-extra] [CLANG] Add warning when INF or NAN are used in a binary operation or as function argument in fast math mode. (PR #76873)

2024-01-16 Thread Aaron Ballman via cfe-commits
@@ -13861,6 +13897,36 @@ Sema::CheckReturnValExpr(Expr *RetValExp, QualType lhsType, CheckPPCMMAType(RetValExp->getType(), ReturnLoc); } +/// Diagnose comparison to NAN or INFINITY in fast math modes. +/// The comparison to NaN or INFINITY is always false in +/// fast

[clang] [clang][dataflow] Use `ignoreCFGOmittedNodes()` in `setValue()`. (PR #78245)

2024-01-16 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/78245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: Ping @erichkeane (if you are already being pinged automatically please let me know so I'm not double-pinging :) ) https://github.com/llvm/llvm-project/pull/78274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Clang] Add a NULL check (PR #77131)

2024-01-16 Thread Joseph Huber via cfe-commits
jhuber6 wrote: Thanks for the patch, this one likely fell through the cracks because it has no assigned reviewers. We'll need a test based off of the original bug report. Put that in `clang/test/OpenMP/.c` and then look at other tests for what it should look like. LLVM uses `lit` to test, you

[clang] [clang][Interp] IndirectMember initializers (PR #69900)

2024-01-16 Thread Aaron Ballman via cfe-commits
@@ -198,6 +198,27 @@ bool ByteCodeStmtGen::visitFunc(const FunctionDecl *F) { return false; if (!this->emitInitPtrPop(InitExpr)) return false; + } else if (const IndirectFieldDecl *IFD = Init->getIndirectMember()) { +

[clang] [Clang] Add a NULL check (PR #77131)

2024-01-16 Thread Joseph Huber via cfe-commits
@@ -21067,6 +21067,10 @@ Sema::ActOnOpenMPDependClause(const OMPDependClause::DependDataTy , ExprTy = ATy->getElementType(); else ExprTy = BaseType->getPointeeType(); +// bug 69200 +if (ExprTy.isNull()) { +

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

2024-01-16 Thread Louis Dionne via cfe-commits
ldionne wrote: Ping. I don't know how to fix the issue, I need some help. https://github.com/llvm/llvm-project/pull/75841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][WebAssembly] Fix libunwind.cpp guard (PR #78230)

2024-01-16 Thread Louis Dionne via cfe-commits
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/78230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] 4967d98 - [libunwind][WebAssembly] Fix libunwind.cpp guard (#78230)

2024-01-16 Thread via cfe-commits
Author: Heejin Ahn Date: 2024-01-16T08:48:50-05:00 New Revision: 4967d98eda48bed4a6f382d240f5a33177bc654c URL: https://github.com/llvm/llvm-project/commit/4967d98eda48bed4a6f382d240f5a33177bc654c DIFF: https://github.com/llvm/llvm-project/commit/4967d98eda48bed4a6f382d240f5a33177bc654c.diff

[libunwind] [libunwind][WebAssembly] Fix libunwind.cpp guard (PR #78230)

2024-01-16 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. https://github.com/llvm/llvm-project/pull/78230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Parse] Diagnose member template declarations with multiple declarators (PR #78243)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
@@ -3167,6 +3167,15 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS, DeclaratorInfo.complete(ThisDecl); +if (TemplateInfo.Kind != ParsedTemplateInfo::NonTemplate) { + if (Tok.is(tok::comma)) { +Diag(Tok,

[clang] [FPEnv] Add strictfp in some C++ constructors lacking a FunctionDecl. (PR #74883)

2024-01-16 Thread Kevin P. Neal via cfe-commits
https://github.com/kpneal updated https://github.com/llvm/llvm-project/pull/74883 >From eb43ba5adbf57988fdd5f490a74dc59d72f495e5 Mon Sep 17 00:00:00 2001 From: "Kevin P. Neal" Date: Fri, 8 Dec 2023 14:43:50 -0500 Subject: [PATCH 1/5] [FPEnv] Add strictfp in some C++ constructors lacking a

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/78274 >From cdd6d0d441a9d2cbd6670890ea2d0c8caff074d1 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Tue, 16 Jan 2024 06:28:35 -0500 Subject: [PATCH 1/2] [Clang][Sema][NFC] Remove unused Scope* parameter

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/78274 >From cdd6d0d441a9d2cbd6670890ea2d0c8caff074d1 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Tue, 16 Jan 2024 06:28:35 -0500 Subject: [PATCH 1/2] [Clang][Sema][NFC] Remove unused Scope* parameter

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krystian Stasiowski (sdkrystian) Changes Previously, we skipped through template parameter scopes (until we hit a declaration scope) prior to redeclaration lookup for declarators. For template declarations, the meant that their template

[clang] [Clang][Sema] Diagnose function/variable templates that shadow their own template parameters (PR #78274)

2024-01-16 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian created https://github.com/llvm/llvm-project/pull/78274 Previously, we skipped through template parameter scopes (until we hit a declaration scope) prior to redeclaration lookup for declarators. For template declarations, the meant that their template parameters

[openmp] [llvm] [libcxx] [mlir] [libcxxabi] [lld] [compiler-rt] [clang] [runtimes] Use LLVM libunwind from libc++abi by default (PR #77687)

2024-01-16 Thread Louis Dionne via cfe-commits
ldionne wrote: That means that based on whether `LLVM_ENABLE_RUNTIMES=libunwind` happens to be set or not, you'd use a fundamentally different unwinding library which implies a different ABI. It's convenient, but isn't that too subtle? https://github.com/llvm/llvm-project/pull/77687

[flang] [clang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-16 Thread Andrzej Warzyński via cfe-commits
banach-space wrote: Thank you for this summary, @luporl ! > I think `-isysroot` should have preference over `DEFAULT_SYSROOT`, but: > > * I don't have much knowledge about the driver. > * Since this has been the behavior for a long time, I fear that changing it > may break some use case. > *

[clang] [clang][ExprConst] allow single element access of vector object to be constant expression (PR #72607)

2024-01-16 Thread Aaron Ballman via cfe-commits
@@ -437,6 +442,16 @@ namespace { MostDerivedArraySize = 2; MostDerivedPathLength = Entries.size(); } +void addVectorUnchecked(QualType EltTy, uint64_t Size, uint64_t Idx) { + Entries.push_back(PathEntry::ArrayIndex(Idx)); + + // This is

[clang] Improve modeling of two functions in StdLibraryFunctionsChecker (PR #78079)

2024-01-16 Thread Ben Shi via cfe-commits
https://github.com/benshi001 closed https://github.com/llvm/llvm-project/pull/78079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] da6806d - Improve modeling of two functions in StdLibraryFunctionsChecker (#78079)

2024-01-16 Thread via cfe-commits
Author: Ben Shi Date: 2024-01-16T21:15:41+08:00 New Revision: da6806dcb45d311efceaba0d770d9027d68a0de9 URL: https://github.com/llvm/llvm-project/commit/da6806dcb45d311efceaba0d770d9027d68a0de9 DIFF: https://github.com/llvm/llvm-project/commit/da6806dcb45d311efceaba0d770d9027d68a0de9.diff LOG:

[clang] [coroutines][coro_lifetimebound] Detect lifetime issues with lambda captures (PR #77066)

2024-01-16 Thread Utkarsh Saxena via cfe-commits
@@ -7575,15 +7577,27 @@ static void visitLifetimeBoundArguments(IndirectLocalPath , Expr *Call, Path.pop_back(); }; - if (ObjectArg && implicitObjectParamIsLifetimeBound(Callee)) -VisitLifetimeBoundArg(Callee, ObjectArg); - bool CheckCoroCall = false; if

[llvm] [clang] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)

2024-01-16 Thread NAKAMURA Takumi via cfe-commits
@@ -298,7 +298,7 @@ struct CounterMappingRegion { unsigned ExpandedFileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, RegionKind Kind) - : MCDCParams(MCDCParams),

[llvm] [clang] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)

2024-01-16 Thread NAKAMURA Takumi via cfe-commits
@@ -668,6 +668,8 @@ struct MCDCCoverageBuilder { llvm::SmallVector NestLevel; llvm::DenseMap llvm::DenseMap + llvm::DenseMap TrueCondIDs; chapuni wrote: I think `TrueCondIDs` and `FalseCondIDs` can be unified.

[llvm] [clang] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)

2024-01-16 Thread NAKAMURA Takumi via cfe-commits
@@ -298,7 +298,7 @@ struct CounterMappingRegion { unsigned ExpandedFileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, RegionKind Kind) - : MCDCParams(MCDCParams),

[llvm] [clang] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)

2024-01-16 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni requested changes to this pull request. I've found this change fails with the expression; `((a && (b || c) || (d && e)) && f)`. I guess there might be a confusion in `AndRHS` and `OrRHS`. I haven't understood your code completely, though. I've pushed my refactoring

[clang] [llvm] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)

2024-01-16 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/78202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Add inline descriptor to global variables (PR #72892)

2024-01-16 Thread Aaron Ballman via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -332,6 +332,22 @@ bool CheckInitialized(InterpState , CodePtr OpPC, const Pointer , return false; } +bool CheckGlobalInitialized(InterpState , CodePtr OpPC, const

[clang] [llvm] [AArch64][Driver] Better handling of target feature dependencies (PR #78270)

2024-01-16 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 032c832719b5b2c44b78359ed54b91964ef15b79 ebd6e9a2a9b80ca492f294b9f8468c20fb30005a --

[clang] [llvm] [AArch64][Driver] Better handling of target feature dependencies (PR #78270)

2024-01-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-clang-driver Author: None (ostannard) Changes Currently there are several bits of code in the AArch64 driver which attempt to enforce dependencies between optional features in the -march= and -mcpu= options.

[clang] [Clang][Parse] Diagnose member template declarations with multiple declarators (PR #78243)

2024-01-16 Thread via cfe-commits
@@ -3167,6 +3167,15 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS, DeclaratorInfo.complete(ThisDecl); +if (TemplateInfo.Kind != ParsedTemplateInfo::NonTemplate) { + if (Tok.is(tok::comma)) { +Diag(Tok,

[llvm] [clang-tools-extra] [clang] [indvars] Missing variables at Og: (PR #69920)

2024-01-16 Thread Carlos Alberto Enciso via cfe-commits
https://github.com/CarlosAlbertoEnciso updated https://github.com/llvm/llvm-project/pull/69920 >From 844ec47fb887a860b4f8e28d435848a245eeb388 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Enciso Date: Mon, 23 Oct 2023 11:44:22 +0100 Subject: [PATCH 1/5] [indvars] Missing variables at Og:

[flang] [llvm] [clang] [libcxx] [mlir] [Flang][OpenMP] : Add a temporary lowering for workshare directive (PR #78268)

2024-01-16 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan updated https://github.com/llvm/llvm-project/pull/78268 >From 71c3449d872247e3af05de545e907407ac7ac9f9 Mon Sep 17 00:00:00 2001 From: Kiran Chandramohan Date: Tue, 16 Jan 2024 12:45:23 + Subject: [PATCH] [Flang][OpenMP] : Add a temporary lowering for

[llvm] [clang] [RISCV] CodeGen of RVE and ilp32e/lp64e ABIs (PR #76777)

2024-01-16 Thread Wang Pengcheng via cfe-commits
https://github.com/wangpc-pp closed https://github.com/llvm/llvm-project/pull/76777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Use `ignoreCFGOmittedNodes()` in `setValue()`. (PR #78245)

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

[clang] [clang-format] TableGen multi line string support. (PR #78032)

2024-01-16 Thread Hirofumi Nakamura via cfe-commits
@@ -274,13 +274,13 @@ void FormatTokenLexer::tryMergePreviousTokens() { return; } } - if (Style.isTableGen()) { -if (tryMergeTokens({tok::l_square, tok::l_brace}, - TT_TableGenMultiLineString)) { - // Multi line string starts with [{

[clang] [llvm] [clang-tools-extra] [flang] [flang] add SYSTEM runtime and lowering intrinsics support (PR #74309)

2024-01-16 Thread Yi Wu via cfe-commits
https://github.com/yi-wu-arm updated https://github.com/llvm/llvm-project/pull/74309 >From 14f8c3e38791cc6b06455b8beffe37a6f7105e03 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 4 Dec 2023 10:32:03 + Subject: [PATCH 01/12] Add SYSTEM runtime and lowering intrinsic support Calls

[clang] [clang-format] TableGen multi line string support. (PR #78032)

2024-01-16 Thread Hirofumi Nakamura via cfe-commits
https://github.com/hnakamura5 updated https://github.com/llvm/llvm-project/pull/78032 >From d0767350f26215e86dee039427183630b3f02668 Mon Sep 17 00:00:00 2001 From: hnakamura5 Date: Sat, 13 Jan 2024 21:44:34 +0900 Subject: [PATCH 1/4] [clang-format] TableGen multi line string support. ---

[llvm] [clang-tools-extra] [flang] [clang] [flang] add SYSTEM runtime and lowering intrinsics support (PR #74309)

2024-01-16 Thread Yi Wu via cfe-commits
https://github.com/yi-wu-arm updated https://github.com/llvm/llvm-project/pull/74309 >From 14f8c3e38791cc6b06455b8beffe37a6f7105e03 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 4 Dec 2023 10:32:03 + Subject: [PATCH 01/11] Add SYSTEM runtime and lowering intrinsic support Calls

[clang] [clang-format] TableGen multi line string support. (PR #78032)

2024-01-16 Thread Hirofumi Nakamura via cfe-commits
https://github.com/hnakamura5 updated https://github.com/llvm/llvm-project/pull/78032 >From d0767350f26215e86dee039427183630b3f02668 Mon Sep 17 00:00:00 2001 From: hnakamura5 Date: Sat, 13 Jan 2024 21:44:34 +0900 Subject: [PATCH 1/4] [clang-format] TableGen multi line string support. ---

[clang] [clang][dataflow] Tighten checking for existence of a function body. (PR #78163)

2024-01-16 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/78163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c19cacf - [clang][dataflow] Tighten checking for existence of a function body. (#78163)

2024-01-16 Thread via cfe-commits
Author: martinboehme Date: 2024-01-16T12:52:55+01:00 New Revision: c19cacfa34f52b65addeb7239d564b20e3cf2c61 URL: https://github.com/llvm/llvm-project/commit/c19cacfa34f52b65addeb7239d564b20e3cf2c61 DIFF: https://github.com/llvm/llvm-project/commit/c19cacfa34f52b65addeb7239d564b20e3cf2c61.diff

[clang] [clang-format] Add parse tests for SeparateDefinitionBlocks option (PR #78256)

2024-01-16 Thread via cfe-commits
https://github.com/seranu updated https://github.com/llvm/llvm-project/pull/78256 >From 05de7ff4ba8e90cab10ff42abad5c68e84780e70 Mon Sep 17 00:00:00 2001 From: Serban Ungureanu Date: Tue, 16 Jan 2024 12:56:10 +0200 Subject: [PATCH] [clang-format] Add parse tests for SeparateDefinitionBlocks

[clang] [coroutines][coro_lifetimebound] Detect lifetime issues with lambda captures (PR #77066)

2024-01-16 Thread Utkarsh Saxena via cfe-commits
@@ -15845,8 +15845,10 @@ void Sema::CheckCoroutineWrapper(FunctionDecl *FD) { RecordDecl *RD = FD->getReturnType()->getAsRecordDecl(); if (!RD || !RD->getUnderlyingDecl()->hasAttr()) return; - // Allow `get_return_object()`. - if (FD->getDeclName().isIdentifier() &&

[llvm] [clang] [AMDGPU] Add global_load_tr for GFX12 (PR #77772)

2024-01-16 Thread Piotr Sobczak via cfe-commits
https://github.com/piotrAMD updated https://github.com/llvm/llvm-project/pull/2 >From 1b2085465dd0988459a4c71dab6cd65b1de065be Mon Sep 17 00:00:00 2001 From: Piotr Sobczak Date: Thu, 11 Jan 2024 14:52:59 +0100 Subject: [PATCH 1/5] [AMDGPU] Add global_load_tr for GFX12 Support new

[clang] [Clang] Refactor diagnostics for SME builtins. (PR #78258)

2024-01-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sander de Smalen (sdesmalen-arm) Changes The arm_sme.td file was still using `IsSharedZA` and `IsPreservesZA`, which should be changed to match the new state attributes added in #76971. This patch adds `IsInZA`, `IsOutZA` and `IsInOutZA`

[clang] [Clang] Refactor diagnostics for SME builtins. (PR #78258)

2024-01-16 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm created https://github.com/llvm/llvm-project/pull/78258 The arm_sme.td file was still using `IsSharedZA` and `IsPreservesZA`, which should be changed to match the new state attributes added in #76971. This patch adds `IsInZA`, `IsOutZA` and `IsInOutZA` as the

[clang] [flang] [flang][driver] Allow explicit specification of -lFortran_main (PR #78152)

2024-01-16 Thread Tom Eccles via cfe-commits
tblah wrote: > I'd agree to that! The way gfortran does it, seems the best approach. When > there's a program unit in the code, gfortran also add a `main` definition to > that translation unit. +2 > I could opt-in to make this a learning project for me, but I'd need some hand > holding to

[clang] 032c832 - [Clang][AArch64] Remove unnecessary and incorrect attributes from arm_sme.h.

2024-01-16 Thread Sander de Smalen via cfe-commits
Author: Sander de Smalen Date: 2024-01-16T11:20:59Z New Revision: 032c832719b5b2c44b78359ed54b91964ef15b79 URL: https://github.com/llvm/llvm-project/commit/032c832719b5b2c44b78359ed54b91964ef15b79 DIFF: https://github.com/llvm/llvm-project/commit/032c832719b5b2c44b78359ed54b91964ef15b79.diff

[clang] [cfi][CodeGen] Call SetLLVMFunctionAttributes{, ForDefinition} on __cf… (PR #78253)

2024-01-16 Thread Pavel Kosov via cfe-commits
kpdev wrote: The same thing was done for `__cfi_check_fail` in the following patch: https://reviews.llvm.org/D70692 https://github.com/llvm/llvm-project/pull/78253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[llvm] [clang] [PowerPC] Make "ca" aliased to "xer" (PR #77557)

2024-01-16 Thread Kai Luo via cfe-commits
@@ -288,9 +288,9 @@ def SPEFSCR: SPR<512, "spefscr">, DwarfRegNum<[612, 112]>; def XER: SPR<1, "xer">, DwarfRegNum<[76]>; -// Carry bit. In the architecture this is really bit 0 of the XER register -// (which really is SPR register 1); this is the only bit interesting to a

[llvm] [clang] [PowerPC] Make "ca" aliased to "xer" (PR #77557)

2024-01-16 Thread Kai Luo via cfe-commits
@@ -782,6 +782,8 @@ ArrayRef PPCTargetInfo::getGCCRegNames() const { const TargetInfo::GCCRegAlias PPCTargetInfo::GCCRegAliases[] = { // While some of these aliases do map to different registers // they still share the same register name. +// Strictly speaking,

<    1   2   3   4   5   6   >