[clang] [CIR][X86] Add support for alignd builtins (PR #171621)

2025-12-10 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk updated https://github.com/llvm/llvm-project/pull/171621 >From b2a8864d269f727ae4e85188d68a3a1230f43d0b Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Wed, 10 Dec 2025 05:46:30 -0800 Subject: [PATCH 1/2] [CIR][X86] Add support for alignd builtins --- clang/lib/CIR/C

[clang] [llvm] [PowerPC][AIX] Specify correct ABI alignment for double (PR #144673)

2025-12-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/144673 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b7c0452 - [PowerPC][AIX] Specify correct ABI alignment for double (#144673)

2025-12-10 Thread via cfe-commits
Author: Nikita Popov Date: 2025-12-11T08:57:26+01:00 New Revision: b7c0452a9a3d895b14ec7c5735e4e4ddc311edb3 URL: https://github.com/llvm/llvm-project/commit/b7c0452a9a3d895b14ec7c5735e4e4ddc311edb3 DIFF: https://github.com/llvm/llvm-project/commit/b7c0452a9a3d895b14ec7c5735e4e4ddc311edb3.diff

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-10 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/171615 >From 8ca7bbb9da45b696760d1071341717cf4ccafe2c Mon Sep 17 00:00:00 2001 From: Priyanshu3820 <[email protected]> Date: Wed, 10 Dec 2025 18:34:52 +0530 Subject: [PATCH 1/8] Implement convert_half builti

[libclc] [libclc] use clc functions in clspv/shared/vstore_half.cl (PR #171770)

2025-12-10 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: Can you merge it as well, I don't have write access? https://github.com/llvm/llvm-project/pull/171770 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] use clc functions in clspv/shared/vstore_half.cl (PR #171770)

2025-12-10 Thread Wenju He via cfe-commits
https://github.com/wenju-he approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/171770 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] use clc functions in clspv/shared/vstore_half.cl (PR #171770)

2025-12-10 Thread Wenju He via cfe-commits
@@ -48,32 +54,32 @@ _CLC_DEF _CLC_OVERLOAD float __clc_rtz(float x) { /* Handle nan corner case */ - if (isnan(x)) + if (__clc_isnan(x)) return x; /* RTZ does not produce Inf for large numbers */ - if (fabs(x) > 65504.0f && !isinf(x)) -return copysign(65504.0f

[libclc] [libclc] use clc functions in clspv/shared/vstore_half.cl (PR #171770)

2025-12-10 Thread Wenju He via cfe-commits
@@ -48,32 +54,32 @@ _CLC_DEF _CLC_OVERLOAD float __clc_rtz(float x) { /* Handle nan corner case */ - if (isnan(x)) + if (__clc_isnan(x)) return x; /* RTZ does not produce Inf for large numbers */ - if (fabs(x) > 65504.0f && !isinf(x)) -return copysign(65504.0f

[clang-tools-extra] [clang-tidy] Moved Multiple Inheritence check from fuchsia to misc module (PR #171565)

2025-12-10 Thread via cfe-commits
https://github.com/zeyi2 requested changes to this pull request. The code change looks nice. However you still need to update the documentations. more specifically: - Edit `fuchsia/multiple-inheritance.rst` - Create a new doc for `misc/multiple-inheritance.rst` - Modify `list.rst` for correct al

[libclc] [libclc] use clc functions in clspv/shared/vstore_half.cl (PR #171770)

2025-12-10 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @wenju-he could you please review ? Thank you https://github.com/llvm/llvm-project/pull/171770 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] use clc functions in clspv/shared/vstore_half.cl (PR #171770)

2025-12-10 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr created https://github.com/llvm/llvm-project/pull/171770 None >From c68d6b7267b4237f8ff25eda04249e62f91caf74 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Thu, 11 Dec 2025 08:27:42 +0100 Subject: [PATCH] [libclc] use clc functions in clspv/shared/vstore_half.c

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD clang/test/lit.cfg.py `` :warning: The reproduction instruction

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-10 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/171615 >From 8ca7bbb9da45b696760d1071341717cf4ccafe2c Mon Sep 17 00:00:00 2001 From: Priyanshu3820 <[email protected]> Date: Wed, 10 Dec 2025 18:34:52 +0530 Subject: [PATCH 1/7] Implement convert_half builti

[clang] [LifetimeSafety] Add bailout for large CFGs (PR #170444)

2025-12-10 Thread via cfe-commits
DEBADRIBASAK wrote: Output with `cfg-num-block-threshold=5`: ``` == Lifetime Analysis CFG Block Sizes: == Function: llvm::itanium_demangle::starts_with Number of CFG Blocks: 5 Block B4: Number of elements =

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-10 Thread via cfe-commits
DEBADRIBASAK wrote: Output with `cfg-num-block-threshold=5`: ``` == Lifetime Analysis CFG Block Sizes: == Function: llvm::itanium_demangle::starts_with Number of CFG Blocks: 5 Block B4: Number of elements =

[clang] [LifetimeSafety] Add bailout for large CFGs (PR #170444)

2025-12-10 Thread via cfe-commits
DEBADRIBASAK wrote: Splitting this PR into two parts. The current cl modifies the bailout logic to only consider the block count in CFG. The added flag is `cfg-block-num-threshold`. The origin count based bailout will be added in a next PR. https://github.com/llvm/llvm-project/pull/170444 ___

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-10 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add bailout for large CFGs (PR #170444)

2025-12-10 Thread via cfe-commits
https://github.com/DEBADRIBASAK updated https://github.com/llvm/llvm-project/pull/170444 >From a7f5c0cc51ee72bfdd150eb6e4b7aa2b20e24373 Mon Sep 17 00:00:00 2001 From: Debadri Basak Date: Wed, 3 Dec 2025 09:11:15 + Subject: [PATCH 1/5] Adding an integer flag for setting a threhsold for skip

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-10 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement builtin reduce fadd/fmul/fmax/fmin (PR #171633)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 3047 tests passed * 7 tests skipped All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details. tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenStmt.cpp.o ```

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-10 Thread via cfe-commits
j39m wrote: I'm unable to reproduce the test failure in my checkout. I tried mimicking a subset of `monolithic-linux.sh`, but neither of `check-clang` or `check-clang-tools` produces any failures that I can see. https://github.com/llvm/llvm-project/pull/170822 _

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-10 Thread via cfe-commits
https://github.com/j39m updated https://github.com/llvm/llvm-project/pull/170822 >From 30462f19f6ba2bf53eb6440dff018c40282bf3fd Mon Sep 17 00:00:00 2001 From: Kalvin Lee Date: Fri, 5 Dec 2025 17:37:29 +0900 Subject: [PATCH 1/3] Add fine-grained `__has_feature()` cutout This is a follow-up to pu

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-10 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add the ability to detect if SwitchOp covers all the cases (PR #171246)

2025-12-10 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish closed https://github.com/llvm/llvm-project/pull/171246 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cb4b6ad - [CIR] Add the ability to detect if SwitchOp covers all the cases (#171246)

2025-12-10 Thread via cfe-commits
Author: Jasmine Tang Date: 2025-12-10T22:53:50-08:00 New Revision: cb4b6ad8171e9f3dd991b0d7fa1771bcafc3c0a6 URL: https://github.com/llvm/llvm-project/commit/cb4b6ad8171e9f3dd991b0d7fa1771bcafc3c0a6 DIFF: https://github.com/llvm/llvm-project/commit/cb4b6ad8171e9f3dd991b0d7fa1771bcafc3c0a6.diff

[clang] [CIR] Implement builtin reduce fadd/fmul/fmax/fmin (PR #171633)

2025-12-10 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish updated https://github.com/llvm/llvm-project/pull/171633 >From 83f30f03132f2279567b889f9cb4022e4b8b9856 Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Wed, 10 Dec 2025 05:11:12 -0800 Subject: [PATCH 1/5] [CIR] Implement reduce fadd --- clang/lib/CIR/CodeGen/C

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread via cfe-commits
maflcko wrote: Closing for now. Looks like this is too controversial. https://github.com/llvm/llvm-project/pull/171618 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread via cfe-commits
https://github.com/maflcko closed https://github.com/llvm/llvm-project/pull/171618 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-10 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From bcff2a7a939c99031315ee9ac345451bbc41d6b9 Mon Sep 17 00:00:00 2001 From: Michael Park Date: Wed, 10 Dec 2025 17:58:04 -0800 Subject: [PATCH] [C++20][Modules] Improve namespace handling performance for module

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-10 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add support for struct initialization in `bugprone-argument-comment` (PR #171757)

2025-12-10 Thread via cfe-commits
@@ -366,6 +549,12 @@ void ArgumentCommentCheck::check(const MatchFinder::MatchResult &Result) { Result.Context, Construct->getConstructor(), Construct->getParenOrBraceRange().getBegin(), llvm::ArrayRef(Construct->getArgs(), Construct->getNumArgs())); +

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-10 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 cpp -- clang/lib/Serialization/ASTReader.cpp clang/lib/

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-10 Thread via cfe-commits
Dominicentek wrote: Yeah thanks, I'm aware. I'll get to it in a couple of days when I'm not busy. https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)

2025-12-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-ubsan` running on `sanitizer-buildbot10` while building `clang-tools-extra,clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/85/builds/16580

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-10 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Ah, I see, so it's actually a UBSan error, and it's complaining at the read of `ClangdServer::Options::StrongWorkspaceMode` in `ClangdLSPServer::onInitialize()` that we're reading a value of 49 from a bool, which suggests that bool was not initialized. Should be a simple

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-10 Thread via cfe-commits
https://github.com/DEBADRIBASAK updated https://github.com/llvm/llvm-project/pull/166568 >From fd8693c51af7d9f91be0926f4150e77c39e2dba4 Mon Sep 17 00:00:00 2001 From: Debadri Basak Date: Wed, 5 Nov 2025 14:07:42 + Subject: [PATCH 01/11] Adding the lifetime stats collection logic to Analysi

[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171714)

2025-12-10 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/171714 >From bf9b4a64d5e3e55148da8c8308c053548ea05072 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Wed, 10 Dec 2025 13:58:52 -0800 Subject: [PATCH] [clang][driver][darwin] Base the system prefix on the S

[clang] [alpha.webkit.UncountedLocalVarsChecker] Ignore a VarDecl in "if" with trivial "then" (PR #171764)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 85054 tests passed * 1166 tests skipped * 5 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Analysis/Checkers/WebKit/local-vars-checked-const-member.cpp ``` Exit Code: -6 Command Output (s

[clang] [alpha.webkit.UncountedLocalVarsChecker] Ignore a VarDecl in "if" with trivial "then" (PR #171764)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51487 tests passed * 864 tests skipped * 5 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Analysis/Checkers/WebKit/local-vars-checked-const-member.cpp ``` Exit Code: 3221225501 Command O

[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171714)

2025-12-10 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/171714 >From 5c3d95b014e6c43ae7cb57cd726a8b4d37dc2547 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Wed, 10 Dec 2025 13:58:52 -0800 Subject: [PATCH] [clang][driver][darwin] Base the system prefix on the S

[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171714)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 167033 tests passed * 2925 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Driver/driverkit-path.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 4 /home/gha/

[clang] [alpha.webkit.UncountedLocalVarsChecker] Ignore a VarDecl in "if" with trivial "then" (PR #171764)

2025-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes Don't emit a warning when a variable declaration appears within the "if" condition and if its "then" statement is trivial. --- Full diff: https://github.com/llvm/llvm-project/pull/171764.diff

[clang] [alpha.webkit.UncountedLocalVarsChecker] Ignore a VarDecl in "if" with trivial "then" (PR #171764)

2025-12-10 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/171764 Don't emit a warning when a variable declaration appears within the "if" condition and if its "then" statement is trivial. >From ef9a5c9e9593fdb1fc0f414ba8f73be108f46c1a Mon Sep 17 00:00:00 2001 From: Ryosuke Niw

[clang] [Clang] Use ExtWarn for static local variable in extern inline function (fixes #39524) (PR #166332)

2025-12-10 Thread Shafik Yaghmour via cfe-commits
shafik wrote: @Susikrishna can you merge or do you need someone to merge for you? https://github.com/llvm/llvm-project/pull/166332 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/171618 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/171618 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/171618 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)

2025-12-10 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/162848 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 71bfdd1 - [Clang] Add support for the C `_Defer` TS (#162848)

2025-12-10 Thread via cfe-commits
Author: Sirraide Date: 2025-12-11T05:54:09+01:00 New Revision: 71bfdd13040328bc83b520d09eee847fd2b7f82c URL: https://github.com/llvm/llvm-project/commit/71bfdd13040328bc83b520d09eee847fd2b7f82c DIFF: https://github.com/llvm/llvm-project/commit/71bfdd13040328bc83b520d09eee847fd2b7f82c.diff LOG:

[clang] [clang] Fix conflicting declaration error with using_if_exists (PR #167646)

2025-12-10 Thread via cfe-commits
Sirraide wrote: I’m also not familiar w/ this attribute, but I can try and take a look at it if I can find the time. https://github.com/llvm/llvm-project/pull/167646 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bi

[clang] [llvm] [NFC] isOSGlibc: musl is not glibc. (PR #171734)

2025-12-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/20168 Here is the relevant p

[clang] [HLSL][Matrix] Add Matrix Bool and represent them as i32 elements (PR #171051)

2025-12-10 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/171051 >From b36e6944e0d50bb2fc2c9019338eb1765e8848ff Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Sun, 7 Dec 2025 13:31:16 -0500 Subject: [PATCH 1/3] [HLSL][Matrix] Add Matrix Bool and represent them as i32 elem

[clang] [llvm] [NFC] isOSGlibc: musl is not glibc. (PR #171734)

2025-12-10 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk closed https://github.com/llvm/llvm-project/pull/171734 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 18b6137 - [NFC] isOSGlibc: musl is not glibc. (#171734)

2025-12-10 Thread via cfe-commits
Author: Harald van Dijk Date: 2025-12-11T03:50:04Z New Revision: 18b61373d85a279ac08c8b77fedfc1cf991b3e4c URL: https://github.com/llvm/llvm-project/commit/18b61373d85a279ac08c8b77fedfc1cf991b3e4c DIFF: https://github.com/llvm/llvm-project/commit/18b61373d85a279ac08c8b77fedfc1cf991b3e4c.diff LO

[clang-tools-extra] [clang-tidy] Add support for struct initialization in `bugprone-argument-comment` (PR #171757)

2025-12-10 Thread via cfe-commits
zeyi2 wrote: This is a relatively large PR so I think it would be easier to review commit-by-commit. https://github.com/llvm/llvm-project/pull/171757 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang-tools-extra] [clang-tidy] Add support for struct initialization in `bugprone-argument-comment` (PR #171757)

2025-12-10 Thread via cfe-commits
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/171757 Closes #170921 >From 2db4bebc534f2e68fd11945ebf7f9d3812ec2853 Mon Sep 17 00:00:00 2001 From: mtx Date: Wed, 10 Dec 2025 22:34:47 +0800 Subject: [PATCH 01/10] [clang-tidy] Refactor isLikelyTypo to be a template f

[libunwind] [libunwind] fix building on Haiku i386 (PR #171586)

2025-12-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `libunwind` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/17905 Here is the relevant pi

[clang] [Tooling] Fix misleading progress report when files have multiple compile commands (PR #169640)

2025-12-10 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/169640 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2614af0 - [Tooling] Fix misleading progress report when files have multiple compile commands (#169640)

2025-12-10 Thread via cfe-commits
Author: mitchell Date: 2025-12-11T11:12:47+08:00 New Revision: 2614af08c1875e7928c6036237e434943730631a URL: https://github.com/llvm/llvm-project/commit/2614af08c1875e7928c6036237e434943730631a DIFF: https://github.com/llvm/llvm-project/commit/2614af08c1875e7928c6036237e434943730631a.diff LOG:

[clang] [llvm] [NFC] isOSGlibc: musl is not glibc. (PR #171734)

2025-12-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. Thanks for fixing this https://github.com/llvm/llvm-project/pull/171734 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC] isOSGlibc: musl is not glibc. (PR #171734)

2025-12-10 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk updated https://github.com/llvm/llvm-project/pull/171734 >From 91a7a33e15d88fbe2c217cac7b5d1661578136dd Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Wed, 10 Dec 2025 23:10:51 + Subject: [PATCH] [NFC] isOSGlibc: musl is not glibc. Previously, isOSGlibc() wa

[clang] [CIR] Partially upstream coroutine co_return support (PR #171755)

2025-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR partially upstreams support for the `co_return` keyword. It still needs to address the case where a `co_return` returns a value from a `co_await`. Additionally, this change focuses on `emitBodyAndFa

[clang] [CIR] Partially upstream coroutine co_return support (PR #171755)

2025-12-10 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/171755 This PR partially upstreams support for the `co_return` keyword. It still needs to address the case where a `co_return` returns a value from a `co_await`. Additionally, this change focuses on `emitBody

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/171618 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang]Correctly handle negative line changes in PrintPreprocessedOutput::MoveToLine (PR #166631)

2025-12-10 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik requested changes to this pull request. I am waiting for an update but want to make sure this does not get merged by accident. https://github.com/llvm/llvm-project/pull/166631 ___ cfe-commits mailing list [email protected]

[clang-tools-extra] [clang-tidy] In bugprone-unused-return-value allow cast to void for pre-C++26 by default (PR #171618)

2025-12-10 Thread Yanzuo Liu via cfe-commits
@@ -145,7 +146,9 @@ UnusedReturnValueCheck::UnusedReturnValueCheck(llvm::StringRef Name, "^::std::errc$;" "^::std::expected$;" "^::boost::system:

[clang] [-Wunsafe-buffer-usage] Ignore consteval functions (PR #171503)

2025-12-10 Thread via cfe-commits
https://github.com/mxms0 updated https://github.com/llvm/llvm-project/pull/171503 >From 6ca667130537476bd4268e15b0f899446f30b6e8 Mon Sep 17 00:00:00 2001 From: mxms Date: Tue, 9 Dec 2025 20:54:14 + Subject: [PATCH 1/3] [-Wunsafe-buffer-usage] Ignore consteval functions We dont need to visi

[clang] [llvm] Added partial support for compiling C++20 modules and header-units without scanning. (PR #147682)

2025-12-10 Thread Hassan Sajjad via cfe-commits
@@ -0,0 +1,182 @@ + HassanSajjad-302 wrote: Hi. Thanks. I will make it available under the LLVM license. Currently, I am trying to complete my paper for both Linux and Windows. https://github.com/llvm/llvm-project/pull/147682 ___

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/171660 >From 5cfd50489b8295fc20bbf4eeef217be5c4addee0 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Mon, 8 Dec 2025 16:14:32 -0800 Subject: [PATCH 1/6] [clang][ssaf] Add EntityId and EntityIdTable for efficien

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple ready_for_review https://github.com/llvm/llvm-project/pull/171660 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
@@ -0,0 +1,55 @@ +//===- EntityIdTable.h --*- C++ -*-===// +// +// 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: Apa

[clang] [-Wunsafe-buffer-usage] Ignore consteval functions (PR #171503)

2025-12-10 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 cpp -- clang/lib/Analysis/UnsafeBufferUsage.cpp clang/

[clang] [-Wunsafe-buffer-usage] Ignore consteval functions (PR #171503)

2025-12-10 Thread via cfe-commits
@@ -4458,6 +4458,11 @@ void clang::checkUnsafeBufferUsage(const Decl *D, SmallVector Stmts; if (const auto *FD = dyn_cast(D)) { +// Consteval functions are free of UB by the spec, so we don't need to +// visit them or produce diagnostics. +if (FD->isConsteval()

[clang] [-Wunsafe-buffer-usage] Ignore consteval functions (PR #171503)

2025-12-10 Thread via cfe-commits
https://github.com/mxms0 updated https://github.com/llvm/llvm-project/pull/171503 >From 6ca667130537476bd4268e15b0f899446f30b6e8 Mon Sep 17 00:00:00 2001 From: mxms Date: Tue, 9 Dec 2025 20:54:14 + Subject: [PATCH 1/2] [-Wunsafe-buffer-usage] Ignore consteval functions We dont need to visi

[libunwind] [PAC][libunwind][AArch64] Keep LR signed when stored in context struct (PR #171717)

2025-12-10 Thread Daniil Kovalev via cfe-commits
@@ -683,42 +684,139 @@ DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto) ldpx28,x29, [x0, #0x0E0] #if defined(__ARM_FP) && __ARM_FP != 0 - ldpd0, d1, [x0, #0x110] - ldpd2, d3, [x0, #0x120] - ldpd4, d5, [x0, #0x130] - ldpd6, d7, [x0, #

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
@@ -0,0 +1,49 @@ +//===- EntityId.h ---*- C++ -*-===// +// +// 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: Apa

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple edited https://github.com/llvm/llvm-project/pull/171660 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Offloading] Extend OffloadBinary format to support multiple metadata entries (PR #169425)

2025-12-10 Thread Yury Plyakhin via cfe-commits
https://github.com/YuriPlyakhin updated https://github.com/llvm/llvm-project/pull/169425 >From ce7ab7652cf29469a8addea8ebe67f408b4b03af Mon Sep 17 00:00:00 2001 From: "Plyakhin, Yury" Date: Tue, 25 Nov 2025 00:40:45 +0100 Subject: [PATCH 01/15] [Offloading] Extend OffloadBinary format to suppor

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/171660 >From 5cfd50489b8295fc20bbf4eeef217be5c4addee0 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Mon, 8 Dec 2025 16:14:32 -0800 Subject: [PATCH 1/6] [clang][ssaf] Add EntityId and EntityIdTable for efficien

[clang] [clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (PR #171660)

2025-12-10 Thread Jan Korous via cfe-commits
@@ -0,0 +1,48 @@ +//===- EntityIdTable.cpp *- C++ -*-===// +// +// 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: Apa

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-10 Thread Yanzuo Liu via cfe-commits
zwuis wrote: "check_clang_tidy.py" is not designed to run tests directly. Use `llvm-lit identifier-naming-default-lower.cpp`. The "llvm-lit" is in "_your-llvm-build-path_/bin". See . https://github.com/llvm/llvm-project/pull/171686 _

[clang] [llvm] [Offloading] Extend OffloadBinary format to support multiple metadata entries (PR #169425)

2025-12-10 Thread Yury Plyakhin via cfe-commits
https://github.com/YuriPlyakhin updated https://github.com/llvm/llvm-project/pull/169425 >From ce7ab7652cf29469a8addea8ebe67f408b4b03af Mon Sep 17 00:00:00 2001 From: "Plyakhin, Yury" Date: Tue, 25 Nov 2025 00:40:45 +0100 Subject: [PATCH 01/14] [Offloading] Extend OffloadBinary format to suppor

[clang] [alpha.webkit.ForwardDeclChecker] Add a missing nullptr check. (PR #171740)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51475 tests passed * 864 tests skipped All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details. [code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_

[clang] [llvm] [NFC] isOSGlibc: musl is not glibc. (PR #171734)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 128545 tests passed * 2805 tests skipped All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details. [code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asa

[clang] [llvm] [Offloading] Extend OffloadBinary format to support multiple metadata entries (PR #169425)

2025-12-10 Thread Yury Plyakhin via cfe-commits
https://github.com/YuriPlyakhin updated https://github.com/llvm/llvm-project/pull/169425 >From ce7ab7652cf29469a8addea8ebe67f408b4b03af Mon Sep 17 00:00:00 2001 From: "Plyakhin, Yury" Date: Tue, 25 Nov 2025 00:40:45 +0100 Subject: [PATCH 01/12] [Offloading] Extend OffloadBinary format to suppor

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv7-global-isel` running on `linaro-clang-armv7-global-isel` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/39/builds/9052 Here is the relev

[clang] [CIR] Upstream support for C++ method pointers (PR #171742)

2025-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds CIR support for C++ pointer-to-member types. This only adds support for the type. Using the type in a non-trivial way requires a new CIR constant attribute which will be added in a follow-up PR.

[clang] [CIR] Upstream support for C++ method pointers (PR #171742)

2025-12-10 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/171742 This adds CIR support for C++ pointer-to-member types. This only adds support for the type. Using the type in a non-trivial way requires a new CIR constant attribute which will be added in a follow-up PR. >

[clang-tools-extra] [llvm] [llvm][ADT] Add wrapper to `std::search` and `std::adjacent_find` (PR #171666)

2025-12-10 Thread Victor Chernyakin via cfe-commits
@@ -57,23 +57,24 @@ utils::UseRangesCheck::ReplacerMap UseRangesCheck::getReplacerMap() const { // Single range algorithms AddStdToLLVM(llvm::makeIntrusiveRefCnt(SingleSig), - {"all_of", "any_of", -"none_of", "for_each", -

[clang] [NFC] [FlowSensitive] [StatusOr] expose statusType in header (PR #171719)

2025-12-10 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/171719 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 56fb92a - [NFC] [FlowSensitive] [StatusOr] expose statusType in header (#171719)

2025-12-10 Thread via cfe-commits
Author: Florian Mayer Date: 2025-12-10T22:50:00Z New Revision: 56fb92ae643a0ba4def920c347f47e80934314b5 URL: https://github.com/llvm/llvm-project/commit/56fb92ae643a0ba4def920c347f47e80934314b5 DIFF: https://github.com/llvm/llvm-project/commit/56fb92ae643a0ba4def920c347f47e80934314b5.diff LOG:

[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171714)

2025-12-10 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 167009 tests passed * 2925 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Driver/driverkit-path.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 4 /home/gha/

[clang] [llvm] RFC: Implementing new mechanism for hard register operands to inline asm as a constraint. (PR #85846)

2025-12-10 Thread James Y Knight via cfe-commits
jyknight wrote: A register-asm variable declaration passed to an asm statement should definitely override the constraints listed on the asm statement itself, forcing the use of the specified register. Doing otherwise is extremely surprising behavior! That said, it'd (probably) be OK to report

[clang] [Clang][counted_by] Correct signed counted_by values (PR #171260)

2025-12-10 Thread Kees Cook via cfe-commits
https://github.com/kees approved this pull request. Great! Thanks for the rest case addition! https://github.com/llvm/llvm-project/pull/171260 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [HLSL] Add the DXC matrix orientation flags (PR #171550)

2025-12-10 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/171550 >From 754f83ca3861bc5b5c292e0b9f6886d98b2e7c3e Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Tue, 9 Dec 2025 20:26:03 -0500 Subject: [PATCH 1/2] [HLSL] Add the DXC matrix orientation flags fixes #58676 - M

[clang] [CIR] Add support for TypeTraitExpr with bool result (PR #171687)

2025-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Add support for the TypeTraitExpr with a boolean result --- Full diff: https://github.com/llvm/llvm-project/pull/171687.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp (+5

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-10 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] [clang][Driver][SPIRV] Add better error when SPIR-V tools is not found (PR #171704)

2025-12-10 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/171704 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver][SPIRV] Add better error when SPIR-V tools is not found (PR #171704)

2025-12-10 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/171704 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver][SPIRV] Add better error when SPIR-V tools is not found (PR #171704)

2025-12-10 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex created https://github.com/llvm/llvm-project/pull/171704 Today is SPIR-V Tools is not found, you get the below error: ``` clang: error: unable to execute command: posix_spawn failed: No such file or directory clang: error: spirv-as command failed with exit code 1 (use

  1   2   3   4   5   >