[clang] [clang-format] Improve QualifierAlignment in guessing macros (PR #145468)

2025-06-23 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/145468 Fixes #145388 >From 349d309467c1251a9206f665886bde06b96ced32 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 23 Jun 2025 23:32:31 -0700 Subject: [PATCH] [clang-format] Improve QualifierAlignment in guessing m

[clang] [Clang][LoongArch] Fixed incorrect _BitInt(N>64) alignment (PR #145297)

2025-06-23 Thread via cfe-commits
https://github.com/heiher approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/145297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][OpenMP] Non-contiguous strided update (PR #144635)

2025-06-23 Thread Amit Tiwari via cfe-commits
@@ -7384,7 +7384,40 @@ class MappableExprsHandler { // dimension. uint64_t DimSize = 1; -bool IsNonContiguous = CombinedInfo.NonContigInfo.IsNonContiguous; +// Detects non-contiguous updates due to strided accesses. +// Sets the 'IsNonContiguous' flag so th

[clang-tools-extra] e435558 - [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (#143550)

2025-06-23 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-24T08:39:05+03:00 New Revision: e435558ff9b47db2d9eef3d94c64666c7a68a648 URL: https://github.com/llvm/llvm-project/commit/e435558ff9b47db2d9eef3d94c64666c7a68a648 DIFF: https://github.com/llvm/llvm-project/commit/e435558ff9b47db2d9eef3d94c64666c7a68a648.diff

[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)

2025-06-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/143550 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,157 @@ +//===- AMDGPUExpandFeaturePredicates.cpp - Feature Predicate Expander Pass ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-23 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM edited https://github.com/llvm/llvm-project/pull/144874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-23 Thread Abhinav Gaba via cfe-commits
@@ -1,174 +1,178 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-fileche

[clang] [clang-format] Handle Trailing Whitespace After Line Continuation (P2223R2) (PR #145243)

2025-06-23 Thread Owen Pan via cfe-commits
@@ -25768,6 +25768,29 @@ TEST_F(FormatTest, OperatorPassedAsAFunctionPtr) { verifyFormat("foo(operator, , -42);", Style); } +TEST_F(FormatTest, LineSpliceWithTrailingWhitespace) { + // Test that each sequence of a backslash (\) immediately followed by zero or + // more hor

[clang] [clang-format] Handle Trailing Whitespace After Line Continuation (P2223R2) (PR #145243)

2025-06-23 Thread Owen Pan via cfe-commits
@@ -25768,6 +25768,29 @@ TEST_F(FormatTest, OperatorPassedAsAFunctionPtr) { verifyFormat("foo(operator, , -42);", Style); } +TEST_F(FormatTest, LineSpliceWithTrailingWhitespace) { + // Test that each sequence of a backslash (\) immediately followed by zero or + // more hor

[libclc] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNARY_BUILTIN macros (PR #145458)

2025-06-23 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/145458 Also delete unused _CLC_DEFINE_BINARY_BUILTIN_WITH_SCALAR_SECOND_ARG, _CLC_DEFINE_UNARY_BUILTIN_FP16 and _CLC_DEFINE_BINARY_BUILTIN_FP16. llvm-diff shows no change to nvptx64--nvidiacl.bc and amdgcn--amdhsa.bc

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-23 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba created https://github.com/llvm/llvm-project/pull/145454 For the following: ```c int *p; #pragma omp target map(p[0]) //(A) (void)p; #pragma omp target map(p) // (B) (void)p; #pragma omp target map(p, p[0]) // (C) (void)p; #pragma omp ta

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-23 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba updated https://github.com/llvm/llvm-project/pull/145454 >From d867ab3a20b1999cb5b00554fdb21cbe6766a1d5 Mon Sep 17 00:00:00 2001 From: Abhinav Gaba Date: Sun, 22 Jun 2025 18:36:16 -0700 Subject: [PATCH 1/2] [Clang][OpenMP] Capture mapped pointers on `target` by r

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

2025-06-23 Thread Tom Honermann via cfe-commits
@@ -2886,6 +2887,16 @@ class CXXDestructorDecl : public CXXMethodDecl { return getCanonicalDecl()->OperatorDelete; } + const FunctionDecl *getOperatorGlobalDelete() const { +return getCanonicalDecl()->OperatorGlobalDelete; + } + + void setOperatorGlobalDelete(Func

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-06-23 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: opened RFC ant LLVM discourse: https://discourse.llvm.org/t/rfc-adding-gnu-make-jobserver-support-to-llvm-for-coordinated-parallelism/87034 https://github.com/llvm/llvm-project/pull/145131 ___ cfe-commits mailing list cfe-commits@lists

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

2025-06-23 Thread Tom Honermann via cfe-commits
@@ -46,6 +46,16 @@ Potentially Breaking Changes ``endbr64`` instruction at the labels named as possible branch destinations, so it is not safe to use a register-controlled branch instruction to branch to one. (In line with gcc.) +- Scalar deleting destructors emitted by c

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,157 @@ +//===- AMDGPUExpandFeaturePredicates.cpp - Feature Predicate Expander Pass ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-23 Thread Abhinav Gaba via cfe-commits
@@ -1,174 +1,178 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-fileche

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-23 Thread Abhinav Gaba via cfe-commits
@@ -1,174 +1,178 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-fileche

[clang] Fix `pragma-comment.c` test failing on false match (PR #145455)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dave Bartolomeo (dbartol) Changes Sometimes the forbidden text `foo` or `bar` could appear in the Clang version string metadata. Treating the version string as a `CHECK-LABEL:` prevents this. Fixes #145453 --- Full diff: https://github.

[clang] 0e461d1 - [clang][bytecode] Only use int128 if it is available

2025-06-23 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2025-06-24T05:53:04+02:00 New Revision: 0e461d1781f1c67cc2724150c6da848f6ea75f3a URL: https://github.com/llvm/llvm-project/commit/0e461d1781f1c67cc2724150c6da848f6ea75f3a DIFF: https://github.com/llvm/llvm-project/commit/0e461d1781f1c67cc2724150c6da848f6ea75f3a.diff LO

[clang] Reland "[Modules] Record whether VarDecl initializers contain side effects" (PR #145447)

2025-06-23 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/145447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "[Modules] Record whether VarDecl initializers contain side effects" (PR #145447)

2025-06-23 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` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/12004 Here is the relevant piece

[clang] [Clang][Preprocessor] Expand UCNs in macro concatenation (PR #145351)

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

[clang] Reland "[Modules] Record whether VarDecl initializers contain side effects" (PR #145447)

2025-06-23 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: What is the difference between this one and the previous PR? https://github.com/llvm/llvm-project/pull/145447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] 2f9c97c - [RISCV] Add Andes AX45MPV processor definition (#145267)

2025-06-23 Thread via cfe-commits
Author: Jim Lin Date: 2025-06-24T08:57:55+08:00 New Revision: 2f9c97c030c32c1838d7f102d55921ed4d3442e1 URL: https://github.com/llvm/llvm-project/commit/2f9c97c030c32c1838d7f102d55921ed4d3442e1 DIFF: https://github.com/llvm/llvm-project/commit/2f9c97c030c32c1838d7f102d55921ed4d3442e1.diff LOG:

[clang] [llvm] [RISCV] Add Andes AX45MPV processor definition (PR #145267)

2025-06-23 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/145267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Andes AX45MPV processor definition (PR #145267)

2025-06-23 Thread Jim Lin via cfe-commits
@@ -0,0 +1,33 @@ +// RUN: %clang --target=riscv64 -mcpu=andes-ax45mpv --print-enabled-extensions | FileCheck %s tclin914 wrote: The style under `clang/test/Driver/print-enabled-extensions/` is one file per CPU https://github.com/llvm/llvm-project/pull/145267 _

[clang] [AArch64] Change the coercion type of structs with pointer members. (PR #135064)

2025-06-23 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > The tests fail with SIGSEGV without hwasan, so there is some problem revealed > by this change either in the compiler or in the tests. Bailing out under > hwasan is not a fix. > > Disallowing function pointers makes the problem go away, so might be a useful > hint. Another

[clang] [clang][scan-deps] Add option to disable caching stat failures (PR #144000)

2025-06-23 Thread Qinkun Bao via cfe-commits
qinkunbao wrote: Hi, I think this PR broken the clang unit tests. https://lab.llvm.org/buildbot/#/builders/164/builds/11064 Can you take a look? ``` [ RUN ] DependencyScanner.NoNegativeCache #0 0x5a761a02 ___interceptor_backtrace /home/b/sanitizer-x86_64-linux-bootstrap-msan/bui

[clang] [CIR] Add support for __builtin_expect (PR #144726)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM w one extra minor suggestion https://github.com/llvm/llvm-project/pull/144726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [AArch64] Add option -msve-streaming-vector-bits= . (PR #144611)

2025-06-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/144611 >From c28804a471a9fe6be24479ffbfd7d4aa6c774125 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 17 Jun 2025 11:48:47 -0700 Subject: [PATCH 1/4] [AArch64] Add option -msve-streaming-vector-bits= . Th

[clang] [AArch64] Add option -msve-streaming-vector-bits= . (PR #144611)

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

[clang] [AArch64] Add option -msve-streaming-vector-bits= . (PR #144611)

2025-06-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions h,c,cpp -- clang/test/SemaCXX/aarch64-streaming-sve-vector-c

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-23 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: @hokein @ChuanqiXu9 @yuxuanchen1997 friendly ping 🙂 https://github.com/llvm/llvm-project/pull/142651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Add option -msve-streaming-vector-bits= . (PR #144611)

2025-06-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/144611 >From c28804a471a9fe6be24479ffbfd7d4aa6c774125 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 17 Jun 2025 11:48:47 -0700 Subject: [PATCH 1/3] [AArch64] Add option -msve-streaming-vector-bits= . Th

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Mircea Trofin via cfe-commits
@@ -37,8 +37,8 @@ static cl::opt OptBisectVerbose( cl::desc("Show verbose output when opt-bisect-limit is set"), cl::Hidden, cl::init(true), cl::Optional); -static void printPassMessage(const StringRef &Name, int PassNum, - StringRef TargetD

[clang] [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Garvit Gupta (quic-garvgupt) Changes This patch introduces enhancements to the Baremetal toolchain to support GCC toolchain detection. - If the --gcc-install-dir or --gcc-toolchain options are provided and point to valid paths, the

[clang] [clang Dependency Scanning] Enhance File Caching Diagnostics (PR #144105)

2025-06-23 Thread Qiongsi Wu via cfe-commits
@@ -220,13 +220,41 @@ class DependencyScanningFilesystemSharedCache { CacheShard &getShardForFilename(StringRef Filename) const; CacheShard &getShardForUID(llvm::sys::fs::UniqueID UID) const; - /// Visits all cached entries and re-stat an entry using FS if - /// it is ne

[clang] [CIR] Add bitfield offset calculation for big-endian targets (PR #145067)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Nice to see this done Incrementally, LGTM. https://github.com/llvm/llvm-project/pull/145067 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [CIR] Upstream ChooseExpr for ComplexType (PR #145163)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/145163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream computeVolatileBitfields (PR #145414)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR upstreams functionality for computing volatile bitfields when the target follows the AAPCS ABI. The implementation matches the one in the incubator, so no tests are incl

[clang] [CIR] Upstream computeVolatileBitfields (PR #145414)

2025-06-23 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/145414 This PR upstreams functionality for computing volatile bitfields when the target follows the AAPCS ABI. The implementation matches the one in the incubator, so no tests are included as the feature is n

[clang] [llvm] [RISCV] Add Support of RISCV Zibimm Experimental Extension (PR #127463)

2025-06-23 Thread Craig Topper via cfe-commits
@@ -0,0 +1,299 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc -mtriple=riscv32 -mattr=+experimental-zibimm -verify-machineinstrs < %s \ +; RUN: | FileCheck -check-prefix=RV32I-ZIBIMM %s topperc wrote: Use a comm

[clang] [llvm] [HLSL][RootSignature] Plug-in serialization and add full sample testcase (PR #144769)

2025-06-23 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 -- llvm/lib/Frontend/HLSL/HLSLRootSignatureUtils.cpp ll

[clang] [clang Dependency Scanning] Enhance File Caching Diagnostics (PR #144105)

2025-06-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/144105 >From 2187de3d30045a02c03ca009f2497608ab6bc6a4 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Thu, 12 Jun 2025 16:05:32 -0700 Subject: [PATCH 1/2] Enhancing DependencyScanningFilesystemSharedCache's API that

[clang] [CIR] Add support for DumpRecordLayouts (PR #145058)

2025-06-23 Thread via cfe-commits
https://github.com/Andres-Salamanca closed https://github.com/llvm/llvm-project/pull/145058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-06-23 Thread via cfe-commits
https://github.com/RolandF77 ready_for_review https://github.com/llvm/llvm-project/pull/145372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Alex Voicu via cfe-commits
@@ -9102,6 +9102,15 @@ bool InitializationSequence::Diagnose(Sema &S, case FK_ConversionFailed: { QualType FromType = OnlyArg->getType(); +// __amdgpu_feature_predicate_t can be explicitly cast to the logical op +// type, although this is almost always an error a

[clang] 97e8266 - [CIR] Remove redundant operation trait and use AllTypesMatch instead (#144950)

2025-06-23 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-06-23T20:42:00+02:00 New Revision: 97e8266172533fe9deb701a0851b442298f0f011 URL: https://github.com/llvm/llvm-project/commit/97e8266172533fe9deb701a0851b442298f0f011 DIFF: https://github.com/llvm/llvm-project/commit/97e8266172533fe9deb701a0851b442298f0f011.diff

[clang] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-23 Thread Krzysztof Parzyszek via cfe-commits
kparzysz wrote: I'll add a unit test that prints all affected directives with different versions. https://github.com/llvm/llvm-project/pull/141772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Mircea Trofin via cfe-commits
@@ -82,6 +83,44 @@ class LLVM_ABI OptBisect : public OptPassGate { int LastBisectNum = 0; }; +/// This class implements a mechanism to disable passes and individual +/// optimizations at compile time based on a command line option +/// (-opt-disable) in order to study how si

[clang] [clang][analyzer] fix crash when modelling 'getline' function in checkers (PR #145229)

2025-06-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/145229 >From ba9f1edfc2ea1fb1e41366721ccbf795ec998707 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 23 Jun 2025 23:55:57 +0300 Subject: [PATCH] [clang][analyzer] fix crash when modelling 'getline' function

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > I'm generally very unhappy about any kind of functionality that can cause > compilation failures either because the optimizer did not optimize enough > (including at O0) or because it optimized too much (producing code patterns > that are no longer recognized as trivially dead

[clang] [clang][analyzer] fix crash when modelling 'getline' function in checkers (PR #145229)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: > would it be easier to use this Signature class for implementing the matching > code instead of hand-rolling out something custom? It's "easier" to some extent, I think it's more readable and maintainable with full dedicated signature matching. I created a small PR in my LLVM

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Alex Voicu via cfe-commits
@@ -0,0 +1,157 @@ +//===- AMDGPUExpandFeaturePredicates.cpp - Feature Predicate Expander Pass ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Alex Voicu via cfe-commits
@@ -0,0 +1,157 @@ +//===- AMDGPUExpandFeaturePredicates.cpp - Feature Predicate Expander Pass ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [CIR] Add support for __builtin_expect (PR #144726)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
@@ -989,6 +989,19 @@ mlir::LogicalResult CIRToLLVMConstantOpLowering::matchAndRewrite( return mlir::success(); } +mlir::LogicalResult CIRToLLVMExpectOpLowering::matchAndRewrite( +cir::ExpectOp op, OpAdaptor adaptor, +mlir::ConversionPatternRewriter &rewriter) const

[clang] [llvm] Non constant size and offset in DWARF (PR #141106)

2025-06-23 Thread Tom Tromey via cfe-commits
@@ -1525,15 +1525,24 @@ Error MetadataLoader::MetadataLoaderImpl::parseOneMetadata( if (Record.size() < 6 || Record.size() > 8) return error("Invalid record"); -IsDistinct = Record[0]; +IsDistinct = Record[0] & 1; +bool SizeIsMetadata = Record[0] & 2;

[clang] [llvm] [HLSL][RootSignature] Plug-in serialization and add full sample testcase (PR #144769)

2025-06-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/144769 >From 3761e5204d2d435cc09f392fd2e53c2125fac0ed Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 6 Jun 2025 20:46:10 + Subject: [PATCH 1/3] [HLSL][RootSignature] Plug-in serialization and add full samp

[clang] [clang Dependency Scanning] Enhance File Caching Diagnostics (PR #144105)

2025-06-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/144105 >From 2187de3d30045a02c03ca009f2497608ab6bc6a4 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Thu, 12 Jun 2025 16:05:32 -0700 Subject: [PATCH 1/2] Enhancing DependencyScanningFilesystemSharedCache's API that

[clang] 6621441 - [CIR] Add support for DumpRecordLayouts (#145058)

2025-06-23 Thread via cfe-commits
Author: Andres-Salamanca Date: 2025-06-23T14:58:28-05:00 New Revision: 66214410c4059be3b60f287d80e2ffc77d2c9ab4 URL: https://github.com/llvm/llvm-project/commit/66214410c4059be3b60f287d80e2ffc77d2c9ab4 DIFF: https://github.com/llvm/llvm-project/commit/66214410c4059be3b60f287d80e2ffc77d2c9ab4.di

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-23 Thread Sean Fertile via cfe-commits
@@ -515,6 +515,10 @@ TARGET_BUILTIN(__builtin_altivec_vctzh, "V8UsV8Us", "", "power9-vector") TARGET_BUILTIN(__builtin_altivec_vctzw, "V4UiV4Ui", "", "power9-vector") TARGET_BUILTIN(__builtin_altivec_vctzd, "V2ULLiV2ULLi", "", "power9-vector") +//P9 BCD builtins +TARGET_BUILT

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

2025-06-23 Thread Anchu Rajendran S via cfe-commits
anchuraj wrote: > Please remove 'amdgpu' from variable and function names. These options may be > useful for other targets as well. Thank you for the review. I have updated. https://github.com/llvm/llvm-project/pull/143441 ___ cfe-commits mailing li

[clang] [flang] [llvm] [llvm] fix extern cl::opt definitions for DLL export (PR #145374)

2025-06-23 Thread Andrew Rogers via cfe-commits
https://github.com/andrurogerz updated https://github.com/llvm/llvm-project/pull/145374 >From 8f95bca7eecfefca8849b8dc630aefd6c43967e6 Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Mon, 23 Jun 2025 10:47:54 -0700 Subject: [PATCH] [llvm] fix extern cl::opt definitions for DLL export --- c

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

2025-06-23 Thread Michael Davis via cfe-commits
mdavis36 wrote: Thank you all for weighing in here. It seems there is some disagreement on how to move forward with this. I believe the current change addresses the initial issue this PR is tied to, which aimed to clarify this attribute affects more than just explicit specializations defined b

[clang] [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Garvit Gupta (quic-garvgupt) Changes This patch introduces enhancements to the Baremetal toolchain to support GCC toolchain detection. - If the --gcc-install-dir or --gcc-toolchain options are provided and point to valid paths, the sysroo

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-06-23 Thread Jake Egan via cfe-commits
https://github.com/jakeegan edited https://github.com/llvm/llvm-project/pull/129925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (RolandF77) Changes Add support for PPC Dense Math basic builtins dmsetdmrz, dmmr, dmxor. --- Full diff: https://github.com/llvm/llvm-project/pull/145372.diff 3 Files Affected: - (modified) clang/include/clang/Basic/Builtin

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: None (RolandF77) Changes Add support for PPC Dense Math basic builtins dmsetdmrz, dmmr, dmxor. --- Full diff: https://github.com/llvm/llvm-project/pull/145372.diff 3 Files Affected: - (modified) clang/include/clang/Basic/Built

[clang] [CIR] Remove redundant operation trait and use AllTypesMatch instead (PR #144950)

2025-06-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/17887 Here is the relevant piece of the build lo

[clang] [clang Dependency Scanning] Enhance File Caching Diagnostics (PR #144105)

2025-06-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/144105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-23 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt created https://github.com/llvm/llvm-project/pull/145390 This patch introduces enhancements to the Baremetal toolchain to support GCC toolchain detection. - If the --gcc-install-dir or --gcc-toolchain options are provided and point to valid paths, the sysroot i

[clang] [HLSL][RootSignature] Enable resource range analysis for remaining `RootElement`s (PR #145109)

2025-06-23 Thread Finn Plummer via cfe-commits
@@ -1116,6 +1116,52 @@ bool SemaHLSL::handleRootSignatureDecl(HLSLRootSignatureDecl *D, Info.Space = Descriptor->Space; Info.Visibility = Descriptor->Visibility; Infos.push_back(Info); +} else if (const auto *Constants = + std::get_if(&E

[clang] __sys builtin support (PR #145079)

2025-06-23 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello approved this pull request. https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #136026)

2025-06-23 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/136026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-23 Thread Aaron Ballman via cfe-commits
@@ -9102,6 +9102,15 @@ bool InitializationSequence::Diagnose(Sema &S, case FK_ConversionFailed: { QualType FromType = OnlyArg->getType(); +// __amdgpu_feature_predicate_t can be explicitly cast to the logical op +// type, although this is almost always an error a

[clang] [CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (PR #145383)

2025-06-23 Thread via cfe-commits
https://github.com/amilendra created https://github.com/llvm/llvm-project/pull/145383 Add mfloat8_t support for the following SVE load intrinsics. - SVLD1RO - SVLD1RQ - SVLDFF1 - SVLDFF1_VNUM - SVLDNF1 - SVLDNF1_VNUM >From 4c894275e451e5d71d27f977424095ad993d8e58 Mon Sep 17 00:00:00 2001 From:

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

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

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-06-23 Thread via cfe-commits
https://github.com/RolandF77 updated https://github.com/llvm/llvm-project/pull/145372 >From fc5226fa4bb20267c4e3ed3c687056461ccfbccb Mon Sep 17 00:00:00 2001 From: Roland Froese Date: Mon, 23 Jun 2025 17:27:46 + Subject: [PATCH 1/2] dmf basic builtins --- clang/include/clang/Basic/Builtin

[clang] [llvm] [HLSL][RootSignature] Add `hlsl-rootsig-ver` option to specify root signature version (PR #144813)

2025-06-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic deleted https://github.com/llvm/llvm-project/pull/144813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Vasiliy Kulikov via cfe-commits
segoon wrote: Sorry, this PR was not indended to be merged as is =( sorry for the noise https://github.com/llvm/llvm-project/pull/145307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (PR #145383)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (amilendra) Changes Add mfloat8_t support for the following SVE load intrinsics. - SVLD1RO - SVLD1RQ - SVLDFF1 - SVLDFF1_VNUM - SVLDNF1 - SVLDNF1_VNUM --- Full diff: https://github.com/llvm/llvm-project/pull/145383.diff 5 Files Aff

[clang] [CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (PR #145383)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (amilendra) Changes Add mfloat8_t support for the following SVE load intrinsics. - SVLD1RO - SVLD1RQ - SVLDFF1 - SVLDFF1_VNUM - SVLDNF1 - SVLDNF1_VNUM --- Full diff: https://github.com/llvm/llvm-project/pull/145383.diff 5 F

[clang] [CIR] Remove redundant operation trait and use AllTypesMatch instead (PR #144950)

2025-06-23 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/144950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Avoid printing overly large integer/_BitInt numbers in static assertion failure diagnostics #71675 (PR #145053)

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

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante updated https://github.com/llvm/llvm-project/pull/145059 >From ab6063493744ef5a1ee92fd249bf8d86b7299fad Mon Sep 17 00:00:00 2001 From: Cristian Assaiante Date: Fri, 20 Jun 2025 16:56:23 +0200 Subject: [PATCH 1/4] Adding -opt-disable and a test for it --- c

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-06-23 Thread Jake Egan via cfe-commits
https://github.com/jakeegan updated https://github.com/llvm/llvm-project/pull/129925 >From 072f4eca3825729d69d423d774c8a3298cb624a8 Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Wed, 5 Mar 2025 01:57:38 -0500 Subject: [PATCH 01/14] [clang] Implement address sanitizer on AIX (1/3) The PR inclu

[clang] [CIR] Add support for DumpRecordLayouts (PR #145058)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Pretty straightforward, thanks! Do you mind backporting this to the incubator when you get the chance? https://github.com/llvm/llvm-project/pull/145058 ___ cfe-commits mailing list cfe-commi

[clang] [CIR] Remove redundant operation trait and use AllTypesMatch instead (PR #144950)

2025-06-23 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jun 23, 6:40 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/144950). https://github.com/llvm/llvm-project/pull/144950 _

[clang] [HLSL][RootSignature] Enable resource range analysis for remaining `RootElement`s (PR #145109)

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

[clang] [Modules] Record whether VarDecl initializers contain side effects (PR #143739)

2025-06-23 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn closed https://github.com/llvm/llvm-project/pull/143739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][RootSignature] Enable resource range analysis for remaining `RootElement`s (PR #145109)

2025-06-23 Thread via cfe-commits
https://github.com/joaosaffran approved this pull request. LGTM, minor a nit https://github.com/llvm/llvm-project/pull/145109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][RootSignature] Enable resource range analysis for remaining `RootElement`s (PR #145109)

2025-06-23 Thread via cfe-commits
@@ -1116,6 +1116,52 @@ bool SemaHLSL::handleRootSignatureDecl(HLSLRootSignatureDecl *D, Info.Space = Descriptor->Space; Info.Visibility = Descriptor->Visibility; Infos.push_back(Info); +} else if (const auto *Constants = + std::get_if(&E

[clang] [clang][bytecode] Fix IntegralAP::{isMin,isMax} (PR #145339)

2025-06-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/145339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Clean up enum attributes (PR #144999)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Thanks for all these cleanups, great! https://github.com/llvm/llvm-project/pull/144999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: > I meant macros defined in system headers, but with expansions in user code. Make sense, I suppose we should make for that and potentially implement such logic in more checks. I think we can land this as is for now https://github.com/llvm/llvm-project/pull/143550

[clang] [clang][Preprocessor] Add peekNextPPToken, makes look ahead next token without side-effects (PR #143898)

2025-06-23 Thread via cfe-commits
yronglin wrote: Many thanks for your review! https://github.com/llvm/llvm-project/pull/143898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve diagnostics for 'placement new' with const storage argument (PR #144270)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: No problem, take your time! Feel better soon. Regarding this comment: > should probably be earlier - this is inside an array of object My logic is still placed inside that `if (object || pointer)`, should I try to look for an earlier place in `resolveAllocationOverloadInterior`

[clang] [CIR] Remove redundant operation trait and use AllTypesMatch instead (PR #144950)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Awesome! https://github.com/llvm/llvm-project/pull/144950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >