[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-27 Thread Feng Zou via cfe-commits
fzou1 wrote: > > Looks like this breaks tests on macOS: > > http://45.33.8.238/macm1/107398/step_6.txt > > Please take a look and revert for now if it takes a while to fix. > > Thank you. I've reproduced this issue on MacOS and updated PR #141486 to fix > it. @nico / @rorth , The PR #141486 h

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-05-27 Thread Carlos Alberto Enciso via cfe-commits
CarlosAlbertoEnciso wrote: @labath @pogo59 @jmorse @Michael137 @tromey Is there any additional points about the current patch that you would like to address? Thanks https://github.com/llvm/llvm-project/pull/130255 ___ cfe-commits mailing list cfe-com

[clang] [Clang] Fix a pack expansion bug in template argument deduction (PR #141547)

2025-05-27 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/141547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-27 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: > In the tests I felt that it'd be a bit hard to decipher the meaning of the > block identifiers like `B1` etc. -- but when I re-read the file I noticed > that you included the very nice helper function `dumpCFGAndEgraph` (IIUC) for > those who will need to deb

[clang] f8d6316 - [Clang] Fix a pack expansion bug in template argument deduction (#141547)

2025-05-27 Thread via cfe-commits
Author: Younan Zhang Date: 2025-05-27T15:10:24+08:00 New Revision: f8d63168b6b9928ffed6b068fb35fa26a70f996d URL: https://github.com/llvm/llvm-project/commit/f8d63168b6b9928ffed6b068fb35fa26a70f996d DIFF: https://github.com/llvm/llvm-project/commit/f8d63168b6b9928ffed6b068fb35fa26a70f996d.diff

[clang] [clang][RISCV] Handle target features correctly in CheckBuiltinFunctionCall (PR #141548)

2025-05-27 Thread Pengcheng Wang via cfe-commits
@@ -0,0 +1,11 @@ +// REQUIRES: riscv-registered-target +// RUN: %clang_cc1 -triple riscv64 -target-feature +zvknha %s -fsyntax-only -verify + +#include + +// expected-no-diagnostics + +__attribute__((target("arch=+zvl128b"))) +void test_zvk_features(vuint32m1_t vd, vuint32m1_t v

[clang] clang-format: Add IncludeSortKey option (PR #137840)

2025-05-27 Thread Daan De Meyer via cfe-commits
DaanDeMeyer wrote: Ping? Would love to get this over the finish line https://github.com/llvm/llvm-project/pull/137840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][performance-unnecessary-value-param] Avoid in coroutines (PR #140912)

2025-05-27 Thread Dmitry Polukhin via cfe-commits
dmpolukhin wrote: @HerrCai0907 @carlosgalvezp @PiotrZSL friendly ping, please take a look! https://github.com/llvm/llvm-project/pull/140912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [llvm] [LoongArch] Add support for half-precision floating-point type (PR #141564)

2025-05-27 Thread via cfe-commits
Ami-zhang wrote: > LLVM uses squash and merge. So please split it into 3 PRs if you do not want > to squash them. Ok, I'll split this into 3 separate PRs. https://github.com/llvm/llvm-project/pull/141564 ___ cfe-commits mailing list cfe-commits@lists

[clang] [llvm] [RISCV] Add shlcofideleg extension (PR #141572)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Ying Chen (punkyc) Changes This is for `shlcofideleg` extension, that supports delegating LCOFI interrupts to VS-mode. Spec: https://github.com/riscv/riscv-isa-manual/blob/main/src/supervisor.adoc --- Full diff: https://github.com

[clang] [llvm] [RISCV] Add shlcofideleg extension (PR #141572)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: Ying Chen (punkyc) Changes This is for `shlcofideleg` extension, that supports delegating LCOFI interrupts to VS-mode. Spec: https://github.com/riscv/riscv-isa-manual/blob/main/src/supervisor.adoc ---

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-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/9392 Here is the releva

[clang] 94929b7 - [KeyInstr] Add triple to Clang tests

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-27T10:54:44+01:00 New Revision: 94929b725f415a8ab8de35194f3c2eec5192990f URL: https://github.com/llvm/llvm-project/commit/94929b725f415a8ab8de35194f3c2eec5192990f DIFF: https://github.com/llvm/llvm-project/commit/94929b725f415a8ab8de35194f3c2eec519299

[clang] [KeyInstr] Complex assignment atoms (PR #134638)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134638 >From fa1c06148d4f79e9464d92ab5c26d9a22c5bf41d Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 13:36:59 +0100 Subject: [PATCH 01/10] [KeyInstr] Complex assignment atoms This patch is

[clang] [KeyInstr] Complex assignment atoms (PR #134638)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134638 >From fa1c06148d4f79e9464d92ab5c26d9a22c5bf41d Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 13:36:59 +0100 Subject: [PATCH 1/9] [KeyInstr] Complex assignment atoms This patch is pa

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-27 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. thanks a lot! https://github.com/llvm/llvm-project/pull/141092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 059885c - [KeyInstr] Complex assignment atoms (#134638)

2025-05-27 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-27T11:06:46+01:00 New Revision: 059885c703e9de601d868061a0c344837a81aaf4 URL: https://github.com/llvm/llvm-project/commit/059885c703e9de601d868061a0c344837a81aaf4 DIFF: https://github.com/llvm/llvm-project/commit/059885c703e9de601d868061a0c344837a81aa

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-05-27 Thread Anatoly Trosinenko via cfe-commits
https://github.com/atrosinenko created https://github.com/llvm/llvm-project/pull/141573 None >From 93eca6d9b68619766b7897c41dcc318ef54be73d Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 26 May 2025 22:28:55 +0300 Subject: [PATCH] [AArch64][FMV] Enable PAuth and BTI hardening of

[clang] Fix tests of lookup table generator (PR #139463)

2025-05-27 Thread Robin Caloudis via cfe-commits
robincaloudis wrote: @kadircet, can you merge this PR? I lack write access. Thank you. https://github.com/llvm/llvm-project/pull/139463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-27 Thread via cfe-commits
https://github.com/FabianWolff updated https://github.com/llvm/llvm-project/pull/141092 >From 131d6c6aeb13ac89e79406eaa119e9ab021b5b5a Mon Sep 17 00:00:00 2001 From: Fabian Wolff Date: Tue, 27 May 2025 10:01:40 + Subject: [PATCH] [clang-tidy] readability-redundant-smartptr-get: disable for

[clang] [KeyInstr][Clang] Catch variable init atom (PR #134641)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134641 >From 7c86cc1b0b0bfaba4c304a31b5b0f2a1f391ad63 Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 17:31:32 +0100 Subject: [PATCH 1/3] [KeyInstr][Clang] Catch variable init atom This patc

[clang] bf1d422 - [KeyInstr][Clang] Catch variable init atom (#134641)

2025-05-27 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-27T11:12:16+01:00 New Revision: bf1d4228f1660db694c29e2694414340897734f7 URL: https://github.com/llvm/llvm-project/commit/bf1d4228f1660db694c29e2694414340897734f7 DIFF: https://github.com/llvm/llvm-project/commit/bf1d4228f1660db694c29e2694414340897734

[clang] [KeyInstr] Complex assignment atoms (PR #134638)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 47d5e94 - [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (#141092)

2025-05-27 Thread via cfe-commits
Author: FabianWolff Date: 2025-05-27T12:06:08+02:00 New Revision: 47d5e94acb92ce4ec5040e95e167ba471d080244 URL: https://github.com/llvm/llvm-project/commit/47d5e94acb92ce4ec5040e95e167ba471d080244 DIFF: https://github.com/llvm/llvm-project/commit/47d5e94acb92ce4ec5040e95e167ba471d080244.diff L

[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

2025-05-27 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/141574 This commit deprecates the use of LLVM_ENABLE_PROJECTS in favour of LLVM_ENABLE_RUNTIMES. Alternatively, using -DLLVM_RUNTIME_TARGETS= combined with -DRUNTIMES__LLVM_ENABLE_RUNTIMES=libclc also gets pretty

[clang] [llvm] [LoongArch] Add support for half-precision floating-point type (PR #141564)

2025-05-27 Thread via cfe-commits
https://github.com/Ami-zhang closed https://github.com/llvm/llvm-project/pull/141564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add shlcofideleg extension (PR #141572)

2025-05-27 Thread Ying Chen via cfe-commits
https://github.com/punkyc created https://github.com/llvm/llvm-project/pull/141572 This is for `shlcofideleg` extension, that supports delegating LCOFI interrupts to VS-mode. Spec: https://github.com/riscv/riscv-isa-manual/blob/main/src/supervisor.adoc >From 385ae3040ae39d62702c430e2d0b79b80b

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-27 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet closed https://github.com/llvm/llvm-project/pull/141092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce elementwise clz/ctz builtins (PR #131995)

2025-05-27 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: ping, thanks. https://github.com/llvm/llvm-project/pull/131995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Switch stmt atom (PR #134643)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134643 >From 71a5f65a7ecbd0b1ba3b5e45f0b03fa34484f85a Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 18:43:56 +0100 Subject: [PATCH 1/3] [KeyInstr][Clang] Switch stmt atom This patch is par

[clang] dd8eb1e - [KeyInstr][Clang] Switch stmt atom (#134643)

2025-05-27 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-27T11:26:40+01:00 New Revision: dd8eb1e6737a612be204c59949ff3611c300e25a URL: https://github.com/llvm/llvm-project/commit/dd8eb1e6737a612be204c59949ff3611c300e25a DIFF: https://github.com/llvm/llvm-project/commit/dd8eb1e6737a612be204c59949ff3611c300e2

[clang] [KeyInstr][Clang] Switch stmt atom (PR #134643)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Design Overview (PR #126654)

2025-05-27 Thread via cfe-commits
bd1976bris wrote: Thanks to everyone for the review effort on DTLTO — I’ve now merged the LLVM portion of the changes (#127749). I’m currently on PTO this week, but once I’m back, I’ll post the Clang and LLD patches for review. In the meantime, if anyone wants to try out DTLTO on a stable bra

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-27 Thread Henrich Lauko via cfe-commits
@@ -385,6 +385,13 @@ mlir::Type CIRGenTypes::convertType(QualType type) { break; } + case Type::Complex: { +const ComplexType *ct = cast(ty); +mlir::Type elementTy = convertType(ct->getElementType()); xlauko wrote: Oh sorry thought this was `ci

[clang] [KeyInstr][Clang] Assign vector element atom (PR #134649)

2025-05-27 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer approved this pull request. https://github.com/llvm/llvm-project/pull/134649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-27 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -Wunknown-attributes -fsyntax-only -verify %s +// RUN: %clang_cc1 -Wunknown-attributes -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s + +[[gmu::deprected]] // expected-warning {{unknown attribute 'gmu::deprected' ignored;

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-27 Thread Aaron Ballman via cfe-commits
@@ -7867,15 +7867,16 @@ void Sema::checkUnusedDeclAttributes(Declarator &D) { void Sema::DiagnoseUnknownAttribute(const ParsedAttr &AL) { std::string NormalizedFullName = '\'' + AL.getNormalizedFullName() + '\''; + SourceRange NR = AL.getNormalizedRange(); + SourceLocation

[clang] [KeyInstr][Clang] Bitfield atom (PR #134648)

2025-05-27 Thread Stephen Tozer via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank + SLTozer wrote: Maybe a small comment to the effect of, "Test fo

[clang] [HIP] disable sanitizer for `__hip_cuid` (PR #141581)

2025-05-27 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu created https://github.com/llvm/llvm-project/pull/141581 Global variable `__hip_cuid_*` is for identifying purpose and does not need sanitization, therefore disable it for sanitizers. >From 503ee3dd5144b4cc2dd83488b2194900605217fd Mon Sep 17 00:00:00 2001 From: "Yax

[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

2025-05-27 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/141574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)

2025-05-27 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: Ping. https://github.com/llvm/llvm-project/pull/139566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [UBSan] Implement src:*=sanitize for UBSan (PR #140529)

2025-05-27 Thread Qinkun Bao via cfe-commits
@@ -56,10 +56,20 @@ void SanitizerSpecialCaseList::createSanitizerSections() { bool SanitizerSpecialCaseList::inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query, StringRef Category) c

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-05-27 Thread Stephen Tozer via cfe-commits
@@ -1448,7 +1448,14 @@ CodeGenFunction::EmitCXXForRangeStmt(const CXXForRangeStmt &S, if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) BoolCondVal = emitCondLikelihoodViaExpectIntrinsic( BoolCondVal, Stmt::getLikelihood(S.getBody())); - Builder.CreateCond

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-27 Thread Baranov Victor via cfe-commits
vbvictor wrote: @kadircet, I think we generally shouldn't merge code that doesn't pass `clang-format` build (if non-compliant changes are so small). In the future I plan to make whole _clang-tidy_ directory `clang-format`-complaint so that people can have "format on save: file" in their editor

[clang] b56b4e0 - Fix tests of lookup table generator (#139463)

2025-05-27 Thread via cfe-commits
Author: Robin Caloudis Date: 2025-05-27T13:45:11+02:00 New Revision: b56b4e02b5424d5f180c068c1ba93a9c6da0470d URL: https://github.com/llvm/llvm-project/commit/b56b4e02b5424d5f180c068c1ba93a9c6da0470d DIFF: https://github.com/llvm/llvm-project/commit/b56b4e02b5424d5f180c068c1ba93a9c6da0470d.diff

[clang] Fix tests of lookup table generator (PR #139463)

2025-05-27 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet closed https://github.com/llvm/llvm-project/pull/139463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix tests of lookup table generator (PR #139463)

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

[clang-tools-extra] [clang-tidy] Add check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-05-27 Thread via cfe-commits
flovent wrote: Rebased and changed PR description link to resolved issue. https://github.com/llvm/llvm-project/pull/141345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Bitfield atom (PR #134648)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix formatting and add release notes entry (PR #141584)

2025-05-27 Thread Baranov Victor via cfe-commits
@@ -114,6 +114,9 @@ Improvements to clang-tidy - Fixed bug in :program:`run_clang_tidy.py` where the program would not correctly display the checks enabled by the top-level `.clang-tidy` file. +- Fixed some false positives in the ``readability-redundant-smartptr-get`` --

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-05-27 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/121829 >From 63eaf99ffe04d8c66bf11ec3bad6b04b83de3c96 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Fri, 13 Dec 2024 05:31:56 -0800 Subject: [PATCH] [Driver] Teach Barmetal toolchain about GCC installation T

[clang] 8b9448e - [KeyInstr][Clang] Assign vector element atom (#134649)

2025-05-27 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-27T13:35:14+01:00 New Revision: 8b9448edc6f39ba9d5eaac3d1e9275ffecc65798 URL: https://github.com/llvm/llvm-project/commit/8b9448edc6f39ba9d5eaac3d1e9275ffecc65798 DIFF: https://github.com/llvm/llvm-project/commit/8b9448edc6f39ba9d5eaac3d1e9275ffecc657

[clang] [KeyInstr][Clang] Assign vector element atom (PR #134649)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Assign matrix element atom (PR #134650)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134650 >From 1a7848740a2b708724d057cd881a3e4db42e96e3 Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 22:05:32 +0100 Subject: [PATCH 1/2] [KeyInstr][Clang] Assign matrix element atom This pa

[clang] [Sema] built-in args type checking using hasSameUnqualifiedType (PR #141485)

2025-05-27 Thread via cfe-commits
https://github.com/cor3ntin commented: This change needs a release note. Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change, and referencing any Github issue this change fixes. Thanks! https://github.com/llvm/llvm-project/pull/141485

[clang] [Sema] built-in args type checking using hasSameUnqualifiedType (PR #141485)

2025-05-27 Thread via cfe-commits
@@ -0,0 +1,16 @@ +// RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics + +// This example uncovered a bug in Sema::BuiltinVectorMath, where we should be +// using ASTContext::hasSameUnqualifiedType(). + +typedef float vec3 __attribute__((ext_vector_type(3))); +

[clang] [KeyInstr][Clang] Assign matrix element atom (PR #134650)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Assign matrix element atom (PR #134650)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [lldb] [LLDB] [NFC] - Remove duplicate #include headers from the files of lldb dir & few other files (PR #141478)

2025-05-27 Thread Pavel Labath via cfe-commits
https://github.com/labath commented: This PR also contains clang and compiler-rt changes. You'll have better luck finding someone to approve your PR if you split it along subproject boundaries. Also, what's up with the extra blank line after the first header you are adding everywhere? I don't

[clang] [HIP] disable sanitizer for `__hip_cuid` (PR #141581)

2025-05-27 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-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 HEAD~1 HEAD --extensions cpp -- clang-tools-extra/clang-tidy/readability/RedundantSma

[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

2025-05-27 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. The changes make sense for just adding it, but does it actually work? The CMake I've seen in `libclc` does multiple compilations and some with `--target=amdgcn` for example, which is a little different from how the runtimes builds handle i

[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

2025-05-27 Thread Joseph Huber via cfe-commits
@@ -35,7 +35,7 @@ list(INSERT CMAKE_MODULE_PATH 0 # We order libraries to mirror roughly how they are layered, except that compiler-rt can depend # on libc++, so we put it after. -set(LLVM_DEFAULT_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;offload") +s

[clang] [Clang][OpenCL][AMDGPU] Allow a kernel to call another kernel (PR #115821)

2025-05-27 Thread via cfe-commits
BukeBeyond wrote: This commit breaks a critical optimization for us. We have a project that compiles most of the C++26 language features to Vulkan SPIRV. One optimization we rely on is the elimination of global variables. Generating a second stub copy of the kernel breaks this optimization.

[clang] [Preprocessor] Do not expand macros if the input is already preprocessed (PR #137665)

2025-05-27 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez updated https://github.com/llvm/llvm-project/pull/137665 From f416b07520e73c7feec72378d970305e85295ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Mon, 28 Apr 2025 17:05:46 +0200 Subject: [PATCH 1/6] Pre-commit test: [Pr

[clang] [Sema] built-in args type checking using hasSameUnqualifiedType (PR #141485)

2025-05-27 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/141485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix formatting and add release notes entry (PR #141584)

2025-05-27 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor requested changes to this pull request. https://github.com/llvm/llvm-project/pull/141584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-05-27 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer commented: Broadly LGTM, just a few style comments. https://github.com/llvm/llvm-project/pull/134647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-05-27 Thread Stephen Tozer via cfe-commits
@@ -0,0 +1,71 @@ +// RUN: %clang_cc1 -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank + +// Perennial quesiton: should the inc be its own source atom or not +// (current

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-05-27 Thread Stephen Tozer via cfe-commits
@@ -0,0 +1,71 @@ +// RUN: %clang_cc1 -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank + +// Perennial quesiton: should the inc be its own source atom or not

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

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (rmarker) Changes Hanging indents are minimised for lambdas by pushing them onto a new line. However, it could still do this even if it would cause even more hanging indents than it otherwise would. The handling has been expa

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

2025-05-27 Thread via cfe-commits
https://github.com/rmarker created https://github.com/llvm/llvm-project/pull/141576 Hanging indents are minimised for lambdas by pushing them onto a new line. However, it could still do this even if it would cause even more hanging indents than it otherwise would. The handling has been expand

[clang] [llvm] [UBSan] Implement src:*=sanitize for UBSan (PR #140529)

2025-05-27 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao updated https://github.com/llvm/llvm-project/pull/140529 >From b83755d2aa0c5417ab8f359aa842449213437a7a Mon Sep 17 00:00:00 2001 From: Qinkun Bao Date: Mon, 19 May 2025 11:14:01 + Subject: [PATCH 01/16] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20?= =?UT

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-05-27 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer edited https://github.com/llvm/llvm-project/pull/134647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-05-27 Thread Anatoly Trosinenko via cfe-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/141573 >From c5a7fea9925c9d4aebf948c9e3d7f0af47893fb7 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 26 May 2025 22:28:55 +0300 Subject: [PATCH] [AArch64][FMV] Enable PAuth and BTI hardening of resolv

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-05-27 Thread Anatoly Trosinenko via cfe-commits
https://github.com/atrosinenko ready_for_review https://github.com/llvm/llvm-project/pull/141573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anatoly Trosinenko (atrosinenko) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141573.diff 2 Files Affected: - (modified) clang/lib/CodeGen/CodeGenModule.cpp (+9) - (added) clang/test/CodeGen/ptrauth-resolver-attrib

[clang] [CodeGen] Add TBAA struct path info for array members (PR #137719)

2025-05-27 Thread Bruno De Fraine via cfe-commits
https://github.com/brunodf-snps updated https://github.com/llvm/llvm-project/pull/137719 >From d63c8fe4fcc8e89933bf3c1cc176941b0b9094fa Mon Sep 17 00:00:00 2001 From: Bruno De Fraine Date: Mon, 28 Apr 2025 14:12:00 +0200 Subject: [PATCH 1/6] [clang][CodeGen] Make tbaa-array test more robust Av

[clang] [KeyInstr][Clang] Bitfield atom (PR #134648)

2025-05-27 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer approved this pull request. https://github.com/llvm/llvm-project/pull/134648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64-aix` running on `aix-ppc64` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/3855 Here is the relevant piece

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat commented: @steakhal Thanks for the updates, I'm completely satisfied with them. I don't see any connection between this commit and the buildbot failures :thinking: ... they are probably unrelated. https://github.com/llvm/llvm-project/pull/140924 __

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-27 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: > @steakhal Thanks for the updates, I'm completely satisfied with them. > > I don't see any connection between this commit and the buildbot failures 🤔 > ... they are probably unrelated. About 90% of the time they are unrelated. I don't usually put a confirmatio

[clang-tools-extra] [clang-tidy] Fix formatting and add release notes entry (PR #141584)

2025-05-27 Thread via cfe-commits
https://github.com/FabianWolff created https://github.com/llvm/llvm-project/pull/141584 Follow-up to #141092. >From eccc89a78d2da840279d584d0b6580269b7fb3fc Mon Sep 17 00:00:00 2001 From: Fabian Wolff Date: Tue, 27 May 2025 12:13:32 + Subject: [PATCH 1/2] Run `clang-format` --- .../clang

[clang] [C2y] Correctly handle incomplete types in generic selections (PR #141596)

2025-05-27 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/141596 We were emitting a non-error diagnostic but claiming we emitted an error, which caused some obvious follow-on problems. Fixes #141549 >From a3509b043c9b36decdb3e891ac4e808c3d907827 Mon Sep 17 00:00:00 200

[clang] [KeyIntsr][Clang] Builtins alloca auto-init atom (PR #134651)

2025-05-27 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer edited https://github.com/llvm/llvm-project/pull/134651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Assign vector element atom (PR #134649)

2025-05-27 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134649 >From d5bf606509f4f4fcb30e0cb1ea2fe0b51e5a5b5c Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 21:56:37 +0100 Subject: [PATCH] [KeyInstr][Clang] Assign vector element atom This patch

[clang] [C2y] Correctly handle incomplete types in generic selections (PR #141596)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes We were emitting a non-error diagnostic but claiming we emitted an error, which caused some obvious follow-on problems. Fixes #141549 --- Full diff: https://github.com/llvm/llvm-project/pull/141596.di

[clang] [Clang][OpenCL][AMDGPU] Allow a kernel to call another kernel (PR #115821)

2025-05-27 Thread via cfe-commits
BukeBeyond wrote: > Doesn't OpenCL have an extension system? You could make an extension to > disable this feature instead of putting it in the compiler I'd think. I'm not > sure how SPIR-V works, but normally we differentiate between globals needed > for the user and internal globals by their

[clang-tools-extra] [clang-tidy] Fix formatting and add release notes entry (PR #141584)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (FabianWolff) Changes Follow-up to #141092. --- Full diff: https://github.com/llvm/llvm-project/pull/141584.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp (+2

[clang-tools-extra] [clang-tidy] Add check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-05-27 Thread via cfe-commits
https://github.com/flovent edited https://github.com/llvm/llvm-project/pull/141345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix formatting and add release notes entry (PR #141584)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (FabianWolff) Changes Follow-up to #141092. --- Full diff: https://github.com/llvm/llvm-project/pull/141584.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp (+2-2) -

[clang] [llvm] [clang][RISCV][Zicfilp] Emit RISCV function-signature-based CFI label in llvm::Function metadata (PR #111661)

2025-05-27 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk edited https://github.com/llvm/llvm-project/pull/111661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-27 Thread Rainer Orth via cfe-commits
rorth wrote: The Solaris/amd64 bot is green again, thanks. I'd tried to reproduce the failure locally yesterday, but weirdly couldn't: no idea what's the difference between the bot and my local builds. https://github.com/llvm/llvm-project/pull/140874 ___

[clang] [clang][RISCV] Handle target features correctly in CheckBuiltinFunctionCall (PR #141548)

2025-05-27 Thread Brandon Wu via cfe-commits
@@ -0,0 +1,11 @@ +// REQUIRES: riscv-registered-target +// RUN: %clang_cc1 -triple riscv64 -target-feature +zvknha %s -fsyntax-only -verify + +#include + +// expected-no-diagnostics + +__attribute__((target("arch=+zvl128b"))) +void test_zvk_features(vuint32m1_t vd, vuint32m1_t v

[clang] 104f5d1 - [analyzer] Introduce the check::BlockEntrance checker callback (#140924)

2025-05-27 Thread via cfe-commits
Author: Balázs Benics Date: 2025-05-27T10:11:12+02:00 New Revision: 104f5d1ff84613542442b71bcb59e19c5ed17b89 URL: https://github.com/llvm/llvm-project/commit/104f5d1ff84613542442b71bcb59e19c5ed17b89 DIFF: https://github.com/llvm/llvm-project/commit/104f5d1ff84613542442b71bcb59e19c5ed17b89.diff

[clang] [clang][RISCV] Handle target features correctly in CheckBuiltinFunctionCall (PR #141548)

2025-05-27 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/141548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-27 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource closed https://github.com/llvm/llvm-project/pull/140924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce elementwise clz/ctz builtins (PR #131995)

2025-05-27 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/131995 >From 8f445e8db9378779d822388060ee3be15f360751 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Mon, 3 Feb 2025 16:54:17 + Subject: [PATCH 1/4] [clang] Introduce elementwise clz/ctz builtins These bu

[clang] [llvm] [ARM, AArch64] Don't put BTI at asm goto branch targets (PR #141562)

2025-05-27 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm created https://github.com/llvm/llvm-project/pull/141562 In 'asm goto' statements ('callbr' in LLVM IR), you can specify one or more labels / basic blocks in the containing function which the assembly code might jump to. If you're also compiling with branch targe

[clang] [llvm] [ARM, AArch64] Don't put BTI at asm goto branch targets (PR #141562)

2025-05-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc @llvm/pr-subscribers-backend-aarch64 Author: Simon Tatham (statham-arm) Changes In 'asm goto' statements ('callbr' in LLVM IR), you can specify one or more labels / basic blocks in the containing function which the assembly code might j

  1   2   3   4   5   >