[clang] [Clang] Add check for -mstack-alignment (PR #143124)

2025-06-11 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/143124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Stop moving lambda to new line only to indent it more. (PR #141576)

2025-06-11 Thread Owen Pan via cfe-commits
@@ -325,13 +325,30 @@ bool ContinuationIndenter::canBreak(const LineState &State) { if (Current.isMemberAccess() && CurrentState.ContainsUnwrappedBuilder) return false; - // Don't create a 'hanging' indent if there are multiple blocks in a single - // statement and we

[clang] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)

2025-06-11 Thread Michael Davis via cfe-commits
https://github.com/mdavis36 updated https://github.com/llvm/llvm-project/pull/143839 >From c1e9c253b863297e5e245ae9a484f4275bb1187d Mon Sep 17 00:00:00 2001 From: mdavis36 Date: Wed, 11 Jun 2025 22:32:30 -0700 Subject: [PATCH] Remove "explicitly" from ambiguous documentaion on [[clang::no_spec

[clang] [clang-format] Stop moving lambda to new line only to indent it more. (PR #141576)

2025-06-11 Thread Owen Pan via cfe-commits
@@ -325,13 +325,30 @@ bool ContinuationIndenter::canBreak(const LineState &State) { if (Current.isMemberAccess() && CurrentState.ContainsUnwrappedBuilder) return false; - // Don't create a 'hanging' indent if there are multiple blocks in a single - // statement and we

[clang] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Davis (mdavis36) Changes # Summary This PR resolves issue #143719. - Removes "explcitly" from the documentation on `[[clang::no_specialization]]` to better match behavior of specialization as defined by the C++ standard. --- Full

[clang] [clang-format] Stop moving lambda to new line only to indent it more. (PR #141576)

2025-06-11 Thread Owen Pan via cfe-commits
@@ -325,13 +325,30 @@ bool ContinuationIndenter::canBreak(const LineState &State) { if (Current.isMemberAccess() && CurrentState.ContainsUnwrappedBuilder) return false; - // Don't create a 'hanging' indent if there are multiple blocks in a single - // statement and we

[clang] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)

2025-06-11 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] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)

2025-06-11 Thread Michael Davis via cfe-commits
https://github.com/mdavis36 created https://github.com/llvm/llvm-project/pull/143839 # Summary This PR resolves issue #143719. - Removes "explcitly" from the documentation on `[[clang::no_specialization]]` to better match behavior of specialization as defined by the C++ standard. >From c1e9c2

[clang-tools-extra] [llvm] [NFC] Use `llvm::includes` instead of `std::includes` (PR #143542)

2025-06-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang-tools-extra,llvm` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/1

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I would also like to see some more background info on how we came up with the original limit (if it exists). https://github.com/llvm/llvm-project/pull/143785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [flang] [llvm] [mlir] Atomic control backend (PR #143769)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj edited https://github.com/llvm/llvm-project/pull/143769 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [mlir] Atomic control backend (PR #143769)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143769 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/4] [flang][flang-driver] atomic control support --- clang/i

[clang] [analyzer] Conversion to CheckerFamily: NullabilityChecker (PR #143735)

2025-06-11 Thread Ziqing Luo via cfe-commits
ziqingluo-90 wrote: I do not have many suggestions for this change. It's great that we can get rid of the meaningless `nullability.NullabilityBase` dummy checker. Thanks. https://github.com/llvm/llvm-project/pull/143735 ___ cfe-commits mailing list

[clang] [clang][darwin] Fix assertion failure when reporting fatal errors when inferring OS versions (PR #143817)

2025-06-11 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/143817 >From 11b78ef3b9464aba1e54dcf9c18fceea359d16eb Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Wed, 11 Jun 2025 17:20:20 -0700 Subject: [PATCH] [clang][darwin] Fix assertion failure when reporting fatal e

[clang] [analyzer] Conversion to CheckerFamily: NullabilityChecker (PR #143735)

2025-06-11 Thread Ziqing Luo via cfe-commits
@@ -113,25 +114,21 @@ class NullabilityChecker void printState(raw_ostream &Out, ProgramStateRef State, const char *NL, const char *Sep) const override; - enum CheckKind { -CK_NullPassedToNonnull, -CK_NullReturnedFromNonnull, -CK_NullableDerefe

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread Timm Baeder via cfe-commits
tbaederr wrote: The linked standard says: > Full-expressions evaluated within a core constant expression > ([[expr.const]](https://eel.is/c++draft/expr.const)) [1 048  > 576][.](https://eel.is/c++draft/implimits#1.39.sentence-1) Is that actually what the "steps" in clang refer to? We seem to ch

[clang] [OpenMP 60] Initial parsing/sema for `need_device_addr` modifier on `adjust_args` clause (PR #143442)

2025-06-11 Thread Fazlay Rabbi via cfe-commits
https://github.com/mdfazlay closed https://github.com/llvm/llvm-project/pull/143442 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 02550da - [OpenMP 60] Initial parsing/sema for `need_device_addr` modifier on `adjust_args` clause (#143442)

2025-06-11 Thread via cfe-commits
Author: Fazlay Rabbi Date: 2025-06-11T22:06:11-07:00 New Revision: 02550da932913bd7c3987c68abc9060c9e5bde2c URL: https://github.com/llvm/llvm-project/commit/02550da932913bd7c3987c68abc9060c9e5bde2c DIFF: https://github.com/llvm/llvm-project/commit/02550da932913bd7c3987c68abc9060c9e5bde2c.diff

[clang] [Clang][Cygwin] attempt to fix building shared libclang. (PR #138351)

2025-06-11 Thread via cfe-commits
https://github.com/jeremyd2019 closed https://github.com/llvm/llvm-project/pull/138351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Move Input into SmallVector instead of copy (PR #143830)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged Input as a large object that would benefit from being moved over being copied. --- Full diff: https://github.com/llvm/llvm-project/pull/143830.diff 1 Files Affected: - (modified)

[clang] [Clang][NFC] Move Input into SmallVector instead of copy (PR #143830)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/143830 Static analysis flagged Input as a large object that would benefit from being moved over being copied. >From ea85dd226ad4c8a6f9ef0a7f16c22fdc386c1334 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Wed, 11

[clang] [Clang] Make the result type of sizeof/pointer subtraction/size_t literals be typedefs instead of built-in types (PR #143653)

2025-06-11 Thread A. Jiang via cfe-commits
@@ -6726,17 +6726,67 @@ QualType ASTContext::getTagDeclType(const TagDecl *Decl) const { return getTypeDeclType(const_cast(Decl)); } +// Inject __size_t, __signed_size_t, and __ptrdiff_t to provide portable hints +// and diagnostics. In C and C++, expressions of type size_t

[clang] [Clang][NFC] Move FatbinFileName instead of copy (PR #143827)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged FatbinFileName since we can move it instead of copying it. --- Full diff: https://github.com/llvm/llvm-project/pull/143827.diff 1 Files Affected: - (modified) clang/lib/Interpret

[clang] [Clang][NFC] Move FatbinFileName instead of copy (PR #143827)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/143827 Static analysis flagged FatbinFileName since we can move it instead of copying it. >From 5fd6d2ff512a971b8e6ad8f900c31a1b74b49ed5 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Wed, 11 Jun 2025 20:58:07 -

[clang] f09050f - [C++20] [Modules] Fix module local lookup ambiguousity

2025-06-11 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-06-12T11:48:09+08:00 New Revision: f09050fdc85074869f0b34f0d9e061a74ef549ee URL: https://github.com/llvm/llvm-project/commit/f09050fdc85074869f0b34f0d9e061a74ef549ee DIFF: https://github.com/llvm/llvm-project/commit/f09050fdc85074869f0b34f0d9e061a74ef549ee.diff LO

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143441 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/3] [flang][flang-driver] atomic control support --- clang/i

[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

2025-06-11 Thread Fangrui Song via cfe-commits
@@ -18,6 +18,53 @@ using namespace llvm; using namespace AMDGPU; +/// Find KV in array using binary search. +static const BasicSubtargetSubTypeKV * +Find(StringRef S, ArrayRef A) { MaskRay wrote: `find` (functionName in new code) https://github.com/llvm/llvm

[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

2025-06-11 Thread Fangrui Song via cfe-commits
@@ -18,6 +18,53 @@ using namespace llvm; using namespace AMDGPU; +/// Find KV in array using binary search. +static const BasicSubtargetSubTypeKV * +Find(StringRef S, ArrayRef A) { + // Binary search the array + auto F = llvm::lower_bound(A, S); + // If not found then retur

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143441 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/3] [flang][flang-driver] atomic control support --- clang/i

[clang] bb3b830 - [NFC] [C++20] [Modules] Add a test module local declaration lookup

2025-06-11 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-06-12T10:48:34+08:00 New Revision: bb3b8306dc226c4dc4dfde36444b43476eea66ee URL: https://github.com/llvm/llvm-project/commit/bb3b8306dc226c4dc4dfde36444b43476eea66ee DIFF: https://github.com/llvm/llvm-project/commit/bb3b8306dc226c4dc4dfde36444b43476eea66ee.diff LO

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I have the same questions as @efriedma-quic https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
@@ -1321,3 +1321,24 @@ constexpr bool check = different_in_loop(); // expected-error@-1 {{}} expected-note@-1 {{in call}} } + +namespace GH48665 { +constexpr bool foo(int *i) { shafik wrote: Other tests: https://godbolt.org/z/o66Gr3fc8 ```cpp struct A {

[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-11 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I think we shouldn't remove the assertion. Your test passes with the removal of the assertion since the initializers are not complex. So it ends quickly. But if it is a complex initialization which triggers more deserialization, I feel it will be problematic. I think the poi

[clang] [flang] [llvm] Fix and reapply IR PGO support for Flang (PR #142892)

2025-06-11 Thread via cfe-commits
https://github.com/fanju110 deleted https://github.com/llvm/llvm-project/pull/142892 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
@@ -35,6 +35,7 @@ enum AccessKinds { AK_Construct, AK_Destroy, AK_IsWithinLifetime, + AK_CheckReferenceInitialization shafik wrote: ```suggestion AK_ReferenceInitialization ``` I could also go for `AK_ReadForReferenceInitialization`. The "Check" is w

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c431618 - [Clang][Driver] Override complex number calculation method by -fno-fast-math (#132680)

2025-06-11 Thread via cfe-commits
Author: Shunsuke Watanabe Date: 2025-06-12T10:19:26+09:00 New Revision: c4316180418ce8de4b4c9812c7fac791d55b6102 URL: https://github.com/llvm/llvm-project/commit/c4316180418ce8de4b4c9812c7fac791d55b6102 DIFF: https://github.com/llvm/llvm-project/commit/c4316180418ce8de4b4c9812c7fac791d55b6102.d

[clang] [LoongArch] Fix '-mno-lsx' option not disabling LASX feature (PR #143821)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: None (Ami-zhang) Changes When '-march' with LASX feature and '-mno-lsx' options are used together, '-mno-lsx' fails to disable LASX, leaving 'HasFeatureLASX=true' and causing incorrect '__loongarch_sx/asx=1' macro definition.

[clang] [LoongArch] Fix '-mno-lsx' option not disabling LASX feature (PR #143821)

2025-06-11 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/143821 When '-march' with LASX feature and '-mno-lsx' options are used together, '-mno-lsx' fails to disable LASX, leaving 'HasFeatureLASX=true' and causing incorrect '__loongarch_sx/asx=1' macro definition. Fixes

[clang-tools-extra] [llvm] [NFC] Use `llvm::includes` instead of `std::includes` (PR #143542)

2025-06-11 Thread Longsheng Mou via cfe-commits
https://github.com/CoTinker closed https://github.com/llvm/llvm-project/pull/143542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 52360d1 - [NFC] Use `llvm::includes` instead of `std::includes` (#143542)

2025-06-11 Thread via cfe-commits
Author: Longsheng Mou Date: 2025-06-12T09:27:27+08:00 New Revision: 52360d195b85608c677d781272534dfa61e9a1c3 URL: https://github.com/llvm/llvm-project/commit/52360d195b85608c677d781272534dfa61e9a1c3 DIFF: https://github.com/llvm/llvm-project/commit/52360d195b85608c677d781272534dfa61e9a1c3.diff

[clang] [Clang][Driver] Override complex number calculation method by -fno-fast-math (PR #132680)

2025-06-11 Thread Shunsuke Watanabe via cfe-commits
https://github.com/s-watanabe314 closed https://github.com/llvm/llvm-project/pull/132680 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-11 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,596 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-11 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/138972 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-11 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,596 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-11 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: I'd like to see regression tests for the cases I've mentioned. PHI nodes, ConstantExpr, and I guess the combination of the two. https://github.com/llvm/llvm-project/pull/138972 ___ cfe-commits mailing list

[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)

2025-06-11 Thread Tom Stellard via cfe-commits
tstellar wrote: Was there a backport request created for this one? https://github.com/llvm/llvm-project/pull/135957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-11 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/138972 >From 0d7c21c83f608a11de9129844d62ff73820a4acb Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Thu, 3 Apr 2025 16:10:50 -0700 Subject: [PATCH] Windows hotpatching support --- clang/include/clang/Basic/Code

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-11 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/143814 >From a976da9d6033a252fab75de216fe6580d6e3e6ff Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 12 Jun 2025 00:47:43 +0100 Subject: [PATCH 1/2] Override `SPIRVTargetCodeGenInfo::supportsLibCall()` in order

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-11 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx commented: #143431 is related to this, but it proposes a more pervasive change, which would require further discussion and clarification around what the SPIR-V BE wants to do / support in term of libcalls. https://github.com/llvm/llvm-project/pull/143814

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-11 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/143814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-11 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 HEAD~1 HEAD --extensions c,cpp -- clang/lib/CodeGen/Targets/SPIR.cpp clang/test/CodeG

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Alex Voicu (AlexVlx) Changes The `supportsLibCall` predicate is used to select whether some math builtins get expanded in the FE or they get lowered into libcalls. The default implementation unconditiona

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-11 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx created https://github.com/llvm/llvm-project/pull/143814 The `supportsLibCall` predicate is used to select whether some math builtins get expanded in the FE or they get lowered into libcalls. The default implementation unconditionally returns true, which is problemat

[clang] [Clang][Tooling][NFC] Use move to avoid copies of large objects (PR #143603)

2025-06-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/30523

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From 8f5c75c524b42fc405b107a847643e1fb18adab0 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/5] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [llvm] [win][x64] Unwind v2 3/n: Add support for requiring unwind v2 to be used (equivalent to MSVC's /d2epilogunwindrequirev2) (PR #143577)

2025-06-11 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/143577 >From 07390317820324535fc75f7bd9dd53c2e65bda41 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Fri, 6 Jun 2025 16:39:07 -0700 Subject: [PATCH] Add support for requiring Win x64 Unwind V2 --- clang/inc

[clang] [clang] Fix PointerAuth semantics of cpp_trivially_relocatable (PR #143796)

2025-06-11 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 HEAD~1 HEAD --extensions h,cpp -- clang/test/SemaCXX/trivially-relocatable-ptrauth.cp

[clang] [clang] Fix PointerAuth semantics of cpp_trivially_relocatable (PR #143796)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) Changes This reworks the way we compute relocatability and replaceability of types. We do this by having a single interface the provides a full `TypeRelocationInfo` for a QualType. This simplifies the reasoning for al

[clang] [clang] Fix PointerAuth semantics of cpp_trivially_relocatable (PR #143796)

2025-06-11 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/143796 This reworks the way we compute relocatability and replaceability of types. We do this by having a single interface the provides a full `TypeRelocationInfo` for a QualType. This simplifies the reasoning for all

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
@@ -88,6 +88,46 @@ void fir::setTuneCPU(mlir::ModuleOp mod, llvm::StringRef cpu) { mod->setAttr(tuneCpuName, mlir::StringAttr::get(ctx, cpu)); } +static constexpr const char *amdgpuIgnoreDenormalModeName = +"fir.amdgpu.ignore.denormal.mode"; +void fir::setAmdgpuIgnoreDe

[clang] [CIR] Upstream support for emitting constructors (PR #143639)

2025-06-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/143639 >From 7e08ebf8887cb4ef90a06b853ebacfff1e57f510 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 9 Jun 2025 09:38:55 -0700 Subject: [PATCH 1/2] [CIR] Upstream support for emitting constructors This chang

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Typically we set limits like this for at least somewhat of a reasoned-reason. Can we do some archeology to figure out when/why we decided on this limit? Many times these limits are a result of our own stack space limits, so it would be interesting to

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
@@ -58,10 +58,24 @@ void setTargetCPU(mlir::ModuleOp mod, llvm::StringRef cpu); /// Get the target CPU string from the Module or return a null reference. llvm::StringRef getTargetCPU(mlir::ModuleOp mod); +// Setters and Getters for atomic control options anchu

[clang] [HIP] Remove dots in HIP runtime path (PR #143792)

2025-06-11 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 HEAD~1 HEAD --extensions cpp -- clang/lib/Driver/ToolChains/Linux.cpp ``

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
@@ -53,6 +53,11 @@ class TargetOptions { /// Print verbose assembly bool asmVerbose = false; + + /// Atomic Control Options for AMD GPU anchuraj wrote: Updated https://github.com/llvm/llvm-project/pull/143441

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
@@ -58,10 +58,24 @@ void setTargetCPU(mlir::ModuleOp mod, llvm::StringRef cpu); /// Get the target CPU string from the Module or return a null reference. llvm::StringRef getTargetCPU(mlir::ModuleOp mod); +// Setters and Getters for atomic control options +void setAmdgpuIgnoreD

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
@@ -2911,8 +2911,13 @@ static void genAtomicUpdateStatement( if (rightHandClauseList) genOmpAtomicHintAndMemoryOrderClauses(converter, *rightHandClauseList, hint, memoryOrder); + auto module = firOpBuilder.getModule(); -

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
@@ -54,6 +54,20 @@ def FlagsAttr : OpenMP_Attr<"Flags", "flags"> { let assemblyFormat = "`<` struct(params) `>`"; } +//===--===// +// AtomicControlAttr +//===-

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Eli Friedman via cfe-commits
@@ -5243,7 +5245,19 @@ static bool EvaluateVarDecl(EvalInfo &Info, const VarDecl *VD) { if (InitE->isValueDependent()) return false; - if (!EvaluateInPlace(Val, Info, Result, InitE)) { + if (VD->getType()->isReferenceType() && InitE->isGLValue()) { ef

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Eli Friedman via cfe-commits
@@ -5243,7 +5245,19 @@ static bool EvaluateVarDecl(EvalInfo &Info, const VarDecl *VD) { if (InitE->isValueDependent()) return false; - if (!EvaluateInPlace(Val, Info, Result, InitE)) { + if (VD->getType()->isReferenceType() && InitE->isGLValue()) { +if (!EvaluateL

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
anchuraj wrote: > Thanks for this. > > Since you have added both `FlangOption` and `FC1Option` in `Options.td`, > could you add a test that checks that the option is handled by the main > driver as well as `fc1`. One that simply checks that the option gets passed > down to `fc1` from the main

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Eli Friedman via cfe-commits
@@ -174,10 +174,11 @@ def note_constexpr_heap_alloc_limit_exceeded : Note< def note_constexpr_this : Note< "%select{|implicit }0use of 'this' pointer is only allowed within the " "evaluation of a call to a 'constexpr' member function">; -def access_kind : TextSubstitution<

[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-06-11 Thread Eli Friedman via cfe-commits
@@ -4503,7 +4505,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E, } else { const Expr *Base = LVal.Base.dyn_cast(); -if (!Frame) { +if (!Frame && AK != clang::AK_CheckReferenceInitialization) { efriedma-quic wrote: T

[clang] [flang] [llvm] [mlir] Atomic control backend (PR #143769)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj edited https://github.com/llvm/llvm-project/pull/143769 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Remove dots in HIP runtime path (PR #143792)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Siu Chi Chan (scchan) Changes Remove the dots in the HIP path before passing to the rpath flag --- Full diff: https://github.com/llvm/llvm-project/pull/143792.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Linux.cpp (+5

[clang] Add missing intrinsics to cuda headers (PR #143664)

2025-06-11 Thread Erich Keane via cfe-commits
erichkeane wrote: > Erich, is there a good point-of-contact at nvidia who can review CUDA > intrinsic header changes in the future? For the most part, we don't have ANYTHING to do with CUDA in clang as far as I know. I also don't know much about CUDA, but I'll ping an internal slack channel

[clang] [HIP] Remove dots in HIP runtime path (PR #143792)

2025-06-11 Thread Siu Chi Chan via cfe-commits
https://github.com/scchan created https://github.com/llvm/llvm-project/pull/143792 Remove the dots in the HIP path before passing to the rpath flag >From 4519fbaec265c0b927e235516c72869cf128aa62 Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Wed, 11 Jun 2025 17:18:42 -0400 Subject: [PATCH]

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. https://github.com/llvm/llvm-project/pull/143771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [mlir] Atomic control backend (PR #143769)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143769 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/4] [flang][flang-driver] atomic control support --- clang/i

[clang] [flang] [mlir] [flang][flang-driver] atomic control support (PR #143441)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143441 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/3] [flang][flang-driver] atomic control support --- clang/i

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. https://github.com/llvm/llvm-project/pull/143355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for emitting constructors (PR #143639)

2025-06-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/143639 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [mlir] Atomic control backend (PR #143769)

2025-06-11 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 HEAD~1 HEAD --extensions cpp,h -- flang/include/flang/Frontend/TargetOptions.h flang

[clang] [flang] [llvm] [mlir] Atomic control backend (PR #143769)

2025-06-11 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143769 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/4] [flang][flang-driver] atomic control support --- clang/i

[clang] [SPIRV] enable and copy device implementation for logb and scalbn builtins (PR #143431)

2025-06-11 Thread via cfe-commits
https://github.com/choikwa closed https://github.com/llvm/llvm-project/pull/143431 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SPIRV] enable and copy device implementation for logb and scalbn builtins (PR #143431)

2025-06-11 Thread via cfe-commits
choikwa wrote: Closed in favor of better fix https://github.com/llvm/llvm-project/pull/143431 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix bad error recovery when classes are defined inside template (PR #142278)

2025-06-11 Thread Matheus Izvekov via cfe-commits
@@ -220,6 +220,14 @@ static ExprResult EvaluateAtomicConstraint( if (Inst.isInvalid()) return ExprError(); +if (const TemplateTypeParmType *TTPT = + dyn_cast(AtomicExpr->getType().getDesugaredType(S.Context))) { + TemplateTypeParmDecl *TTPD = TTPT->

[clang] [Clang] [NFC] Move diagnostics emitting code from `DiagnosticIDs` into `DiagnosticsEngine` (PR #143517)

2025-06-11 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/143517 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7838fc0 - [Clang] [NFC] Move diagnostics emitting code from `DiagnosticIDs` into `DiagnosticsEngine` (#143517)

2025-06-11 Thread via cfe-commits
Author: Sirraide Date: 2025-06-11T23:24:33+02:00 New Revision: 7838fc0cd3fbe578d9554fdcd3198c2ba3616bcc URL: https://github.com/llvm/llvm-project/commit/7838fc0cd3fbe578d9554fdcd3198c2ba3616bcc DIFF: https://github.com/llvm/llvm-project/commit/7838fc0cd3fbe578d9554fdcd3198c2ba3616bcc.diff LOG:

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread via cfe-commits
@@ -3992,7 +3992,7 @@ Controlling implementation limits Sets the limit for the number of full-expressions evaluated in a single constant expression evaluation. This also controls the maximum size of array and dynamic array allocation that can be constant evaluated. - The

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread via cfe-commits
@@ -3992,7 +3992,7 @@ Controlling implementation limits Sets the limit for the number of full-expressions evaluated in a single constant expression evaluation. This also controls the maximum size of array and dynamic array allocation that can be constant evaluated. - The

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread via cfe-commits
Sirraide wrote: > on my machine 20 million steps take roughly 10 seconds. Yeah, same. Added some more reviewers in case anyone can think of a reason why we *shouldn’t* do this. https://github.com/llvm/llvm-project/pull/143785 ___ cfe-commits mailing

[clang] [Clang] fix missing source location for errors in macro-expanded (PR #143460)

2025-06-11 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic closed https://github.com/llvm/llvm-project/pull/143460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d7e7f22 - [Clang] fix missing source location for errors in macro-expanded (#143460)

2025-06-11 Thread via cfe-commits
Author: Oleksandr T. Date: 2025-06-11T14:19:25-07:00 New Revision: d7e7f22626f214766f3592341dd1737fd232c6a5 URL: https://github.com/llvm/llvm-project/commit/d7e7f22626f214766f3592341dd1737fd232c6a5 DIFF: https://github.com/llvm/llvm-project/commit/d7e7f22626f214766f3592341dd1737fd232c6a5.diff

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread via cfe-commits
https://github.com/Sirraide commented: This seems reasonable to me. This should also come with a release note (in clang/docs/ReleaseNotes.rst); not sure in what section though. https://github.com/llvm/llvm-project/pull/143785 ___ cfe-commits mailing

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread via cfe-commits
@@ -3992,7 +3992,7 @@ Controlling implementation limits Sets the limit for the number of full-expressions evaluated in a single constant expression evaluation. This also controls the maximum size of array and dynamic array allocation that can be constant evaluated. - The

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-06-11 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/143785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix missing source location for errors in macro-expanded (PR #143460)

2025-06-11 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM (It might be worth trying to audit other uses of getLocForEndOfToken; it looks like there are other dubious uses. But we don't need to do everything in one patch.) https://github.com/llvm/llvm-project/pull/143460 _

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143771 This change adds a folder for the VecSplatOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 02f674320c41416cd6afe574545a737312cd5a7d Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed,

  1   2   3   4   5   >