[clang] 6030416 - [C++20] [Modules] Add the abbrev number for coro-await-elidable calls

2025-09-04 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-09-05T14:58:05+08:00 New Revision: 60304161ce44c25dec7b87dd6a593d09eea5545a URL: https://github.com/llvm/llvm-project/commit/60304161ce44c25dec7b87dd6a593d09eea5545a DIFF: https://github.com/llvm/llvm-project/commit/60304161ce44c25dec7b87dd6a593d09eea5545a.diff LO

[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)

2025-09-04 Thread Chuanqi Xu via cfe-commits
@@ -2107,6 +2107,8 @@ void ASTDeclMerger::MergeDefinitionData( auto *Def = DD.Definition; DD = std::move(MergeDD); DD.Definition = Def; +for (auto *TD : Def->redecls()) ChuanqiXu9 wrote: Oh, I misremembered it. It'll be good to add a such API.

[clang] [C++20][Modules] Add a test for field info assertion failure. (PR #155948)

2025-09-04 Thread Michael Park via cfe-commits
mpark wrote: > I think we need to merge it. Why do you think we don't need to merge it? oh goodness... I only just realized now that you meant that the decls should be merged. At the time I thought you were saying we should merge the PR 😂 https://github.com/llvm/llvm-project/pull/155948 __

[clang] [flang] [Driver][LoongArch] Enable linker relaxation by default for loongarch64 (PR #156315)

2025-09-04 Thread via cfe-commits
https://github.com/zhaoqi5 closed https://github.com/llvm/llvm-project/pull/156315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0d490ae - [clang] fix definition data not being propagated to all redecls (#157019)

2025-09-04 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-09-05T03:36:57-03:00 New Revision: 0d490ae55f3ef60c3b9c18873567eeef47be30ed URL: https://github.com/llvm/llvm-project/commit/0d490ae55f3ef60c3b9c18873567eeef47be30ed DIFF: https://github.com/llvm/llvm-project/commit/0d490ae55f3ef60c3b9c18873567eeef47be30ed.dif

[clang] [flang] [Driver][LoongArch] Enable linker relaxation by default for loongarch64 (PR #156315)

2025-09-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang,flang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/21106 Here is the relevant

[clang-tools-extra] [clangd] [C++20 Modules] Try to use prebuilt modules (PR #155360)

2025-09-04 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/155360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)

2025-09-04 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/157019 >From c086682815e47b4fb863bb475eb5b02156aa6172 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 1 Sep 2025 17:14:19 -0300 Subject: [PATCH] [clang] fix definition data not being propagated to all redec

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-04 Thread Vassil Vassilev via cfe-commits
@@ -115,31 +116,60 @@ class Interpreter { /// An optional compiler instance for CUDA offloading std::unique_ptr DeviceCI; +public: + struct OutOfProcessJITConfig { +/// Indicates whether out-of-process JIT execution is enabled. +bool IsOutOfProcess; +/// Path

[clang] a4f4d5e - [Driver][LoongArch] Enable linker relaxation by default for loongarch64 (#156315)

2025-09-04 Thread via cfe-commits
Author: ZhaoQi Date: 2025-09-05T14:14:21+08:00 New Revision: a4f4d5ed94cb2cf8082d02f0b39d08fd5ccb33ba URL: https://github.com/llvm/llvm-project/commit/a4f4d5ed94cb2cf8082d02f0b39d08fd5ccb33ba DIFF: https://github.com/llvm/llvm-project/commit/a4f4d5ed94cb2cf8082d02f0b39d08fd5ccb33ba.diff LOG: [

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-04 Thread Vassil Vassilev via cfe-commits
@@ -521,6 +618,23 @@ llvm::Error Interpreter::CreateExecutor() { return llvm::make_error("Operation failed. " "No code generator available", std::error_code()); +#ifndef _WIN32 ---

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Urvi Rav (ravurvi20) Changes This patch updates the parsing changes to handle the new syntax of the `uses_allocators` clause as defined in OpenMP 5.2(Section 6.8). ``` // Case 1: Allocator without traits // < 5.2 → error // ≥ 5.2 → OK, e

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-04 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/157025 >From 1efc6c0d9418d5aa4299595b5008b4b580e556b1 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 4 Sep 2025 04:47:06 -0500 Subject: [PATCH 1/2] Implement new syntax for uses_allocators clause --- .../clang/

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-04 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 created https://github.com/llvm/llvm-project/pull/157025 This patch updates the parsing changes to handle the new syntax of the `uses_allocators` clause as defined in OpenMP 5.2(Section 6.8). ``` // Case 1: Allocator without traits // < 5.2 → error // ≥ 5.2 → OK,

[clang] [clang][CodeComplete] Omit ExplicitObject when completing code (PR #92743)

2025-09-04 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/92743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix typo in comment (PR #156962)

2025-09-04 Thread via cfe-commits
https://github.com/benwu25 updated https://github.com/llvm/llvm-project/pull/156962 >From be9d9a9cddb5cd1a2cb40017fdbd93d53c09a310 Mon Sep 17 00:00:00 2001 From: benwu25 Date: Thu, 4 Sep 2025 13:17:58 -0700 Subject: [PATCH] [clang] Fix typo in comment --- clang/lib/Basic/Builtins.cpp | 2 +-

[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)

2025-09-04 Thread Chuanqi Xu via cfe-commits
@@ -2107,6 +2107,8 @@ void ASTDeclMerger::MergeDefinitionData( auto *Def = DD.Definition; DD = std::move(MergeDD); DD.Definition = Def; +for (auto *TD : Def->redecls()) ChuanqiXu9 wrote: I am not sure if we should use `noload_redecls()` since r

[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)

2025-09-04 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. The change itself looks good and makes sense. https://github.com/llvm/llvm-project/pull/157019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [llvm] [RISCV] Remove experimental from Zicfilp and Zicfiss (PR #157015)

2025-09-04 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/157015 >From 930c01ca71be448e290de81e47bb36cc3ca19795 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Tue, 2 Sep 2025 14:52:44 +0800 Subject: [PATCH 1/2] [RISCV] Remove experimental from Zicfilp and Zicfiss These extens

[clang] [llvm] [RISCV] Implement MC support for Zvfofp8min extension (PR #157014)

2025-09-04 Thread Jim Lin via cfe-commits
https://github.com/tclin914 created https://github.com/llvm/llvm-project/pull/157014 This patch adds MC support for Zvfofp8min https://github.com/aswaterman/riscv-misc/blob/main/isa/zvfofp8min.adoc. >From 721e751af29178cbff29a21af9dec5b33254eecd Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Fri

[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)

2025-09-04 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/157019 This fixes the workaround added in 8a63989, so that when a fake definition data is corrected, all redeclarations are also updated to point to it. Since this regression was never released, there are no release

[clang] [Driver] Enable outline atomics for Haiku and Managarm aarch64 (PR #156299)

2025-09-04 Thread Brad Smith via cfe-commits
brad0 wrote: cc @no92 https://github.com/llvm/llvm-project/pull/156299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-04 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-04 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-04 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= S

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-04 Thread Arjun Ramesh via cfe-commits
@@ -199,6 +199,7 @@ class Triple { SUSE, OpenEmbedded, Intel, +WALI, arjunr2 wrote: @aheejin `cfg` is how feature gating based on targets is performed at Rust. This is fully independent of the LLVM target backend, so we can make the host envi

[clang] [llvm] [RISCV] Remove experimental from Zicfilp and Zicfiss (PR #157015)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes These extensions were ratified in June 2024. --- Patch is 27.74 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/157015.diff 23 Files Affected: - (modified)

[clang] [clang][bytecode] Print 8 bit integers as 32 bit in Function::dump() (PR #156858)

2025-09-04 Thread Timm Baeder via cfe-commits
tbaederr wrote: This only changes debugging output so there are no tests for it. https://github.com/llvm/llvm-project/pull/156858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Remove experimental from Zicfilp and Zicfiss (PR #157015)

2025-09-04 Thread Jim Lin via cfe-commits
https://github.com/tclin914 created https://github.com/llvm/llvm-project/pull/157015 These extensions were ratified in June 2024. >From 930c01ca71be448e290de81e47bb36cc3ca19795 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Tue, 2 Sep 2025 14:52:44 +0800 Subject: [PATCH] [RISCV] Remove experimen

[clang] [RISCV] Implement Clang Builtins for XCVmac Extension in CV32E40P (PR #110623)

2025-09-04 Thread Qihan Cai via cfe-commits
https://github.com/realqhc updated https://github.com/llvm/llvm-project/pull/110623 >From 890fea1216ca40a1d591723c8e2c30524772e8fa Mon Sep 17 00:00:00 2001 From: Qihan Cai Date: Tue, 1 Oct 2024 12:14:15 +1000 Subject: [PATCH 1/4] [RISCV] Implement Clang Builtins for XCVmac Extension in CV32E40

[clang] Fix incorrect array initialization with string literal (fixes #112189) (PR #156846)

2025-09-04 Thread via cfe-commits
awson wrote: Hmm, now one test is failing, namely [these aren't warnings anymore](https://github.com/llvm/llvm-project/blob/ffbd6162103041697ce7387029f321d3a466ca34/clang/test/Sema/string-concat.c#L49-L50). I have absolutely no idea how to approach this. https://github.com/llvm/llvm-project/pu

[libclc] [libclc] Replace _CLC_V_V_VP_VECTORIZE macro with use of unary_def_with_ptr_scalarize.inc (PR #157002)

2025-09-04 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/157002 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix incorrect array initialization with string literal (fixes #112189) (PR #156846)

2025-09-04 Thread via cfe-commits
https://github.com/awson edited https://github.com/llvm/llvm-project/pull/156846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-shlib] Fix linking libclang-cpp on Haiku (PR #156401)

2025-09-04 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/156401 >From 2f560a0209bc69546beb0709bb80f4824647d6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 1 Sep 2025 23:26:14 -0400 Subject: [PATCH] [clang-shlib] Fix linking libclang-cpp on Ha

[libclc] [libclc] Override generic symbol using llvm-link --override flag instead of using weak linkage (PR #156778)

2025-09-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. Nice find, thanks. It might mean it's harder to move away from using LLVM tools (like `llvm-link`) and towards something more like the other runtimes libraries do (using clang), though. I don't know if that's on the roadmap or not. ht

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-04 Thread Abhinav Kumar via cfe-commits
@@ -115,31 +116,60 @@ class Interpreter { /// An optional compiler instance for CUDA offloading std::unique_ptr DeviceCI; +public: + struct OutOfProcessJITConfig { +/// Indicates whether out-of-process JIT execution is enabled. +bool IsOutOfProcess; +/// Path

[clang] [Clang] Add template argument support for {con,de}structor attributes. (PR #151400)

2025-09-04 Thread via cfe-commits
https://github.com/tynasello updated https://github.com/llvm/llvm-project/pull/151400 >From e7c6ad6a7642c90414da78073c29695fe5ea036f Mon Sep 17 00:00:00 2001 From: tynasello Date: Tue, 29 Jul 2025 23:41:09 + Subject: [PATCH 1/5] [Clang] Add template argument support for {con,de}structor at

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-04 Thread Abhinav Kumar via cfe-commits
@@ -115,31 +116,60 @@ class Interpreter { /// An optional compiler instance for CUDA offloading std::unique_ptr DeviceCI; +public: + struct OutOfProcessJITConfig { +/// Indicates whether out-of-process JIT execution is enabled. +bool IsOutOfProcess; --

[clang] [Clang] Add template argument support for {con,de}structor attributes. (PR #151400)

2025-09-04 Thread via cfe-commits
https://github.com/tynasello updated https://github.com/llvm/llvm-project/pull/151400 >From e7c6ad6a7642c90414da78073c29695fe5ea036f Mon Sep 17 00:00:00 2001 From: tynasello Date: Tue, 29 Jul 2025 23:41:09 + Subject: [PATCH 1/5] [Clang] Add template argument support for {con,de}structor at

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Jeremy Kun via cfe-commits
j2kun wrote: Maybe "spot check" instead of "sanity check", though "spot" is not a replacement for "sanity" generally https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [Clang] Support includes translated to module imports in -header-include-filtering=direct-per-file (PR #156756)

2025-09-04 Thread Sina Mahdavi via cfe-commits
https://github.com/sina-mahdavi updated https://github.com/llvm/llvm-project/pull/156756 >From 8ab5647fc5c51b42bb67ca46a063fa9815ea46f4 Mon Sep 17 00:00:00 2001 From: Sina Mahdavi Date: Wed, 3 Sep 2025 14:17:27 -0700 Subject: [PATCH 1/3] [Clang] Support includes translated to module imports in

[clang] 83da177 - [CIR] Add support for delegating constructor initialization (#156757)

2025-09-04 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-09-04T14:00:31-07:00 New Revision: 83da177dba86eece8b19d55857ad842f92ced30e URL: https://github.com/llvm/llvm-project/commit/83da177dba86eece8b19d55857ad842f92ced30e DIFF: https://github.com/llvm/llvm-project/commit/83da177dba86eece8b19d55857ad842f92ced30e.diff L

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] Fix typos and spelling errors across codebase (PR #156270)

2025-09-04 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. clang-tools-extra/clang-tidy part LGTM https://github.com/llvm/llvm-project/pull/156270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-09-04 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,972 @@ +//===--- UseConstexprCheck.cpp - clang-tidy===// +// +// 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] [clang][bytecode] Print 8 bit integers as 32 bit in Function::dump() (PR #156858)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I am a surprised there are not changed tests nor additional test given the problem description. It would seem we are avoiding output in a specific format. We should have a test in which the output would differ w/o this change. https://github.com/llvm/llvm-

[clang] [clang][bytecode] Reject final ltor casts on string literals (PR #156669)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
shafik wrote: What is an Itor cast? https://github.com/llvm/llvm-project/pull/156669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-04 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: I worry that sound specifically may be interpreted as to do with soundness as in correctness, given thats the term used to talk about the correctness of compiler transformations https://github.com/llvm/llvm-project/pull/156995 ___ cfe-c

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-04 Thread Arjun Ramesh via cfe-commits
@@ -199,6 +199,7 @@ class Triple { SUSE, OpenEmbedded, Intel, +WALI, arjunr2 wrote: I think for consistency it makes sense to have it described as a vendor here as well. It should be a simple to update the target later if necessary. https://g

[clang] [CIR] Add support for delegating constructors with VTT args (PR #156970)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds support for handling delegating constructors with VTT arguments. --- Full diff: https://github.com/llvm/llvm-project/pull/156970.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGen

[clang] [CIR] Add support for delegating constructors with VTT args (PR #156970)

2025-09-04 Thread Morris Hafner via cfe-commits
@@ -70,3 +70,266 @@ DelegatingWithZeroing::DelegatingWithZeroing(int) : DelegatingWithZeroing() {} // OGCG: store i32 %[[I_ARG]], ptr %[[I_ADDR]] // OGCG: %[[THIS:.*]] = load ptr, ptr %[[THIS_ADDR]] // OGCG: call void @llvm.memset.p0.i64(ptr align 4 %[[THIS]], i8 0, i64

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

2025-09-04 Thread Anatoly Trosinenko via cfe-commits
@@ -4652,6 +4659,7 @@ llvm::Constant *CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) { "", Resolver, &getModule()); GIF->setName(ResolverName); SetCommonAttributes(FD, GIF); +SetResolverAttrs(cast(Resolver)); ---

[clang] [CIR] Fix Complex emit promotion for Div op (PR #156963)

2025-09-04 Thread Andy Kaylor via cfe-commits
@@ -749,6 +749,7 @@ mlir::Value ComplexExprEmitter::emitPromoted(const Expr *e, HANDLE_BINOP(Add) HANDLE_BINOP(Sub) HANDLE_BINOP(Mul) + HANDLE_BINOP(Div) andykaylor wrote: I don't understand what this is doing. The test you added compile

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-04 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 edited https://github.com/llvm/llvm-project/pull/156087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-04 Thread Gedare Bloom via cfe-commits
@@ -958,9 +958,13 @@ template <> struct MappingTraits { // For backward compatibility. BracketAlignmentStyle LocalBAS = BAS_Align; if (IsGoogleOrChromium) { -if (Style.Language == FormatStyle::LK_JavaScript) { +FormatStyle::LanguageKind Languag

[clang] [OpenACC][NFCI] Split up the init and decl from OpenACC recipes (PR #156938)

2025-09-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang` at step 6 "test-build-unified-tree-check-cross-project". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/bu

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
@@ -431,6 +435,30 @@ Expr *BuiltinTypeMethodBuilder::getResourceHandleExpr() { OK_Ordinary); } +template +BuiltinTypeMethodBuilder & +BuiltinTypeMethodBuilder::getResourceHandle(T ResourceRecord) { + ensureCompleteDecl(); + + Expr *Resour

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/156075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
@@ -676,6 +704,44 @@ BuiltinTypeDeclBuilder::addHandleConstructorFromImplicitBinding() { .finalize(); } +BuiltinTypeDeclBuilder &BuiltinTypeDeclBuilder::addCopyConstructor() { + if (Record->isCompleteDefinition()) +return *this; + + ASTContext &AST = SemaRef.getAS

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
@@ -676,6 +704,44 @@ BuiltinTypeDeclBuilder::addHandleConstructorFromImplicitBinding() { .finalize(); } +BuiltinTypeDeclBuilder &BuiltinTypeDeclBuilder::addCopyConstructor() { + if (Record->isCompleteDefinition()) +return *this; + + ASTContext &AST = SemaRef.getAS

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-04 Thread Shafik Yaghmour via cfe-commits
@@ -431,6 +435,30 @@ Expr *BuiltinTypeMethodBuilder::getResourceHandleExpr() { OK_Ordinary); } +template +BuiltinTypeMethodBuilder & +BuiltinTypeMethodBuilder::getResourceHandle(T ResourceRecord) { + ensureCompleteDecl(); + + Expr *Resour

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-04 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 edited https://github.com/llvm/llvm-project/pull/156087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-04 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 edited https://github.com/llvm/llvm-project/pull/156087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-04 Thread Arjun Ramesh via cfe-commits
@@ -6,6 +6,8 @@ // //===--===// +#if !defined(__wasm__) arjunr2 wrote: The WALI targets add the `__linux__` define, which is used under specific cases in `assembly.h`. Figured since the hea

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Bhasawut Singhaphan (markbhasawut) Changes Update the AVX512 integer min/max mask/maskz variants intrinsics to be constexpr compatible. This is a follow-up to #156833, and the last in the 'Allow MMX/SSE/AVX2/AVX512 integer min/max

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

2025-09-04 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut ready_for_review https://github.com/llvm/llvm-project/pull/156901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-04 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Updating cxxabi and compiler-rt formatting as they seem to be set up such that clang-format matches the existing style https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

2025-09-04 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/156901 >From 2b91d9f709d8bfbeac5f1157d76945896f7dbfc3 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 4 Sep 2025 21:41:54 +0700 Subject: [PATCH] [Headers][X86] Allow AVX512 integer min/max mask/maskz

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-04 Thread Oliver Hunt via cfe-commits
ojhunt wrote: (Updating to throw at build bots) https://github.com/llvm/llvm-project/pull/143230 ___ 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] Do less unnecessary work in `NoLintDirectiveHandler` (PR #147553)

2025-09-04 Thread Victor Chernyakin via cfe-commits
@@ -31,8 +31,6 @@ class NoLintDirectiveHandler { public: NoLintDirectiveHandler(); ~NoLintDirectiveHandler(); localspook wrote: This check does backflips to keep the definition of `Impl` out of the header, and this is one of those backflips. The destructo

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-09-04 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/155663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (PR #156950)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (cmtice) Changes As preparation for making lit use the internal shell by default in clang-tools-extra (with significant expected performance gains), this removes 'REQUIRES: shell' from the clang-tools-extra lit tests that have i

[clang-tools-extra] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (PR #156950)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (cmtice) Changes As preparation for making lit use the internal shell by default in clang-tools-extra (with significant expected performance gains), this removes 'REQUIRES: shell' from the clang-tools-extra lit tests that

[clang-tools-extra] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (PR #156950)

2025-09-04 Thread via cfe-commits
https://github.com/cmtice edited https://github.com/llvm/llvm-project/pull/156950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (PR #156950)

2025-09-04 Thread via cfe-commits
https://github.com/cmtice created https://github.com/llvm/llvm-project/pull/156950 As preparation for making lit use the internal shell by default in clang-tools-extra (withe significant expected performance gains), this removes 'REQUIRES: shell' from the clang-tools-extra lit tests that have

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-04 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: %check_clang_tidy %s google-runtime-float %t + +long double foo; +// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: consider replacing 'long double' with a 64-bit or 128-bit float type [google-runtime-float] + +typedef long double MyLongDouble; +// CHECK-MESSA

[clang] [libcxx] [lldb] [llvm] [polly] [python] remove Python 3.9 specific typing annotations (PR #156868)

2025-09-04 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: @DavidSpickett the `typing` module is part of the standard library, so there is no need to install it https://github.com/llvm/llvm-project/pull/156868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [Clang][bytecode] Add interp__builtin_elementwise_triop to handle general 3-operand integer intrinsics (PR #156944)

2025-09-04 Thread Timm Baeder via cfe-commits
@@ -2829,9 +2829,10 @@ static bool interp__builtin_select(InterpState &S, CodePtr OpPC, return true; } -static bool interp__builtin_elementwise_fsh(InterpState &S, CodePtr OpPC, -const CallExpr *Call, -

[clang] [Clang] Enable constexpr handling for builtin elementwise fshl/fshr (PR #153572)

2025-09-04 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/153572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Do not crash when an empty directory is used in the comp… (PR #156873)

2025-09-04 Thread via cfe-commits
@@ -126,6 +126,10 @@ Improvements to clang-tidy - Improved :program:`clang-tidy` option `-quiet` by suppressing diagnostic count messages. +- Improved :program:`clang-tidy` by not crashing when an empty 'directory' EugeneZelenko wrote: ```suggestion - Impro

[clang] [Headers][X86] Allow AVX2/AVX512 integer min/max intrinsics to be used in constexpr (PR #156833)

2025-09-04 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut created https://github.com/llvm/llvm-project/pull/156833 Update the AVX2/AVX512 min/max integer intrinsics to be constexpr compatible. This PR is a follow-up of #156678. The AVX512 mask/maskz variants will be in the next follow-up. Part of #153153. >From 4bf6d

[clang] [clang][driver] Improve warning message for complex range overrides (PR #154899)

2025-09-04 Thread Shunsuke Watanabe via cfe-commits
@@ -2730,17 +2730,38 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, } } -static std::string ComplexArithmeticStr(LangOptions::ComplexRangeKind Range) { - return (Range == LangOptions::ComplexRangeKind::CX_None) - ? "" - : "-fcomple

[clang] [analyzer] Consolidate the va_list checkers (PR #156682)

2025-09-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/156682 From 2c6d0b4cc85033f005bc64323f1fc9acaf75cbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 2 Sep 2025 18:27:00 +0200 Subject: [PATCH 1/2] [analyzer] Consolidate the va_list checkers

[clang] X86: make the setr_ph intrinsics functions (PR #156819)

2025-09-04 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > Change the definitions of `_mm_setr_ph`, `_mm256_setr_ph` and > `_mm512_setr_ph` to be functions instead of macros. Resolves #156709 > > Pending questions : > > * Should the `_mm_setr_ph` and `_mm256_setr_ph` functions be marked as > `__DEFAULT_FN_A TTRS128_CONSTEXPR` and

[clang] [Clang][bytecode] Add interp__builtin_elementwise_triop to handle general 3-operand integer intrinsics (PR #156944)

2025-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes Refactor interp__builtin_elementwise_fsh into something similar to interp__builtin_elementwise_int_binop with a callback function argument to allow reuse with other intrinsics This will allow reuse with so

[clang] [Clang][bytecode] Add interp__builtin_elementwise_triop to handle general 3-operand integer intrinsics (PR #156944)

2025-09-04 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/156944 Refactor interp__builtin_elementwise_fsh into something similar to interp__builtin_elementwise_int_binop with a callback function argument to allow reuse with other intrinsics This will allow reuse with some u

[clang] [llvm] [lit] Add support for env -i (PR #156939)

2025-09-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/156939 >From 98bd89996f855daa04d3b13dc30b263a542d9976 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Thu, 4 Sep 2025 17:57:37 + Subject: [PATCH 1/2] [lit] Add support for env -i env -i is needed for so

[clang] [clang] Remove shell requirements from tests (PR #156905)

2025-09-04 Thread Petr Hosek via cfe-commits
@@ -3,7 +3,8 @@ // Note: the spelling of the modulemap path still depends on the includer, since // that is the only source of information about it. -// REQUIRES: shell +// Needs symlinks petrhosek wrote: Windows supports symlinks since Windows 10 but you ne

[clang] [llvm] [AArch64][SVE] Lower unpredicated loads/stores as LDR/STR. (PR #127837)

2025-09-04 Thread Ricardo Jesus via cfe-commits
rj-jesus wrote: Hi @kinoshita-fj, thank you for the report. I'd also rather we don't revert the patch entirely for the reasons Paul mentioned. Would it be a reasonable compromise to have a SubtargetFeature disable these patterns for CPUs like the A64FX where they are found to be unfavourable?

[clang] [clang] Remove shell requirements from tests (PR #156905)

2025-09-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 edited https://github.com/llvm/llvm-project/pull/156905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 46a3b4d - [clang] Rewrite tests relying on shell environment variable features

2025-09-04 Thread via cfe-commits
Author: Aiden Grossman Date: 2025-09-04T11:17:53-07:00 New Revision: 46a3b4d5dc6dd9449ec7c0c9065552368cdf41d6 URL: https://github.com/llvm/llvm-project/commit/46a3b4d5dc6dd9449ec7c0c9065552368cdf41d6 DIFF: https://github.com/llvm/llvm-project/commit/46a3b4d5dc6dd9449ec7c0c9065552368cdf41d6.diff

[clang] [clang] Rewrite tests relying on shell environment variable features (PR #156904)

2025-09-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/156904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Emit initializers for static const/constexpr variables once they're met (PR #156933)

2025-09-04 Thread John McCall via cfe-commits
rjmccall wrote: > It seems once codegen meets an odr use of the variable, it doesn't emit the > initializer, only the global variable itself. Then while emitting some > function's body it meets the variable declaration, and if it was a static > variable it adds the initializer via AddInitializ

[clang] [llvm] [WPD]: Apply speculative WPD in non-lto mode. (PR #145031)

2025-09-04 Thread Teresa Johnson via cfe-commits
@@ -5170,7 +5174,7 @@ Execute ``clang-cl /?`` to see a list of supported options: -fstandalone-debug Emit full debug info for all types used by the program -fstrict-aliasing Enable optimizations based on strict aliasing rules -fsyntax-only

[clang] [clang][bytecode] Print 8 bit integers as 32 bit in Function::dump() (PR #156858)

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

[clang] [clang][bytecode] Reject final ltor casts on string literals (PR #156669)

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

  1   2   3   4   >