[clang] [llvm] [Clang][Unittest] Support for `target` directive and `from` clause in clang unittests (PR #150580)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amit Tiwari (amitamd7) Changes Added support for detecting OMP Target Directive and OMP From Clause in Clang Unit Test Framework --- Full diff: https://github.com/llvm/llvm-project/pull/150580.diff 4 Files Affected: - (modified) clang/

[clang] [llvm] [Clang][Unittest] Support for `target` directive and `from` clause in clang unittests (PR #150580)

2025-07-24 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] [Clang][Unittest] Support for `target` directive and `from` clause in clang unittests (PR #150580)

2025-07-24 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 created https://github.com/llvm/llvm-project/pull/150580 Added support for detecting OMP Target Directive and OMP From Clause in Clang Unit Test Framework >From 846d871783d572667cb8bdb954961f274e04702c Mon Sep 17 00:00:00 2001 From: amtiwari Date: Tue, 17 Jun 2025

[clang] [lanai] Add back the ability to set the memory model with --mcmodel. (PR #150575)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (petergrind3) Changes Sometimes between April 2023 and today the option disappeared. I wasn't able to trace when it went away through the different refactoring. --- Full diff: https://github.com/llvm/llvm-project/pull/150575.diff

[clang] [lanai] Add back the ability to set the memory model with --mcmodel. (PR #150575)

2025-07-24 Thread via cfe-commits
petergrind3 wrote: I did not see a way to add a test for this change. Please advice is there is, https://github.com/llvm/llvm-project/pull/150575 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [lanai] Add back the ability to set the memory model with --mcmodel. (PR #150575)

2025-07-24 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] [lanai] Add back the ability to set the memory model with --mcmodel. (PR #150575)

2025-07-24 Thread via cfe-commits
https://github.com/petergrind3 created https://github.com/llvm/llvm-project/pull/150575 Sometimes between April 2023 and today the option disappeared. I wasn't able to trace when it went away through the different refactoring. >From 20745528ddd459d2f77b677e3f22118d810e8741 Mon Sep 17 00:00:00

[clang] [OpenCL] Add decls for cl_intel_bfloat16_conversions (PR #150393)

2025-07-24 Thread Mészáros Gergely via cfe-commits
Maetveis wrote: ping @michalpaszkowski https://github.com/llvm/llvm-project/pull/150393 ___ 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-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang-tools-extra` at step 9 "test-build-unified-tree-check-clang-extra". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/337

[clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/150467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-24 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/149602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-24 Thread Owen Pan via cfe-commits
owenca wrote: > Style Guide has been updated internally. I don't know how long it takes to > make its way to the public site, so I'd like to proceed. I've pasted the > updated text into the commit description above. I still think we should wait until it becomes official. WDYT @mydeveloperday

[clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150467 >From d8e460ad55c4e2353ee507c5f03eb344a46353e3 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 10:16:42 -0700 Subject: [PATCH] [clang-doc] precommit test for function comments --- .../clang-d

[clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/150467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 2ca8cf9 - [clang-doc] remove nesting of text comments inside paragraphs (#150451)

2025-07-24 Thread via cfe-commits
Author: Erick Velez Date: 2025-07-24T19:49:54-07:00 New Revision: 2ca8cf922ff8f9498ae0f9def9dab9bf145c6653 URL: https://github.com/llvm/llvm-project/commit/2ca8cf922ff8f9498ae0f9def9dab9bf145c6653 DIFF: https://github.com/llvm/llvm-project/commit/2ca8cf922ff8f9498ae0f9def9dab9bf145c6653.diff L

[clang-tools-extra] [clang-doc] remove nesting of text comments inside paragraphs (PR #150451)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/150451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support resumable non-maskable interrupt handlers (PR #148134)

2025-07-24 Thread Sam Elliott via cfe-commits
@@ -75,6 +75,8 @@ def riscv_sret_glue : RVSDNode<"SRET_GLUE", SDTNone, [SDNPHasChain, SDNPOptInGlue]>; def riscv_mret_glue : RVSDNode<"MRET_GLUE", SDTNone, [SDNPHasChain, SDNPOptInGlue]>; +def riscv_mnret_glue : RVSD

[clang] [llvm] [RISCV] Support resumable non-maskable interrupt handlers (PR #148134)

2025-07-24 Thread Sam Elliott via cfe-commits
@@ -22259,6 +22260,10 @@ SDValue RISCVTargetLowering::LowerFormalArguments( reportFatalUsageError( "'SiFive-CLIC-*' interrupt kinds require XSfmclic extension"); +if (Kind == "rnmi" && !Subtarget.hasStdExtSmrnmi()) + reportFatalUsageError("Handling of

[clang] [llvm] [RISCV] Support resumable non-maskable interrupt handlers (PR #148134)

2025-07-24 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/148134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Fix crash while lazy-loading template specializations (PR #150430)

2025-07-24 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Thanks for looking into this. https://github.com/llvm/llvm-project/pull/150430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang-tools-extra] [clang-tidy] Added check 'bugprone-function-visibility-change' (PR #140086)

2025-07-24 Thread Endre Fülöp via cfe-commits
gamesh411 wrote: The overall check implementation looks great. Once the name is settled, it is ready IMO. https://github.com/llvm/llvm-project/pull/140086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 edited https://github.com/llvm/llvm-project/pull/150417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 updated https://github.com/llvm/llvm-project/pull/150417 From 0630d81e544319a1a18798996760775d4a13f7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Thu, 24 Jul 2025 14:49:14 +0200 Subject: [PATCH 1/2] [clang][analyzer] Add StoreToImmutabl

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 edited https://github.com/llvm/llvm-project/pull/150417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,146 @@ +//=== StoreToImmutableChecker.cpp - Store to immutable memory checker -*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identi

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-24 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-24 Thread Thurston Dang via cfe-commits
@@ -2595,6 +2595,16 @@ def fsanitize_undefined_trap_on_error def fno_sanitize_undefined_trap_on_error : Flag<["-"], "fno-sanitize-undefined-trap-on-error">, Group, Alias, AliasArgs<["undefined"]>; +defm sanitize_annotate_debug_info_traps +: BoolFOption< +

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,166 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.core.StoreToImmutable -verify %s + +// Test basic functionality of StoreToImmutable checker +// This tests direct writes to immutable regions without function modeling + +// Direct write to a const global varia

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

2025-07-24 Thread via cfe-commits
jeremyd2019 wrote: I made a quick test and I'm seeing `_ZdlPvm` being used for `operator delete` and that is not being wrapped. That may need to be wrapped too, because it calls `__wrap__Znwm` which calls `default_cygwin_cxx_malloc`, but `_ZdlPvm` which is the version from libc++.dll. https:

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

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

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-07-24 Thread Maksim Ivanov via cfe-commits
https://github.com/emaxx-google closed https://github.com/llvm/llvm-project/pull/140498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5199489 - [clangd] Improve Markup Rendering (#140498)

2025-07-24 Thread via cfe-commits
Author: tcottin Date: 2025-07-25T02:45:56+02:00 New Revision: 51994891e3a28a999e30a915d9ac5c2102073576 URL: https://github.com/llvm/llvm-project/commit/51994891e3a28a999e30a915d9ac5c2102073576 DIFF: https://github.com/llvm/llvm-project/commit/51994891e3a28a999e30a915d9ac5c2102073576.diff LOG:

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

2025-07-24 Thread via cfe-commits
jeremyd2019 wrote: I was thinking that `-u` wouldn't do anything useful (and I'm still thinking that), but I just had a thought about why you might think it's necessary (or, why it might not work as expected). `--wrap` renames the definition to `__real_X` and references to `__wrap_X`. If lib

[clang] [CIR] Add proper handling for no prototype function calls (PR #150553)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This adds standard-comforming handling for calls to functions that were declared in C source in the no prototype form. --- Patch is 22.53 KiB, truncated to 20.00 KiB below, full version: https://github

[clang] [CIR] Add proper handling for no prototype function calls (PR #150553)

2025-07-24 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/150553 This adds standard-comforming handling for calls to functions that were declared in C source in the no prototype form. >From 77391e361f5c40baca8974dce31d3d007ac97c4f Mon Sep 17 00:00:00 2001 From: Andy Kaylo

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-24 Thread Dan Liew via cfe-commits
delcypher wrote: @anthonyhatran Oh and don't forget about https://github.com/llvm/llvm-project/pull/145967#discussion_r2229499715 as well. https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-24 Thread Dan Liew via cfe-commits
https://github.com/delcypher approved this pull request. LGTM. Let's wait for @thurstond to respond regarding the flag name. https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,146 @@ +//=== StoreToImmutableChecker.cpp - Store to immutable memory checker -*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identi

[clang] [llvm] Implement `preserve_none` for 32-bit x86 (PR #150106)

2025-07-24 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: LGTM, but I'd like a second set of eyes on this. https://github.com/llvm/llvm-project/pull/150106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

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

2025-07-24 Thread via cfe-commits
tyan0 wrote: > I mean many parts of `check-cxx` crash. `cygc++-1.dll` indeed exports `_Znwm`. I see. _Znwm etc. are mangled name for `new` and `delete`. ``` _Znwm: operator new _Znam: operator new[] _ZdlPv: operator delete _ZdaPv: operator delete[] _ZnwmRKSt9nothrow_t: operator new(std::nothrow)

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-24 Thread Dan Liew via cfe-commits
@@ -2595,6 +2595,16 @@ def fsanitize_undefined_trap_on_error def fno_sanitize_undefined_trap_on_error : Flag<["-"], "fno-sanitize-undefined-trap-on-error">, Group, Alias, AliasArgs<["undefined"]>; +defm sanitize_annotate_debug_info_traps +: BoolFOption< +

[clang] [Clang] Fix a partial ordering bug involving CTAD injected template arguments (PR #149782)

2025-07-24 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Yeah, the PR description says so. https://github.com/llvm/llvm-project/pull/149782 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-24 Thread Thurston Dang via cfe-commits
@@ -2595,6 +2595,16 @@ def fsanitize_undefined_trap_on_error def fno_sanitize_undefined_trap_on_error : Flag<["-"], "fno-sanitize-undefined-trap-on-error">, Group, Alias, AliasArgs<["undefined"]>; +defm sanitize_annotate_debug_info_traps +: BoolFOption< +

[clang] [llvm] [AMDGPU] Support builtin/intrinsics for load monitors on gfx1250 (PR #150540)

2025-07-24 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec approved this pull request. https://github.com/llvm/llvm-project/pull/150540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-24 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/148914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -218,6 +221,64 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_ref_null_func); return Builder.CreateCall(Callee); } + case WebAssembly::BI__builtin_wasm_test_function_pointer_signature:

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -218,6 +221,64 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_ref_null_func); return Builder.CreateCall(Callee); } + case WebAssembly::BI__builtin_wasm_test_function_pointer_signature:

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -227,6 +227,53 @@ bool SemaWasm::BuiltinWasmTableCopy(CallExpr *TheCall) { return false; } +bool SemaWasm::BuiltinWasmTestFunctionPointerSignature(CallExpr *TheCall) { + if (SemaRef.checkArgCount(TheCall, 1)) +return true; + + Expr *FuncPtrArg = TheCall->getArg(0);

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -218,6 +221,64 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_ref_null_func); return Builder.CreateCall(Callee); } + case WebAssembly::BI__builtin_wasm_test_function_pointer_signature:

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan closed https://github.com/llvm/llvm-project/pull/150504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] efe1aa8 - Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (#150504)

2025-07-24 Thread via cfe-commits
Author: Kiran Chandramohan Date: 2025-07-24T21:54:26+01:00 New Revision: efe1aa8904ea3ad8b19ab2aa5660e27a08c7d694 URL: https://github.com/llvm/llvm-project/commit/efe1aa8904ea3ad8b19ab2aa5660e27a08c7d694 DIFF: https://github.com/llvm/llvm-project/commit/efe1aa8904ea3ad8b19ab2aa5660e27a08c7d694.

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Deric C. via cfe-commits
https://github.com/Icohedron closed https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ed9a102 - [HLSL] Avoid putting the byval attribute on out and inout parameters (#150495)

2025-07-24 Thread via cfe-commits
Author: Deric C. Date: 2025-07-24T13:54:00-07:00 New Revision: ed9a1027a482d18b3cf063e8bcc6e31a4c7dc024 URL: https://github.com/llvm/llvm-project/commit/ed9a1027a482d18b3cf063e8bcc6e31a4c7dc024 DIFF: https://github.com/llvm/llvm-project/commit/ed9a1027a482d18b3cf063e8bcc6e31a4c7dc024.diff LOG:

[clang] [CIR] Upstream proper function alias lowering (PR #150520)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This change implements correct lowering of function aliases to the LLVM dialect. --- Full diff: https://github.com/llvm/llvm-project/pull/150520.diff 4 Files Affected: - (modified) clang/lib/CIR/Lowering

[clang] [CIR] Upstream proper function alias lowering (PR #150520)

2025-07-24 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/150520 This change implements correct lowering of function aliases to the LLVM dialect. >From 88039a468792435666e3026b5bf42ad31405d332 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 24 Jul 2025 13:14:35 -070

[clang] 1031f14 - [CIR] Implement CK_LValueToRValueBitCast for ComplexType (#150296)

2025-07-24 Thread via cfe-commits
Author: Amr Hesham Date: 2025-07-24T22:23:30+02:00 New Revision: 1031f14e921ad54ca17333f59cb19a981f864d95 URL: https://github.com/llvm/llvm-project/commit/1031f14e921ad54ca17333f59cb19a981f864d95 DIFF: https://github.com/llvm/llvm-project/commit/1031f14e921ad54ca17333f59cb19a981f864d95.diff LO

[clang] [CIR] Implement CK_LValueToRValueBitCast for ComplexType (PR #150296)

2025-07-24 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/150296 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang,flang,mlir` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/bui

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Sarah Spall via cfe-commits
@@ -2852,20 +2852,28 @@ void CodeGenModule::ConstructAttributeList(StringRef Name, if (AI.getInReg()) Attrs.addAttribute(llvm::Attribute::InReg); - // Depending on the ABI, this may be either a byval or a dead_on_return - // argument. - if (AI.get

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Sarah Spall via cfe-commits
https://github.com/spall approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-24 Thread via cfe-commits
@@ -12908,6 +12908,14 @@ def err_sycl_special_type_num_init_method : Error< "types with 'sycl_special_class' attribute must have one and only one '__init' " "method defined">; +// SYCL external attribute diagnostics +def err_sycl_attribute_invalid_linkage : Error< + "'sy

[clang-tools-extra] [clang-tidy] Add parallel execution by default in 'run-clang-tidy' and 'clang-tidy-diff' (PR #149739)

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

[clang-tools-extra] 46e1d3d - [clang-tidy] Add parallel execution by default in 'run-clang-tidy' and 'clang-tidy-diff' (#149739)

2025-07-24 Thread via cfe-commits
Author: Baranov Victor Date: 2025-07-24T23:03:17+03:00 New Revision: 46e1d3d2a4394b805428111043d73aab309f44f0 URL: https://github.com/llvm/llvm-project/commit/46e1d3d2a4394b805428111043d73aab309f44f0 DIFF: https://github.com/llvm/llvm-project/commit/46e1d3d2a4394b805428111043d73aab309f44f0.diff

[clang-tools-extra] [clang-tidy] Add parallel execution by default in 'run-clang-tidy' and 'clang-tidy-diff' (PR #149739)

2025-07-24 Thread Baranov Victor via cfe-commits
vbvictor wrote: I will make the renaming on the next PR. https://github.com/llvm/llvm-project/pull/149739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan updated https://github.com/llvm/llvm-project/pull/150504 >From 32c9e86d027efc84ba696a38ef626ae04d306ec0 Mon Sep 17 00:00:00 2001 From: Kiran Chandramohan Date: Thu, 24 Jul 2025 20:33:43 +0100 Subject: [PATCH] Revert "[flang][flang-driver][mlir][OpenMP] atomi

[clang] [clang][driver] Improve warning message for complex range overrides and GCC incompatibility (PR #149028)

2025-07-24 Thread Andy Kaylor via cfe-commits
andykaylor wrote: I'm not sure the combined warning is necessary. I think just stating that the clang option overrides the GCC option is sufficient since there is no sense in which clang-specific options can be incompatible with GCC if GCC doesn't implement the option. I think we're all in ag

[clang-tools-extra] [clang-tidy] modernize-use-std-print, format: Fix checks with Abseil functions (PR #142312)

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

[clang-tools-extra] 60bf979 - [clang-tidy] modernize-use-std-print,format: Fix checks with Abseil functions (#142312)

2025-07-24 Thread via cfe-commits
Author: Mike Crowe Date: 2025-07-24T22:40:41+03:00 New Revision: 60bf97983df3efeb17f6db19b811b68fa74df9aa URL: https://github.com/llvm/llvm-project/commit/60bf97983df3efeb17f6db19b811b68fa74df9aa DIFF: https://github.com/llvm/llvm-project/commit/60bf97983df3efeb17f6db19b811b68fa74df9aa.diff LO

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Anchu Rajendran S via cfe-commits
anchuraj wrote: Thank you for the revert. I was away and couldn't revert it. Will take a look when I am back. https://github.com/llvm/llvm-project/pull/150504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-24 Thread Richard Smith via cfe-commits
@@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -triple amdgcn -cl-std=clc++ -verify %s + +// expected-no-diagnostics + +#define fold(x) (__builtin_constant_p(x) ? (x) : (x)) +static_assert(nullptr != fold(reinterpret_cast(0))); + +static_assert(nullptr == (private int *)0); + ---

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Joshua Batista via cfe-commits
bob80905 wrote: Looked over the DXC codebase and didn't find any hits on deadonreturn, so yeah I think such a test wouldn't make sense. But, then, wouldn't this be a better approach? ``` // Depending on the ABI, this may be either a byval or a dead_on_return // argument.

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Peter Klausler via cfe-commits
klausler wrote: Reversion might be overkill. Maybe the test can just be disabled with an `!XFAIL: *` or similar until the author can fix it up. https://github.com/llvm/llvm-project/pull/150504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [llvm] [AMDGPU] Select VMEM prefetch for llvm.prefetch on gfx1250 (PR #150493)

2025-07-24 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/150493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj approved this pull request. https://github.com/llvm/llvm-project/pull/150504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir Author: Kiran Chandramohan (kiranchandramohan) Changes Reverts llvm/llvm-project#143441 Reverting due to CI failure https://lab.llvm.org/buildbot/#/builders/53/builds/18055. --- Full diff: https://github.com/llvm/llvm-project/pull/1505

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Kiran Chandramohan (kiranchandramohan) Changes Reverts llvm/llvm-project#143441 Reverting due to CI failure https://lab.llvm.org/buildbot/#/builders/53/builds/18055. --- Full diff: https://github.com/llvm/llvm-project/pull/150504.

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/150504 Reverts llvm/llvm-project#143441 Reverting due to CI failure https://lab.llvm.org/buildbot/#/builders/53/builds/18055. >From 32c9e86d027efc84ba696a38ef626ae04d306ec0 Mon Sep 17 00:00:00 2001 From: Ki

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

2025-07-24 Thread Peter Klausler via cfe-commits
klausler wrote: llvm-project/main fails to build on x86-64 Linux: ``` Testing: FAIL: Flang :: Lower/OpenMP/atomic-control-options.f90 (1 of 3701) TEST 'Flang :: Lower/OpenMP/atomic-control-options.f90' FAILED Exit Code: 2 Command Output (stderr): -- /h

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Deric C. via cfe-commits
https://github.com/Icohedron edited https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb-dap] Add performance optimization options to improve launch times (PR #150365)

2025-07-24 Thread Cả thế giới là Rust via cfe-commits
https://github.com/naoNao89 updated https://github.com/llvm/llvm-project/pull/150365 From 2d9ae771247af025d6319c044e9f8727e9bebfd8 Mon Sep 17 00:00:00 2001 From: naoNao89 <90588855+naona...@users.noreply.github.com> Date: Wed, 23 Jul 2025 20:54:02 +0700 Subject: [PATCH 1/4] [clang][StaticAnalyze

[clang] [CIR] Unblock destructor alias handling (PR #150497)

2025-07-24 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/150497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7dc2726 - [CIR] Unblock destructor alias handling (#150497)

2025-07-24 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-07-24T12:18:52-07:00 New Revision: 7dc27267eb7ef53638c2fc46ba70dfad182ec45c URL: https://github.com/llvm/llvm-project/commit/7dc27267eb7ef53638c2fc46ba70dfad182ec45c DIFF: https://github.com/llvm/llvm-project/commit/7dc27267eb7ef53638c2fc46ba70dfad182ec45c.diff L

[clang] [llvm] Fixes to unblock building LLVM and Clang as Arm64EC (PR #150068)

2025-07-24 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. Not sure if we want to wait on the upstream review in google/benchmark? Otherwise LGTM. https://github.com/llvm/llvm-project/pull/150068 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Thomas Lively via cfe-commits
@@ -199,6 +199,12 @@ TARGET_BUILTIN(__builtin_wasm_ref_is_null_extern, "ii", "nct", "reference-types" // return type. TARGET_BUILTIN(__builtin_wasm_ref_null_func, "i", "nct", "reference-types") +// Check if the runtime type of a function pointer matches its static type. Used

[clang] [llvm] [AMDGPU] Select VMEM prefetch for llvm.prefetch on gfx1250 (PR #150493)

2025-07-24 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec edited https://github.com/llvm/llvm-project/pull/150493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] gfx1250 vmem prefetch target intrinsics and builtins (PR #150466)

2025-07-24 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/150466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9deb7f6 - [AMDGPU] gfx1250 vmem prefetch target intrinsics and builtins (#150466)

2025-07-24 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-07-24T12:13:59-07:00 New Revision: 9deb7f6062ce7a58c2f43c6c0fec869f9f0c7fc2 URL: https://github.com/llvm/llvm-project/commit/9deb7f6062ce7a58c2f43c6c0fec869f9f0c7fc2 DIFF: https://github.com/llvm/llvm-project/commit/9deb7f6062ce7a58c2f43c6c0fec869f9f0c7f

[clang] [CIR] Add support for array cleanups (PR #150499)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds support for array cleanups, including the ArrayDtor op. --- Patch is 20.81 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/150499.diff 8 Files Affect

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

2025-07-24 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez updated https://github.com/llvm/llvm-project/pull/137665 From a701cd52fb572fb3b0f1f2f6dd96f77db632d2ea 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/5] Pre-commit test: [Pr

[clang] [llvm] Fixes to unblock building LLVM and Clang as Arm64EC (PR #150068)

2025-07-24 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/150068 >From 8e6ec9a09cda6ffdbfd91250fae186ba8585dbf4 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Tue, 22 Jul 2025 10:17:02 -0700 Subject: [PATCH] Fixes to unblock building LLVM and Clang as Arm64EC ---

[clang] [HLSL] Avoid putting ByVal on out and inout parameters (PR #150495)

2025-07-24 Thread Deric C. via cfe-commits
Icohedron wrote: > Is it worth adding a test that would have added DeadOnReturn attribute, but > now doesn't? Or is that covered by plenty of other tests currently? I don't know in what cases a DeadOnReturn attribute would be added in HLSL, so I'm not sure how to write a test for that. https:

[clang] [CIR] Add support for array cleanups (PR #150499)

2025-07-24 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/150499 This adds support for array cleanups, including the ArrayDtor op. >From 13c8a3d27a92808485ed594d7f4f57c3597ee884 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 23 Jul 2025 11:56:44 -0700 Subject: [PAT

[clang] [HLSL] Avoid putting ByVal on out and inout parameters (PR #150495)

2025-07-24 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 commented: Is it worth adding a test that would have added DeadOnReturn attribute, but now doesn't? Or is that covered by plenty of other tests currently? https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mai

[clang] [llvm] Fixes to unblock building LLVM and Clang as Arm64EC (PR #150068)

2025-07-24 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello edited https://github.com/llvm/llvm-project/pull/150068 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Fixes to unblock building LLVM and Clang as Arm64EC (PR #150068)

2025-07-24 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/150068 >From 7c573fb412a0701e7e5573d989c42ff14d906129 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Tue, 22 Jul 2025 10:17:02 -0700 Subject: [PATCH] Fixes to unblock building LLVM and Clang as Arm64EC ---

[clang] [llvm] Fixes to unblock building LLVM and Clang as Arm64EC (PR #150068)

2025-07-24 Thread Daniel Paoliello via cfe-commits
dpaoliello wrote: > ``` > -DCMAKE_EXE_LINKER_FLAGS="-Xlinker /MACHINE:ARM64EC" > -DCMAKE_SHARED_LINKER_FLAGS="-Xlinker /MACHINE:ARM64EC" > ``` > > Does clang not pick the right MACHINE automatically? I thought we had code > for that. Trying it out now, it looks like it is working fine without

[clang] [llvm] Fixes to unblock building LLVM and Clang as Arm64EC (PR #150068)

2025-07-24 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/150068 >From 0231022256d5e600853bec6a511f413a011801a6 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Tue, 22 Jul 2025 10:17:02 -0700 Subject: [PATCH] Fixes to unblock building LLVM and Clang as Arm64EC ---

  1   2   3   4   5   >