[clang-tools-extra] [clang-tidy] Fix `modernize-use-nullptr` crash on 32-bit Windows (PR #160023)

2025-09-27 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/160023 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Diags] Automatically format AP(S)Int values with separators (PR #161047)

2025-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/161047 >From 2f94bdcfc4b97c5e495ac438e4a16b8e96f5315f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 28 Sep 2025 07:46:46 +0200 Subject: [PATCH] [clang][Diags] Automatically format AP(S)Int va

[clang] [Clang] Ensure initialized NTTP expressions when building CTAD for type aliases (PR #161035)

2025-09-27 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/161035 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix `modernize-use-nullptr` crash on 32-bit Windows (PR #160023)

2025-09-27 Thread Baranov Victor via cfe-commits
vbvictor wrote: I think we can merge this now and later take steps on how to avoid similar issues in the future. https://github.com/llvm/llvm-project/pull/160023 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/ma

[clang] [clang-format] Fix bugs in annotating arrows and square brackets (PR #160973)

2025-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 12 "build-stage2-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/16379 H

[clang] [clang][bytecode] Diagnose volatile writes (PR #160350)

2025-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/11859 Here is the relevant piece of

[clang] [llvm] [Support] Deprecate one form of support::endian::byte_swap (NFC) (PR #161045)

2025-09-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/161045 This is a follow-up to #156140 and #160979, which deprecated one form of write and read, respectively. We have two forms of byte_swap: template [[nodiscard]] inline value_type byte_swap(value_type v

[clang] [clang-format] Fix a bug in wrapping { after else (PR #161048)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes Fixes #160775 --- Full diff: https://github.com/llvm/llvm-project/pull/161048.diff 3 Files Affected: - (modified) clang/lib/Format/FormatToken.h (+1-1) - (modified) clang/lib/Format/TokenAnnotator.cpp (+2

[clang] [clang-format] Fix a bug in wrapping { after else (PR #161048)

2025-09-27 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/161048 Fixes #160775 >From 4f5986bec1d6bd5961407aea2100872bfcfc7f0f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 26 Sep 2025 02:45:53 -0700 Subject: [PATCH] [clang-format] Fix a bug in wrapping { after else Fixe

[clang] [clang][Diags] Automatically format AP(S)Int values with separators (PR #161047)

2025-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/161047 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Diags] Automatically format AP(S)Int values with separators (PR #161047)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This adds an operator<< overfload for StreamingDiagnostic that takes an APInt/APSInt and formats it with default options, including adding separators. This is still an opt-in mechanism since all callers that

[clang] [clang][Diags] Automatically format AP(S)Int values with separators (PR #161047)

2025-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/161047 This adds an operator<< overfload for StreamingDiagnostic that takes an APInt/APSInt and formats it with default options, including adding separators. This is still an opt-in mechanism since all callers that w

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-27 Thread Shawn K via cfe-commits
kimsh02 wrote: @tbaederr I'm still working on it. Much appreciated for checking in! https://github.com/llvm/llvm-project/pull/158703 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Support] Deprecate one form of support::endian::byte_swap (NFC) (PR #161045)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes This is a follow-up to #156140 and #160979, which deprecated one form of write and read, respectively. We have two forms of byte_swap: template [[nodiscard]] inline value_typ

[clang] [llvm] [Support] Deprecate one form of support::endian::byte_swap (NFC) (PR #161045)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Kazu Hirata (kazutakahirata) Changes This is a follow-up to #156140 and #160979, which deprecated one form of write and read, respectively. We have two forms of byte_swap: template [[nodiscard]] inline

[clang] [llvm] [Support] Deprecate one form of support::endian::byte_swap (NFC) (PR #161045)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-mc Author: Kazu Hirata (kazutakahirata) Changes This is a follow-up to #156140 and #160979, which deprecated one form of write and read, respectively. We have two forms of byte_swap: template [[nodiscard]] inline value_t

[clang-tools-extra] [clang-tidy] Fix `modernize-use-nullptr` crash on 32-bit Windows (PR #160023)

2025-09-27 Thread Jonathan Hyry via cfe-commits
eljonny wrote: Does this fix the same issue with `hicpp-use-nullptr`? It looks like the code for that check might be separate. I believe that check is also affected by the same crash. https://github.com/llvm/llvm-project/pull/160023 ___ cfe-commits mai

[clang] [clang][bytecode] Diagnose volatile writes (PR #160350)

2025-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/160350 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c750487 - [clang][bytecode] Diagnose volatile writes (#160350)

2025-09-27 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-28T07:21:40+02:00 New Revision: c7504872927486bb70c26aa71f795b1331cbbd38 URL: https://github.com/llvm/llvm-project/commit/c7504872927486bb70c26aa71f795b1331cbbd38 DIFF: https://github.com/llvm/llvm-project/commit/c7504872927486bb70c26aa71f795b1331cbbd38.diff L

[clang] [clang-format] Fix bugs in annotating arrows and square brackets (PR #160973)

2025-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/12752 Here is the relev

[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/161028 >From 91950f77c51b4350b6a5d0ccc2df8a36e3c3d8d8 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sat, 27 Sep 2025 19:14:52 -0400 Subject: [PATCH] [CIR] Upstream `AddressSpace` support for `PointerType` --- .

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-27 Thread Shawn K via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/158703 >From 1b81bf79bc7e6a2c1df846b27e4a95cf1cb97090 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Mon, 15 Sep 2025 10:58:34 -0700 Subject: [PATCH 01/14] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin -

[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/161028 >From 42940a5ebddba0ed3030d8b63285f79d21bcfdc1 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sat, 27 Sep 2025 19:14:52 -0400 Subject: [PATCH] [CIR] Upstream `AddressSpace` support for `PointerType` --- .

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-27 Thread Timm Baeder via cfe-commits
tbaederr wrote: Are you still stuck with a problem? I can have a look. https://github.com/llvm/llvm-project/pull/158703 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add -r option for recursing into directories (PR #160299)

2025-09-27 Thread James Henderson via cfe-commits
https://github.com/jh7370 ready_for_review https://github.com/llvm/llvm-project/pull/160299 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix bugs in annotating arrows and square brackets (PR #160973)

2025-09-27 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/160973 >From ec8aadf1ec05897667e1c9df60ac9845d45f955a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 26 Sep 2025 19:42:46 -0700 Subject: [PATCH 1/3] [clang-format] Fix bugs in annotating arrows and square brackets

[clang] 4edda3d - [clang-format] Fix bugs in annotating arrows and square brackets (#160973)

2025-09-27 Thread via cfe-commits
Author: owenca Date: 2025-09-27T21:29:25-07:00 New Revision: 4edda3d78c26b9d928d115b2059d0c719eec237b URL: https://github.com/llvm/llvm-project/commit/4edda3d78c26b9d928d115b2059d0c719eec237b DIFF: https://github.com/llvm/llvm-project/commit/4edda3d78c26b9d928d115b2059d0c719eec237b.diff LOG: [

[clang] [clang-format] Fix bugs in annotating arrows and square brackets (PR #160973)

2025-09-27 Thread via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/160973 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Introduce isNotOneOf (PR #161021)

2025-09-27 Thread via cfe-commits
@@ -1877,8 +1880,9 @@ struct AdditionalKeywords { // In Verilog the colon in a default label is optional. return Tok.is(TT_CaseLabelColon) || (Tok.is(tok::kw_default) && -!(Next && Next->isOneOf(tok::colon, tok::semi, kw_clocking, kw_iff, -

[clang] 63f1c03 - [Driver] Make -fvectorize and -fslp-vectorize override -O group options (#161032)

2025-09-27 Thread via cfe-commits
Author: Fangrui Song Date: 2025-09-27T20:38:26-07:00 New Revision: 63f1c03feea17c8236774f3b5dc811d5cb3a2364 URL: https://github.com/llvm/llvm-project/commit/63f1c03feea17c8236774f3b5dc811d5cb3a2364 DIFF: https://github.com/llvm/llvm-project/commit/63f1c03feea17c8236774f3b5dc811d5cb3a2364.diff

[clang] [Driver] Make -fvectorize and -fslp-vectorize override -O group options (PR #161032)

2025-09-27 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/161032 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Make -fvectorize and -fslp-vectorize override -O group options (PR #161032)

2025-09-27 Thread dong jianqiang via cfe-commits
https://github.com/dongjianqiang2 approved this pull request. LGTM ! Thanks @MaskRay https://github.com/llvm/llvm-project/pull/161032 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Introduce isNotOneOf (PR #161021)

2025-09-27 Thread via cfe-commits
owenca wrote: Running `grep` in `clang/lib/Format/` gives the following (likely) missed ones: ``` $ grep -n isOneOf *.cpp | grep \! ContinuationIndenter.cpp:371: if (!Current.isOneOf(TT_BinaryOperator, tok::comma) && ContinuationIndenter.cpp:448: !Current.isOneOf(tok::r_paren, tok::r_brac

[clang] [clang-format] Fix qualifier ordering for lines after PP directives (PR #160731)

2025-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/28297 Here is th

[clang] [Clang] Ensure initialized NTTP expressions when building CTAD for type aliases (PR #161035)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes We missed calling CheckTemplateArgument when building CTAD deduction guides. That ensures some InitExprs are correctly initialized, as in the test that crashed due to incorrect NTTP initialization. I don't

[clang] [Clang] Ensure initialized NTTP expressions when building CTAD for type aliases (PR #161035)

2025-09-27 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/161035 We missed calling CheckTemplateArgument when building CTAD deduction guides. That ensures some InitExprs are correctly initialized, as in the test that crashed due to incorrect NTTP initialization. I don't use

[clang] [clang-tools-extra] [clang-tidy] Fix false positives about references in `misc-const-correctness` (PR #160971)

2025-09-27 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/160971 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix qualifier ordering for lines after PP directives (PR #160731)

2025-09-27 Thread via cfe-commits
github-actions[bot] wrote: @ZhongRuoyu Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bui

[clang] [clang-format] Fix qualifier ordering for lines after PP directives (PR #160731)

2025-09-27 Thread via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/160731 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9a01561 - [clang-format] Fix qualifier ordering for lines after PP directives (#160731)

2025-09-27 Thread via cfe-commits
Author: Ruoyu Zhong Date: 2025-09-27T20:12:36-07:00 New Revision: 9a01561760a2785fbf6d66f86ba2361d36a648f7 URL: https://github.com/llvm/llvm-project/commit/9a01561760a2785fbf6d66f86ba2361d36a648f7 DIFF: https://github.com/llvm/llvm-project/commit/9a01561760a2785fbf6d66f86ba2361d36a648f7.diff L

[clang] [C++20] [Modules] Set the feature testing macro to 1 (PR #161034)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chuanqi Xu (ChuanqiXu9) Changes See https://github.com/llvm/llvm-project/issues/71364 for details. --- Full diff: https://github.com/llvm/llvm-project/pull/161034.diff 2 Files Affected: - (modified) clang/lib/Frontend/InitPreprocessor.c

[clang] [C++20] [Modules] Set the feature testing macro to 1 (PR #161034)

2025-09-27 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/161034 See https://github.com/llvm/llvm-project/issues/71364 for details. >From d21c069178610022c0c3ac40ce30ca76268bf0dc Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Sun, 28 Sep 2025 11:05:44 +0800 Subject: [PAT

[clang] [clang-format] Fix qualifier ordering for lines after PP directives (PR #160731)

2025-09-27 Thread via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/160731 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][Driver][LLVM] Add -fno-inline-functions-called-once; expose p… (PR #160343)

2025-09-27 Thread Fangrui Song via cfe-commits
MaskRay wrote: While GCC has -finline-functions-called-once, we don't blindly copy every option it supports. Please provide clear, technical justification. The description looks AI-generated, making it difficult to assess its value. https://github.com/llvm/llvm-project/pull/160343

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-27 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia updated https://github.com/llvm/llvm-project/pull/153049 >From c562d407468236c0ee31cd32949e7f6a363a798f Mon Sep 17 00:00:00 2001 From: Wael Yehia Date: Tue, 9 Sep 2025 19:27:03 + Subject: [PATCH 01/11] accept ifunc attribute on AIX --- clang/include/clang/Basic/

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-27 Thread Justin Stitt via cfe-commits
@@ -9744,6 +9744,16 @@ static void DiagnoseNarrowingInInitList(Sema &S, case NK_Constant_Narrowing: { // A constant value was narrowed. + +// Overflow behavior destination types with a 'wrap' kind can elide JustinStitt wrote: Without the OBT check i

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-27 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > @ojhunt I closed all the threads which are no longer relevant or are > duplicates. 👍 > ## To be done in scope of this PR > ### Trivial formatting issues > These require almost zero effort to apply. Please consider fixing these first > so we do not need to worry about them any

[clang] [clang] fix transformation of subst constant template parameter nodes (PR #161029)

2025-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/13097 Here is the relev

[clang] [Driver] Make -fvectorize and -fslp-vectorize override -O group options (PR #161032)

2025-09-27 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/161032 >From cc983d941fcdf585b9c1e2d6f4559461558466a1 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 27 Sep 2025 18:47:23 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] simplify placeholder type deduction for constant template parameters (PR #160439)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/160439 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UnretainedCallArgsChecker] Recognize [allocObj() init] pattern (PR #161019)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes Generalize the check for recognizing [[Obj alloc] init] to also recognize [allocObj() init]. We do this by utilizing isAllocInit function in RetainPtrCtorAdoptChecker. --- Full diff: https:/

[clang-tools-extra] [clang-tidy] Portability Avoid Unprototyped Functions Check (PR #161023)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (isuckatcs) Changes This check is inspired by a recent [issue](https://bugs.ruby-lang.org/issues/20908) that happened with Ruby. Ruby supports native extensions written in C, and the compilation of those extensions happens on

[clang] [clang] Accept empty enum in MSVC compatible C (PR #159981)

2025-09-27 Thread via cfe-commits
https://github.com/yicuixi updated https://github.com/llvm/llvm-project/pull/159981 >From 77fc06c7147e8eec1712f2c8babdb6fd8a48dd94 Mon Sep 17 00:00:00 2001 From: yicuixi Date: Sun, 21 Sep 2025 22:22:28 +0800 Subject: [PATCH 1/4] [clang] Accept empty enum in MSVC compatible C Signed-off-by: yic

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-27 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Sigh, built wrong repo, basic errors which I'm fixing now https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Make -fvectorize and -fslp-vectorize override -O group options (PR #161032)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Fangrui Song (MaskRay) Changes `clang -fno-slp-vectorize -O2` incorrectly enabled CC1 -vectorize-slp. Make -fvectorize and -fslp-vectorize properly override -O, following the convention. Fix #160633 ---

[clang] [Driver] Make -fvectorize and -fslp-vectorize override -O group options (PR #161032)

2025-09-27 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/161032 `clang -fno-slp-vectorize -O2` incorrectly enabled CC1 -vectorize-slp. Make -fvectorize and -fslp-vectorize properly override -O, following the convention. Fix #160633 >From cc983d941fcdf585b9c1e2d6f4559461558

[clang] [clang][bytecode] Use stack offsets for This/RVO ptrs (PR #160285)

2025-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/160285 >From b06263d8a458ef3cdfc6197e7fed4c31b387bca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 23 Sep 2025 14:39:44 +0200 Subject: [PATCH] [clang][bytecode] Use stack offsets for This/RV

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-09-27 Thread Eli Friedman via cfe-commits
@@ -3679,6 +3679,35 @@ the arguments. Both arguments and the result have the bitwidth specified by the name of the builtin. These builtins can be used within constant expressions. +``__builtin_stdc_rotate_left`` and ``__builtin_stdc_rotate_right`` +---

[clang] [analyzer] Avoid use of `CallEvent`s with obsolete state (PR #160707)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Donát Nagy (NagyDonat) Changes The method `ExprEngine::evalCall` handles multiple state transitions and activates various checker callbacks that take a `CallEvent` parameter (among other parameters). Unfortunately some of these callbacks

[clang] 078e99e - [clang] fix transformation of subst constant template parameter nodes (#161029)

2025-09-27 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-09-28T01:30:06Z New Revision: 078e99ef017cac3899e5dbc2ed917f173c9eedad URL: https://github.com/llvm/llvm-project/commit/078e99ef017cac3899e5dbc2ed917f173c9eedad DIFF: https://github.com/llvm/llvm-project/commit/078e99ef017cac3899e5dbc2ed917f173c9eedad.diff LO

[clang] [clang] fix transformation of subst constant template parameter nodes (PR #161029)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/161029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Support HLSL matrix initializers (PR #160960)

2025-09-27 Thread Farzon Lotfi via cfe-commits
farzonl wrote: > I think this approach probably needs some adjustment. HLSL allows > constructor-like syntax but it behaves the same way the HLSL initializer list > syntax does, so matrix initialization should be done through SemaHLSL’s > initialization list handling. Will look into this than

[clang] [clang][test] Add test for comma operator rejection in preprocessor conditionals (PR #155570)

2025-09-27 Thread NohHyeon Kwon via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1 -E -pedantic-errors %s -verify -std=c++98 +// RUN: %clang_cc1 -E -pedantic-errors %s -verify -std=c++11 +// RUN: %clang_cc1 -E -pedantic-errors %s -verify -std=c++14 +// RUN: %clang_cc1 -E -pedantic-errors %s -verify -std=c++17 +// RUN: %clang_

[clang] [clang-format] Support fine-grained alignment of variable declarations (PR #160270)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: James Henderson (jh7370) Changes This allows disabling variable alignment declarations while still having function alignment. It also distinguishes between class member variables and other variables (e.g. function local variables).

[clang] [llvm] [LICM] Sink unused l-invariant loads in preheader. (PR #157559)

2025-09-27 Thread Nikita Popov via cfe-commits
nikic wrote: > > Unused loop invariant loads were not sunk from preheader to exit block, > > increasing live range. > > What live range? If the result is unused, how can it contribute to register > pressure in the loop body? I believe "unused" here refers to "unused inside the loop, but used

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/160339 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-27 Thread via cfe-commits
@@ -6246,40 +6246,178 @@ __m512i test_mm512_ternarylogic_epi32(__m512i __A, __m512i __B, __m512i __C) { // CHECK: @llvm.x86.avx512.pternlog.d.512({{.*}}, i32 240) return _mm512_ternarylogic_epi32(__A, __B, __C, _MM_TERNLOG_A); } +TEST_CONSTEXPR(match_v16si( + _mm512_terna

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-27 Thread Simon Pilgrim via cfe-commits
@@ -2607,3 +2607,19 @@ void test_mm512_mask_cvtusepi16_storeu_epi8 (void * __P, __mmask32 __M, __m512i // CHECK: @llvm.x86.avx512.mask.pmovus.wb.mem.512 _mm512_mask_cvtusepi16_storeu_epi8 ( __P, __M, __A); } + +__m512i test_mm512_bslli_epi16(__m512i a) { + // CHECK-LABEL: @

[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix transformation of subst constant template parameter nodes (PR #161029)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/161029 >From 41fb95c59932612bb636b096330c16a83d3a4ab4 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 24 Sep 2025 17:18:41 -0300 Subject: [PATCH] [clang] fix transformation of subst constant template parame

[clang] [clang] fix transformation of subst constant template parameter nodes (PR #161029)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov auto_merge_enabled https://github.com/llvm/llvm-project/pull/161029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix transformation of subst constant template parameter nodes (PR #161029)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/161029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland: [clang] Implement evaluation context for checking template parameters (PR #130603)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/130603 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4a4573a - [clang] simplify placeholder type deduction for constant template parameters (#160439)

2025-09-27 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-09-28T00:59:53Z New Revision: 4a4573a4adeab93111c3d58bff16ad24123ccc5f URL: https://github.com/llvm/llvm-project/commit/4a4573a4adeab93111c3d58bff16ad24123ccc5f DIFF: https://github.com/llvm/llvm-project/commit/4a4573a4adeab93111c3d58bff16ad24123ccc5f.diff LO

[clang] [clang] simplify placeholder type deduction for constant template parameters (PR #160439)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov auto_merge_enabled https://github.com/llvm/llvm-project/pull/160439 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] simplify placeholder type deduction for constant template parameters (PR #160439)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/160439 >From 21fe7eea5c0f7dbfe8b08251a594c23ea2e8980d Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 24 Sep 2025 00:21:01 -0300 Subject: [PATCH 1/2] [clang] simplify placeholder type deduction for constant

[clang] [clang] simplify placeholder type deduction for constant template parameters (PR #160439)

2025-09-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/160439 >From 30da2b4136d5ebcb726446b18a6d675ea075785b Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 24 Sep 2025 00:21:01 -0300 Subject: [PATCH] [clang] simplify placeholder type deduction for constant tem

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-27 Thread Oliver Hunt via cfe-commits
@@ -680,11 +682,19 @@ int CompactUnwinder_arm64::stepWithCompactEncodingFrame( savedRegisterLoc -= 8; } - uint64_t fp = registers.getFP(); + Registers_arm64::reg_t fp = registers.getFP(); // fp points to old fp registers.setFP(addressSpace.get64(fp)); - // old

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-27 Thread Oliver Hunt via cfe-commits
@@ -680,11 +682,19 @@ int CompactUnwinder_arm64::stepWithCompactEncodingFrame( savedRegisterLoc -= 8; } - uint64_t fp = registers.getFP(); + Registers_arm64::reg_t fp = registers.getFP(); // fp points to old fp registers.setFP(addressSpace.get64(fp)); - // old

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave created https://github.com/llvm/llvm-project/pull/161028 None >From 93d566f42b6259685ad5708a156d1ca2e58ae3e2 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sat, 27 Sep 2025 19:14:52 -0400 Subject: [PATCH] [CIR] Upstream `AddressSpaceAttr` support for `PointerTyp

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: David Rivera (RiverDave) Changes Related: #160386 Add support for address spaces in CIR pointer types. This PR adds support for address spaces in CIR pointer types by: as specified in the incubator: 1. Introducing a new `AddressSpace` e

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Rivera (RiverDave) Changes Related: #160386 Add support for address spaces in CIR pointer types. This PR adds support for address spaces in CIR pointer types by: as specified in the incubator: 1. Introducing a new `AddressSpace` enu

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave ready_for_review https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/161028 >From eb5a41d2308c919c9a525f2086822793686b2a03 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sat, 27 Sep 2025 19:14:52 -0400 Subject: [PATCH] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` --

[clang] [clang-tools-extra] [clang-tidy] Fix false positives about references in `misc-const-correctness` (PR #160971)

2025-09-27 Thread Victor Chernyakin via cfe-commits
@@ -309,6 +309,10 @@ Changes in existing checks - ``for`` loops are supported. +- Improved :doc:`misc-const-correctness + ` check to avoid false + positives when pointers is tranferred to non-const references. localspook wrote: ```suggestion positives

[clang] [clang-tools-extra] [clang-tidy] Fix false positives about references in `misc-const-correctness` (PR #160971)

2025-09-27 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/160971 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Fix false positives about references in `misc-const-correctness` (PR #160971)

2025-09-27 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook approved this pull request. Just a nit about the release notes: https://github.com/llvm/llvm-project/pull/160971 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-27 Thread Oliver Hunt via cfe-commits
@@ -118,22 +119,51 @@ _LIBUNWIND_HIDDEN int __unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum, typedef LocalAddressSpace::pint_t pint_t; AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor; if (co->validReg(regNum)) { -co->setReg(regNum, (pint_t)value);

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-27 Thread Oliver Hunt via cfe-commits
@@ -9744,6 +9744,16 @@ static void DiagnoseNarrowingInInitList(Sema &S, case NK_Constant_Narrowing: { // A constant value was narrowed. + +// Overflow behavior destination types with a 'wrap' kind can elide ojhunt wrote: Why is that a reasonable ass

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 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 origin/main HEAD --extensions c,cpp,h -- clang/test/CIR/address-space.c clang/includ

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream `AddressSpaceAttr` support for `PointerType` (PR #161028)

2025-09-27 Thread David Rivera via cfe-commits
RiverDave wrote: * **#161028** https://app.graphite.dev/github/pr/llvm/llvm-project/161028?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/16

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-27 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Had to rebase as there was a divergence between my tree and this one - possibly I accidentally merged main to the PR https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list [email protected] https://lists.l

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2025-09-27 Thread via cfe-commits
@@ -4699,6 +4699,55 @@ TEST_F(FormatTestComments, SplitCommentIntroducers) { getLLVMStyleWithColumns(10))); } +TEST_F(FormatTestComments, LineCommentsOnStartOfFunctionCall) { + auto Style = getLLVMStyle(); + + EXPECT_TRUE(Style.Cpp11BracedListStyle); + +

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-09-27 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 origin/main HEAD --extensions h -- clang/lib/Headers/ptrauth.h `` :warning:

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-09-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/161027 This introduces a number of additional macros to support the use of manual pointer authentication. >From d9c3119437fd7433c9283bb9a63d8b629b4532e3 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sat, 27 Sep 202

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-09-27 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Style differences a sufficiently minor that I'll take them and deal with future merge issues when they come up. https://github.com/llvm/llvm-project/pull/161027 ___ cfe-commits mailing list [email protected] https://lists.llvm.o

[clang] [clang] Add -funique-source-file-output-paths option (PR #161022)

2025-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shoaib Meenai (smeenai) Changes There's build setups where source file names aren't necessarily unique (e.g. the same source files can be used for multiple targets) but output paths are. It's theoretically possible to get the build system t

  1   2   3   >