[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Henrich Lauko via cfe-commits
@@ -2219,6 +2219,42 @@ def CIR_TrapOp : CIR_Op<"trap", [Terminator]> { let assemblyFormat = "attr-dict"; } +//===--===// +// ArrayCtor +//===--

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Henrich Lauko via cfe-commits
@@ -22,15 +24,97 @@ struct LoweringPreparePass : public LoweringPrepareBase { void runOnOperation() override; void runOnOp(Operation *op); + void lowerArrayCtor(ArrayCtor op); }; } // namespace -void LoweringPreparePass::runOnOp(Operation *op) {} +void LoweringPrep

[clang] [CIR] Upstream builtin_conj for ComplexType (PR #149170)

2025-07-17 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/149170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Jakub Chlanda (jchlanda) Changes This patch provides a single point for handling the logic behind choosing common bitcode libraries. The intention is that the users of ROCm installation detector will not

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-17 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/137828 >From 839198d61f9937b5504d5e036c67266b4b84da8e Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Thu, 17 Jul 2025 14:09:57 +0200 Subject: [PATCH] [Flang][Flang-RT][OpenMP] Move builtin .mod generation into

[clang] [clang-linker-wrapper] Pass on --cuda-path to child clang processes (PR #149107)

2025-07-17 Thread Joseph Huber via cfe-commits
jhuber6 wrote: Yeah that's definitely not ideal, I'll need to think of a way to handle that more gracefully. https://github.com/llvm/llvm-project/pull/149107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/149142 >From 2a78522d151c3a970fccef94724a31fe14547f9d Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Wed, 16 Jul 2025 18:48:52 +0200 Subject: [PATCH 1/2] [CIR] Add support for array constructors This patch upstreams s

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-17 Thread Joseph Huber via cfe-commits
@@ -77,6 +79,82 @@ class RocmInstallationDetector { SPACKReleaseStr(SPACKReleaseStr.str()) {} }; + struct CommonBitcodeLibsPreferences { +CommonBitcodeLibsPreferences(const Driver &D, + const llvm::opt::ArgList &DriverArgs, +

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-17 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 HEAD~1...HEAD flang/test/lit.cfg.py `` View the diff from darker here. `

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

2025-07-17 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: I am seeing a new build failure when building the Linux kernel as a result of this change. ``` drivers/tty/sysrq.c:486:2: error: initializer element is not a compile-time constant 486 | &sysrq_showlocks_op,/* d */ | ^~~ ``

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,70 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-llvm %s -o

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-17 Thread via cfe-commits
https://github.com/schittir edited https://github.com/llvm/llvm-project/pull/140282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-07-17 Thread via cfe-commits
https://github.com/moorabbit updated https://github.com/llvm/llvm-project/pull/148281 >From 029d9fce6cdb75ea4819a107c7ed9f074bb36678 Mon Sep 17 00:00:00 2001 From: moorabbit <215698969+moorab...@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:25:46 -0400 Subject: [PATCH 1/3] [Clang] Add `__bu

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-07-17 Thread via cfe-commits
@@ -121,6 +121,11 @@ enum NodeType { /// function calling this intrinsic. SPONENTRY, + /// STACKADDR - Represents the llvm.stackaddr intrinsic. Takes no argument + /// and returns the starting address of the stack region that may be used + /// by called functions. + ST

[clang] [Clang] Ensure correct parameters are in the scope for constraint equivalence checking (PR #149264)

2025-07-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/149264 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Add mention of running 'clang-tidy' on changes in Contributing.rst (PR #148547)

2025-07-17 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/148547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Add mention of running 'clang-tidy' on changes in Contributing.rst (PR #148547)

2025-07-17 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Clang-Tidy pull requests are usually small, so is `-j` really necessary? Do you have anything against `-j` anymore? Otherwise, I'd merge this PR https://github.com/llvm/llvm-project/pull/148547 ___ cfe-commits mailing list cfe-commit

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Morris Hafner via cfe-commits
@@ -0,0 +1,70 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-llvm %s -o

[clang] [clang][bytecode] Diagnose dereferencing a null pointer (PR #149330)

2025-07-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks. (Note that this does not cover the case of forming a reference to a one-past-the-end object, which is covered by the same wording, but if you don't already do that, it can be a separate pr. https://github.com/llvm/llvm-proje

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/149142 >From 2a78522d151c3a970fccef94724a31fe14547f9d Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Wed, 16 Jul 2025 18:48:52 +0200 Subject: [PATCH 1/4] [CIR] Add support for array constructors This patch upstreams s

[clang-tools-extra] [clang-tools-extra][NFC] Fix link to code review in README.txt (PR #148384)

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

[clang-tools-extra] 149aa76 - [clang-tools-extra][NFC] Fix link to code review in README.txt (#148384)

2025-07-17 Thread via cfe-commits
Author: Baranov Victor Date: 2025-07-17T18:38:05+03:00 New Revision: 149aa7679457e4c434374076fa3ad6d02efbe414 URL: https://github.com/llvm/llvm-project/commit/149aa7679457e4c434374076fa3ad6d02efbe414 DIFF: https://github.com/llvm/llvm-project/commit/149aa7679457e4c434374076fa3ad6d02efbe414.diff

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/149227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-17 Thread Corentin Jabot via cfe-commits
@@ -357,3 +357,27 @@ namespace pointer_comparisons { static_assert(!f4()); // expected-error {{static assertion expression is not an integral constant expression}} \ // expected-note {{in call to 'f4()'}} } + +namespace enable_if_1 { + template <__SI

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-17 Thread Corentin Jabot via cfe-commits
@@ -24,3 +24,8 @@ constexpr void other_func() { throw 12; } + +// Make sure these don't trigger the diagnostic. +extern const bool& b; +constexpr bool fun1() { return b; } +constexpr bool fun2(const bool& b) { return b; } cor3ntin wrote: Can you reference t

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM (presumably, we want to backport that) https://github.com/llvm/llvm-project/pull/149227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-17 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/149148 >From b404f5390ac5684c7452e69f6fe209e5215f8929 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 16 Jul 2025 17:37:53 + Subject: [PATCH 1/7] [clang-tidy] Add MLIR check for old op builder usage. Mo

[clang] [CodeGen] Remove an unnecessary cast (NFC) (PR #149339)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149339 getExceptionMode() already returns LangOptions::FPExceptionModeKind. >From 3d531ee0626a226ff3db60c8bf04a447cea6727e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:10:15 -0700 Subje

[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149338 getFinallyStmt() already returns ObjCAtFinallyStmt *. >From eebc7c508a56b53f651523b3199e8f6c765eb808 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:07:26 -0700 Subject: [PATCH] [AS

[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getFinallyStmt() already returns ObjCAtFinallyStmt *. --- Full diff: https://github.com/llvm/llvm-project/pull/149338.diff 1 Files Affected: - (modified) clang/lib/AST/StmtPrinter.cpp (+1-1)

[clang] [Sema] Remove unnecessary casts (NFC) (PR #149340)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149340 getArrayIndex(), getArrayRangeStart(), and getArrayRangeEnd() already return Expr *. >From 945f52459c36663ac5c267779ae8e260dd9f9066 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:1

[clang] [Sema] Remove unnecessary casts (NFC) (PR #149340)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getArrayIndex(), getArrayRangeStart(), and getArrayRangeEnd() already return Expr *. --- Full diff: https://github.com/llvm/llvm-project/pull/149340.diff 1 Files Affected: - (modified) clang/lib/Sem

[clang] [CodeGen] Remove an unnecessary cast (NFC) (PR #149339)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getExceptionMode() already returns LangOptions::FPExceptionModeKind. --- Full diff: https://github.com/llvm/llvm-project/pull/149339.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CodeGenFunc

[clang] [llvm] [AMDGPU] Add support for `v_exp_bf16` on gfx1250 (PR #149229)

2025-07-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/149229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add support for `v_sin_bf16` on gfx1250 (PR #149241)

2025-07-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/149241 >From 8012a2d62f910c81a38c1c8d1de1a5bbd797d22f Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 16 Jul 2025 23:48:48 -0400 Subject: [PATCH] [AMDGPU] Add support for `v_sin_bf16` on gfx1250 Co-authored-by:

[clang] [HIP] Add warning for -mwavefrontsize64 on gfx10+ architectures (PR #140185)

2025-07-17 Thread Yaxun Liu via cfe-commits
@@ -67,6 +67,12 @@ // DUP-NOT: "-target-feature" "{{.*}}wavefrontsize64" // DUP: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+cumode" +// RUN: %clang -### --target=x86_64-linux-gnu -fgpu-rdc -nogpulib \ +// RUN: -nogpuinc --offload-arch=gfx1010 --no-offload-new-driver %s \ +// RUN:

[clang] a102342 - [AMDGPU] Add support for `v_sin_bf16` on gfx1250 (#149241)

2025-07-17 Thread via cfe-commits
Author: Shilei Tian Date: 2025-07-17T08:49:45-04:00 New Revision: a102342990231f8558361da68e5df92c7b1c737d URL: https://github.com/llvm/llvm-project/commit/a102342990231f8558361da68e5df92c7b1c737d DIFF: https://github.com/llvm/llvm-project/commit/a102342990231f8558361da68e5df92c7b1c737d.diff L

[clang] [llvm] [AMDGPU] Add support for `v_sin_bf16` on gfx1250 (PR #149241)

2025-07-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/149241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Expose relocation model as multilib flags (PR #149132)

2025-07-17 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm updated https://github.com/llvm/llvm-project/pull/149132 >From c45a5196d44b4cee469d0a366ff8489227e2566f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 14 Jul 2025 13:55:19 +0100 Subject: [PATCH 1/4] [Clang][Driver] Expose relocation model as multilib flags

[clang] [Clang][Driver] Expose relocation model as multilib flags (PR #149132)

2025-07-17 Thread Simon Tatham via cfe-commits
@@ -376,6 +378,41 @@ ToolChain::getMultilibFlags(const llvm::opt::ArgList &Args) const { else Result.push_back("-fexceptions"); + // A difference of relocation model (absolutely addressed data, PIC, Arm + // ROPI/RWPI) is likely to change whether a particular multilib

[clang] [llvm] [AMDGPU] Add support for `v_sin_bf16` on gfx1250 (PR #149241)

2025-07-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/149241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-17 Thread Jacques Pienaar via cfe-commits
jpienaar wrote: It seems it has been only https://github.com/llvm/llvm-project/pull/148018 submitted to it and that's not on the 21.x branch, and then its returning it to https://github.com/llvm/llvm-project/blob/3bd3e06f3fe418e24af65457877f40cee0544f9d/clang-

[clang] [llvm] [AMDGPU] Add support for `v_exp_bf16` on gfx1250 (PR #149229)

2025-07-17 Thread Matt Arsenault via cfe-commits
@@ -25,4 +25,27 @@ define amdgpu_ps void @llvm_log2_bf16_s(ptr addrspace(1) %out, bfloat inreg %src ret void } +define amdgpu_ps void @llvm_exp2_bf16_v(ptr addrspace(1) %out, bfloat %src) { +; GCN-LABEL: llvm_exp2_bf16_v: +; GCN: ; %bb.0: +; GCN-NEXT:v_exp_bf16_e3

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

2025-07-17 Thread Yaxun Liu via cfe-commits
@@ -1420,12 +1420,18 @@ int main(int Argc, char **Argv) { parallel::strategy = hardware_concurrency(1); if (auto *Arg = Args.getLastArg(OPT_wrapper_jobs)) { -unsigned Threads = 0; -if (!llvm::to_integer(Arg->getValue(), Threads) || Threads == 0) - reportError(

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-17 Thread Jakub Chlanda via cfe-commits
@@ -77,6 +79,82 @@ class RocmInstallationDetector { SPACKReleaseStr(SPACKReleaseStr.str()) {} }; + struct CommonBitcodeLibsPreferences { +CommonBitcodeLibsPreferences(const Driver &D, + const llvm::opt::ArgList &DriverArgs, +

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-17 Thread Joseph Huber via cfe-commits
@@ -77,6 +79,82 @@ class RocmInstallationDetector { SPACKReleaseStr(SPACKReleaseStr.str()) {} }; + struct CommonBitcodeLibsPreferences { +CommonBitcodeLibsPreferences(const Driver &D, + const llvm::opt::ArgList &DriverArgs, +

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-17 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. Seems like an pretty innocuous refactor, LG. https://github.com/llvm/llvm-project/pull/149294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] Ensure proper NULL macro definition for system include files. (PR #149176)

2025-07-17 Thread Jamie Schmeiser via cfe-commits
https://github.com/jamieschmeiser updated https://github.com/llvm/llvm-project/pull/149176 >From e50062b48a09bd6e077b86bdeed65c7c1abb2ebe Mon Sep 17 00:00:00 2001 From: Jamie Schmeiser Date: Wed, 16 Jul 2025 15:40:09 -0400 Subject: [PATCH] Ensure proper NULL macro definition for system include

[clang] Ensure proper NULL macro definition for system include files. (PR #149176)

2025-07-17 Thread Jamie Schmeiser via cfe-commits
@@ -39,6 +39,25 @@ set(core_files varargs.h ) +set(aix_wrapper_files + dbm.h + stdio.h + stdlib.h + string.h + time.h + unistd.h + wchar.h + ) jamieschmeiser wrote: Thanks @hubert-reinterpretcast, good catch. I will add it in. https://github.com

[clang-tools-extra] Cleanout clang-tools-extra ReleaseNotes (PR #149306)

2025-07-17 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar ready_for_review https://github.com/llvm/llvm-project/pull/149306 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Cleanout clang-tools-extra ReleaseNotes (PR #149306)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Jacques Pienaar (jpienaar) Changes Move over change post 21.x branch cut. --- Full diff: https://github.com/llvm/llvm-project/pull/149306.diff 1 Files Affected: - (modified) clang-tools-extra/docs/ReleaseNotes.rst (+1-286)

[clang] [Clang][OpenMP] Fixing Clang error for metadirective with multiple when clauses and no otherwise (PR #148583)

2025-07-17 Thread Zahira Ammarguellat via cfe-commits
@@ -108,6 +108,12 @@ void foo1(void) { : parallel) otherwise(parallel for) for (int i=0; i<10; i++) ; + +#pragma omp metadirective when(user = {condition(1)} \ + : parallel for)

[clang] [clang][bytecode] Fix const-in-mutable fields (PR #149286)

2025-07-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/149286 >From 34201c4031f90a09f4e4d8295f7fb4a261bbb864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Jul 2025 12:31:01 +0200 Subject: [PATCH] [clang][bytecode] Fix const-in-mutable fields

[clang] [llvm] [SPIR-V] Map SPIR-V friendly work-item function to built-in variables (PR #148567)

2025-07-17 Thread Alexey Bader via cfe-commits
https://github.com/bader approved this pull request. https://github.com/llvm/llvm-project/pull/148567 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 011d38b - [OpenACC] Update OpenACC macro, remove override macro

2025-07-17 Thread via cfe-commits
Author: erichkeane Date: 2025-07-17T09:12:36-07:00 New Revision: 011d38bdac95647a872a5faa339465e26535df35 URL: https://github.com/llvm/llvm-project/commit/011d38bdac95647a872a5faa339465e26535df35 DIFF: https://github.com/llvm/llvm-project/commit/011d38bdac95647a872a5faa339465e26535df35.diff LO

[clang] [clang][analyzer] Improve checker 'unix.cstring.NotNullTerminated' (PR #149106)

2025-07-17 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/149106 From ba535f818b36e5ab758b4148e46816e8f3ee6550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Wed, 2 Jul 2025 11:09:58 +0200 Subject: [PATCH 1/2] [clang][analyzer] Improve checker 'uni

[clang] Ensure proper NULL macro definition for system include files. (PR #149176)

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

[clang] Ensure proper NULL macro definition for system include files. (PR #149176)

2025-07-17 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,15 @@ +// There are at least 2 valid C null-pointer constants as defined +// by the C language standard. +// Test that the macro NULL is defined consistently for all platforms by +// those headers that the C standard mandates a macro definition for NULL. + +// RUN: %cla

[clang] Ensure proper NULL macro definition for system include files. (PR #149176)

2025-07-17 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: I guess... if you think this is what's best for AIX, I'm not going to argue very hard about it, but I don't really want to entangle every other operating system in this. The current situation is mostly stable. What logic did you use to decide which

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-17 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 approved this pull request. https://github.com/llvm/llvm-project/pull/149294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-17 Thread Vassil Vassilev via cfe-commits
@@ -300,16 +640,17 @@ llvm::Expected Interpreter::ExtractValueFromExpr(Expr *E) { using namespace clang; // Temporary rvalue struct that need special care. -REPL_EXTERNAL_VISIBILITY void * +REPL_EXTERNAL_VISIBILITY extern "C" void * vgvassilev wrote: Exactly

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-07-17 Thread via cfe-commits
https://github.com/moorabbit updated https://github.com/llvm/llvm-project/pull/148281 >From 029d9fce6cdb75ea4819a107c7ed9f074bb36678 Mon Sep 17 00:00:00 2001 From: moorabbit <215698969+moorab...@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:25:46 -0400 Subject: [PATCH 1/2] [Clang] Add `__bu

[clang] [clang][bytecode] Fix const-in-mutable fields (PR #149286)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes For mutable and const fields, we have two bits in InlineDescriptor, which both get inherited down the hierarchy. When a field is both const and mutable, we CAN read from it if it is a mutable-in-const field,

[clang] [Clang] Reintroduce obsolete symbols in libclang.map (PR #149190)

2025-07-17 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#149287 https://github.com/llvm/llvm-project/pull/149190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-17 Thread Jacques Pienaar via cfe-commits
jpienaar wrote: Something like https://github.com/llvm/llvm-project/compare/main...jpienaar:llvm-project:cleanout?expand=1 https://github.com/llvm/llvm-project/pull/149148 ___ cfe-commits mailing list cfe-commits@l

[clang-tools-extra] Cleanout clang-tools-extra ReleaseNotes (PR #149306)

2025-07-17 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar created https://github.com/llvm/llvm-project/pull/149306 Move over change post 21.x branch cut. >From 8606cc1decb335c92f187ef5eb058f0bee5584ed Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Thu, 17 Jul 2025 13:13:31 + Subject: [PATCH] Cleanout clang-tools-

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-17 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar edited https://github.com/llvm/llvm-project/pull/149148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-17 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Something like > https://github.com/llvm/llvm-project/compare/main...jpienaar:llvm-project:cleanout?expand=1 Looks good, that must be the patch needed. https://github.com/llvm/llvm-project/pull/149148

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-17 Thread Tomohiro Kashiwada via cfe-commits
@@ -107,3 +110,294 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +static bool getStaticPIE(con

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-17 Thread Tomohiro Kashiwada via cfe-commits
@@ -107,3 +110,294 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +static bool getStaticPIE(con

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-17 Thread Tomohiro Kashiwada via cfe-commits
@@ -107,3 +110,294 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +static bool getStaticPIE(con

[clang] [Clang][Driver] Expose relocation model as multilib flags (PR #149132)

2025-07-17 Thread Victor Campos via cfe-commits
https://github.com/vhscampos approved this pull request. https://github.com/llvm/llvm-project/pull/149132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-17 Thread Tomohiro Kashiwada via cfe-commits
@@ -107,3 +110,294 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +static bool getStaticPIE(con

[clang] [Clang][Test] Add PS5 and WI cases to clang/test/Sema/dllexport.c (PR #148818)

2025-07-17 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/148818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Do not treat Foo -> const Foo conversion sequences as perfect" (PR #149272)

2025-07-17 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: /cherry-pick 28e1e7e https://github.com/llvm/llvm-project/pull/149272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-17 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/137828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Do not treat Foo -> const Foo conversion sequences as perfect" (PR #149272)

2025-07-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin milestoned https://github.com/llvm/llvm-project/pull/149272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a regression of annotating PointerOrReference (PR #149039)

2025-07-17 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/149039 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a regression of annotating PointerOrReference (PR #149039)

2025-07-17 Thread Björn Schäpers via cfe-commits
@@ -3122,6 +3122,9 @@ class AnnotatingParser { } } +if (PrevToken->isTypeName(LangOpts)) HazardyKnusperkeks wrote: Thanks. https://github.com/llvm/llvm-project/pull/149039 ___ cfe-commits mailing list

[clang] Improve clarity of the implicit declaration diagnostic (PR #149314)

2025-07-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/149314 The previous text was "implicitly declaring library function 'exp' with type 'double (double)'" which helpfully mentioned the type. However, it was also confusing because an implicit function declaration in

[clang] Improve clarity of the implicit declaration diagnostic (PR #149314)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Aaron Ballman (AaronBallman) Changes The previous text was "implicitly declaring library function 'exp' with type 'double (double)'" which helpfully mentioned the type. However, it was also confusing because an implicit fu

[clang] Improve clarity of the implicit declaration diagnostic (PR #149314)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes The previous text was "implicitly declaring library function 'exp' with type 'double (double)'" which helpfully mentioned the type. However, it was also confusing because an implicit function declaration

[clang] Improve clarity of the implicit declaration diagnostic (PR #149314)

2025-07-17 Thread Aaron Ballman via cfe-commits
@@ -22,7 +22,7 @@ void_typedef f2_helper(void); static void f2(void *buf) { F12_typedef* x; x = f2_helper(); - memcpy((&x[1]), (buf), 1); // expected-warning{{call to undeclared library function 'memcpy' with type 'void *(void *, const void *}} \ + memcpy((&x[1]), (buf),

[clang] Improve clarity of the implicit declaration diagnostic (PR #149314)

2025-07-17 Thread Aaron Ballman via cfe-commits
@@ -1,7 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -verify %s void f() { - int *ptr = malloc(sizeof(int) * 10); // expected-error{{call to undeclared library function 'malloc' with type}} \ + int *ptr = malloc(sizeof(int) * 10); // expected-error{{call

[clang-tools-extra] Cleanout clang-tools-extra ReleaseNotes (PR #149306)

2025-07-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM, Maybe better commit name will be "[clang-tools-extra] Bump ReleaseNotes to 22.0.0git" https://github.com/llvm/llvm-project/pull/149306 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [LinkerWrapper] Fix -fsave-optimization-record default file (PR #149003)

2025-07-17 Thread Joel E. Denny via cfe-commits
https://github.com/jdenny-ornl edited https://github.com/llvm/llvm-project/pull/149003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Morris Hafner via cfe-commits
@@ -22,15 +24,97 @@ struct LoweringPreparePass : public LoweringPrepareBase { void runOnOperation() override; void runOnOp(Operation *op); + void lowerArrayCtor(ArrayCtor op); }; } // namespace -void LoweringPreparePass::runOnOp(Operation *op) {} +void LoweringPrep

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-17 Thread Morris Hafner via cfe-commits
@@ -0,0 +1,70 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-llvm %s -o

[clang] Revert "[Clang] Do not treat Foo -> const Foo conversion sequences as perfect" (PR #149272)

2025-07-17 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#149328 https://github.com/llvm/llvm-project/pull/149272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] NEON intrinsic compilation error with -fno-lax-vector-conversion flag fix (PR #149329)

2025-07-17 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] [llvm] NEON intrinsic compilation error with -fno-lax-vector-conversion flag fix (PR #149329)

2025-07-17 Thread Amina Chabane via cfe-commits
https://github.com/Amichaxx created https://github.com/llvm/llvm-project/pull/149329 Issue originally raised in https://github.com/llvm/llvm-project/issues/71362#issuecomment-3028515618. Certain NEON intrinsics that operate on poly types (e.g. poly8x8_t) failed to compile with the -fno-lax-ve

[clang] [llvm] NEON intrinsic compilation error with -fno-lax-vector-conversion flag fix (PR #149329)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Amina Chabane (Amichaxx) Changes Issue originally raised in https://github.com/llvm/llvm-project/issues/71362#issuecomment-3028515618. Certain NEON intrinsics that operate on poly types (e.g. poly8x8_t) failed to compile with t

[clang] [llvm] [AArch64][NEON] NEON intrinsic compilation error with -fno-lax-vector-conversion flag fix (PR #149329)

2025-07-17 Thread Amina Chabane via cfe-commits
https://github.com/Amichaxx edited https://github.com/llvm/llvm-project/pull/149329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Diagnose dereferencing a null pointer (PR #149330)

2025-07-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/149330 None >From ccea1fcbd2a848e679bca4d75a67b51795b468c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Jul 2025 17:04:18 +0200 Subject: [PATCH] [clang][bytecode] Diagnose dereferencing

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-17 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/137828 >From 839198d61f9937b5504d5e036c67266b4b84da8e Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Thu, 17 Jul 2025 14:09:57 +0200 Subject: [PATCH 1/4] [Flang][Flang-RT][OpenMP] Move builtin .mod generation i

[clang] [clang][bytecode] Diagnose dereferencing a null pointer (PR #149330)

2025-07-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/149330.diff 7 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+3) - (modified) clang/lib/AST/ByteCode/Interp.h (+11) - (modifie

[clang] [HLSL][SPIR-V] Add support for HLSL semantics (PR #149363)

2025-07-17 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts created https://github.com/llvm/llvm-project/pull/149363 WIP PR for the WG-HLSL semantic proposal TODO: validate DXIL packing and SPIR-V location assignment. From 8eb96a452cacee0e2284b6466351758db2bf3a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?=

[clang] [Clang][AMDGPU] Add builtins for some buffer resource atomics (PR #149216)

2025-07-17 Thread via cfe-commits
https://github.com/zGoldthorpe updated https://github.com/llvm/llvm-project/pull/149216 >From c82bff38f45c65d8fbac77bd4ef3369a16b768d9 Mon Sep 17 00:00:00 2001 From: Zach Goldthorpe Date: Wed, 16 Jul 2025 17:45:04 -0500 Subject: [PATCH 1/2] Exposed some AMDGCN raw buffer atomic intrinsics to c

[clang] [analyzer] Support parenthesized list initialization (CXXParenListInitExpr) (PR #148988)

2025-07-17 Thread Balazs Benics via cfe-commits
@@ -4114,3 +4124,35 @@ void *ProgramStateTrait::GDMIndex() { } void ExprEngine::anchor() { } + +void ExprEngine::ConstructInitList(const Expr *E, ArrayRef Args, + bool IsTransparent, ExplodedNode *Pred, + Exp

[clang] [analyzer] Support parenthesized list initialization (CXXParenListInitExpr) (PR #148988)

2025-07-17 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/148988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   >