[clang] [flang] [llvm] [X86][AVX10] Remove EVEX512 and AVX10-256 implementations (PR #157034)

2025-09-16 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > For the future, I wonder if we can avoid breaking changes like this and > instead make the deprecated flags and targets no-ops. It is not just a matter > of passing -mavx10.1-512 flags or not. > > For dynamic dispatch, we have had to specify "evex512" attributes in code, >

[clang] [llvm] [mlir] Revert "Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end #153404"" (PR #159236)

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

[clang] [clang] Do not diagnose conflicting types for cfi_unchecked_callee (PR #157762)

2025-09-16 Thread via cfe-commits
PiJoules wrote: > Does this need a release note? Added one https://github.com/llvm/llvm-project/pull/157762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

2025-09-16 Thread Hsin-chieh Liu via cfe-commits
Stehsaer wrote: > > It's working great as intended! > src="https://private-user-images.githubusercontent.com/54050160/484637944-77662462-d9f8-47b8-8c7f-1ae909078ee4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleT

[clang] [clang] Do not diagnose conflicting types for cfi_unchecked_callee (PR #157762)

2025-09-16 Thread via cfe-commits
@@ -233,3 +233,7 @@ void lambdas() { checked_func = checked_lambda; }; } + +CFI_UNCHECKED_CALLEE +void func(void); +void func(void) {} // No warning expected. PiJoules wrote: Done https://github.com/llvm/llvm-project/pull/157762 ___

[clang] [llvm] [clang][LIT] Add LIT "features" for build configs with ICU or iconv (PR #159245)

2025-09-16 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast created https://github.com/llvm/llvm-project/pull/159245 ... in preparation for `-finput-charset` and `-fexec-charset` tests that rely on the availability of one or the other; however, this does not address the problem of varying `iconv` support of (an

[clang] [llvm] [clang][SPARC] Pass 16-aligned structs with the correct alignment in CC (PR #155829)

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

[clang] [llvm] [mlir] Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end #153404" (PR #155339)

2025-09-16 Thread Weibo He via cfe-commits
NewSigma wrote: Rebase and resolve conflicts https://github.com/llvm/llvm-project/pull/155339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] RISCV: the built-ins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-16 Thread via cfe-commits
https://github.com/ukalappa-mips created https://github.com/llvm/llvm-project/pull/159246 with this PR ,the following changes are made a)Typo Fix (with previous PR https://github.com/llvm/llvm-project/pull/155747) b)builtins support for MIPS P8700 execution control instructions . c)Testcase

[clang] [llvm] [clang][LIT] Add LIT "features" for build configs with ICU or iconv (PR #159245)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Hubert Tong (hubert-reinterpretcast) Changes ... in preparation for `-finput-charset` and `-fexec-charset` tests that rely on the availability of one or the other; however, this does not address the problem of varying `iconv` support of (

[clang] [llvm] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC (PR #155829)

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

[clang] [llvm] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC (PR #155829)

2025-09-16 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/155829 >From a8707a6452b77b75603dc780213835f6e5e4b582 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 28 Aug 2025 19:48:38 +0700 Subject: [PATCH 1/5] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC Thi

[clang] [llvm] [mlir] [x86][AVX-VNNI] Fix VPDPBXXD Argument Type (PR #159222)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: BaiXilin (BaiXilin) Changes Fixed intrinsic VPDP[SS,SU,UU]D[,S]_128/256/512's argument types to match with the ISA. Fixes part of #97271. --- Patch is 278.91 KiB, truncated to 20.00 KiB below, full version: https://githu

[clang] [llvm] [mlir] [x86][AVX-VNNI] Fix VPDPBXXD Argument Type (PR #159222)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir @llvm/pr-subscribers-backend-x86 Author: BaiXilin (BaiXilin) Changes Fixed intrinsic VPDP[SS,SU,UU]D[,S]_128/256/512's argument types to match with the ISA. Fixes part of #97271. --- Patch is 278.91 KiB, truncated to 20.00 KiB below, full version

[clang] [llvm] [mlir] [x86][AVX-VNNI] Fix VPDPBXXD Argument Type (PR #159222)

2025-09-16 Thread via cfe-commits
https://github.com/BaiXilin ready_for_review https://github.com/llvm/llvm-project/pull/159222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Emit error if assembler fails to construct subtarget (PR #159219)

2025-09-16 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay commented: Can you add a `clang/test/Misc/cc1as-*` test? https://github.com/llvm/llvm-project/pull/159219 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] RISCV: the built-ins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: UmeshKalappa (ukalappa-mips) Changes with this PR ,the following changes are made a)Typo Fix (with previous PR https://github.com/llvm/llvm-project/pull/155747) b)builtins support for MIPS P8700 execution control instructions . c)Testca

[clang] clang: Emit error if assembler fails to construct subtarget (PR #159219)

2025-09-16 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Can you add a `clang/test/Misc/cc1as-*` test? This is the same as llvm-mc, can't produce a construction failure with any of the targets as is https://github.com/llvm/llvm-project/pull/159219 ___ cfe-commits mailing list cfe-commits@l

[clang] [llvm] RISCV: the built-ins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: UmeshKalappa (ukalappa-mips) Changes with this PR ,the following changes are made a)Typo Fix (with previous PR https://github.com/llvm/llvm-project/pull/155747) b)builtins support for MIPS P8700 execution control instructions .

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

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

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd @llvm/pr-subscribers-clang-tools-extra Author: None (tcottin) Changes PR for some followup issues from clangd/clangd#529. `\note` and `\warning`: In the hover card, they are now displayed with heading and enclosing rulers. `\retval` commands: Ea

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

2025-09-16 Thread via cfe-commits
tcottin wrote: @emaxx-google could you take a look at this? https://github.com/llvm/llvm-project/pull/156365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

2025-09-16 Thread via cfe-commits
https://github.com/tcottin ready_for_review https://github.com/llvm/llvm-project/pull/156365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6d5c942 - [clang] [CUDA] Support calling `consteval` function between different target. (#158688)

2025-09-16 Thread via cfe-commits
Author: Tang Jiajun Date: 2025-09-17T13:05:57+08:00 New Revision: 6d5c94203652a52b51b37ad4768bc1a7066f029c URL: https://github.com/llvm/llvm-project/commit/6d5c94203652a52b51b37ad4768bc1a7066f029c DIFF: https://github.com/llvm/llvm-project/commit/6d5c94203652a52b51b37ad4768bc1a7066f029c.diff L

[clang] Adding support for iterator in motion clauses. (PR #159112)

2025-09-16 Thread via cfe-commits
https://github.com/ShashwathiNavada updated https://github.com/llvm/llvm-project/pull/159112 >From 7bec4d102da2e3c99a8a8d83167471637d94f897 Mon Sep 17 00:00:00 2001 From: Shashwathi N Date: Tue, 16 Sep 2025 10:23:50 -0500 Subject: [PATCH 1/2] Adding support for iterator in motion clauses ---

[clang] [clang] [CUDA] Support calling `consteval` function between different target. (PR #158688)

2025-09-16 Thread via cfe-commits
github-actions[bot] wrote: @tangjj11 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] [clang] [CUDA] Support calling `consteval` function between different target. (PR #158688)

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

[clang] [clang] Do not diagnose conflicting types for cfi_unchecked_callee (PR #157762)

2025-09-16 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/157762 >From b88fb87e1627b91b83f25a27cd10f9cdddc860f0 Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Tue, 9 Sep 2025 15:25:56 -0700 Subject: [PATCH] [clang] Do not diagnose conflicting types for cfi_unchecked_call

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #159231)

2025-09-16 Thread via cfe-commits
https://github.com/sskzakaria updated https://github.com/llvm/llvm-project/pull/159231 >From 55d9d6064836c78d8c982a81b0ad24ffbfb9ff83 Mon Sep 17 00:00:00 2001 From: sskzakaria Date: Fri, 12 Sep 2025 18:06:50 -0400 Subject: [PATCH 01/11] _mm256_cvtepu16_ph --- clang/lib/Headers/avx512vlfp16int

[clang-tools-extra] Improve loading speed of indexes used by clangd (PR #156185)

2025-09-16 Thread via cfe-commits
@@ -64,5 +64,32 @@ RefSlab RefSlab::Builder::build() && { return RefSlab(std::move(Result), std::move(Arena), Entries.size()); } +void RefSlab::BuilderExpectUnique::insert(const SymbolID &ID, const Ref &S) { + Entry E = {ID, S}; + E.Reference.Location.FileURI = UniqueStrin

[clang] [llvm] [mlir] Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end #153404" (PR #155339)

2025-09-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b1` while building `clang,llvm,mlir` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/255

[clang] [llvm] [mlir] Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end #153404" (PR #155339)

2025-09-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b1` while building `clang,llvm,mlir` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/25663 H

[clang] Add IWYU export pragma to Type.h (PR #159154)

2025-09-16 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. Yeah, that's the intent. Thanks! https://github.com/llvm/llvm-project/pull/159154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-16 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,195 @@ +//===--- LostStdMoveCheck.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] [llvm] Implements isnan() HLSL intrinsic for DXIL and SPIR-V targets. (PR #157733)

2025-09-16 Thread Dan Brown via cfe-commits
@@ -1024,6 +1025,9 @@ static bool expandIntrinsic(Function &F, CallInst *Orig) { case Intrinsic::dx_isinf: Result = expand16BitIsInf(Orig); break; + case Intrinsic::dx_isnan: +Result = expand16BitIsInf(Orig); danbrown-amd wrote: Fixed.copy/paste

[clang] [llvm] Implements isnan() HLSL intrinsic for DXIL and SPIR-V targets. (PR #157733)

2025-09-16 Thread Dan Brown via cfe-commits
https://github.com/danbrown-amd updated https://github.com/llvm/llvm-project/pull/157733 >From 3b58c7916dad497815b787071d1e384d55703eb8 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 9 Sep 2025 12:40:57 -0600 Subject: [PATCH 1/3] Implements isnan() HLSL intrinsic for DXIL and SPIR-V targe

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-16 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,203 @@ +// RUN: %check_clang_tidy %s performance-lost-std-move %t + +namespace std { + +template +class shared_ptr { +public: + T& operator*() { return reinterpret_cast(*this); } + shared_ptr() {} + shared_ptr(const shared_ptr&) {} +}; + +template +T&& move(T&) +{ +}

[clang] [C++20][Modules] Fix merging of anonymous members of class templates. (PR #155948)

2025-09-16 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I am confused that when we try to merge the field from "b.h", the primary DC should be the definition instead of the declaration: https://github.com/llvm/llvm-project/blob/899fb7f663a973d6cef57533c85884631f08f26b/clang/lib/Serialization/ASTReaderDecl.cpp#L3385C1-L3389C42 I

[clang] [llvm] [mlir] Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end #153404" (PR #155339)

2025-09-16 Thread Weibo He via cfe-commits
https://github.com/NewSigma closed https://github.com/llvm/llvm-project/pull/155339 ___ 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 check performance-lost-std-move (PR #139525)

2025-09-16 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,47 @@ +.. title:: clang-tidy - performance-lost-std-move + +performance-lost-std-move += + +Warns if copy constructor is used instead of ``std::move()`` and suggests a fix. +It honours cycles, lambdas, and unspecified call order in compound expr

[clang] a90a7ef - Revert "NFC: Use descriptive FileCheck prefixes for exec/input-charset"

2025-09-16 Thread Hubert Tong via cfe-commits
Author: Hubert Tong Date: 2025-09-16T23:19:41-04:00 New Revision: a90a7efc59f816fe0e7ad2a437f8693393432237 URL: https://github.com/llvm/llvm-project/commit/a90a7efc59f816fe0e7ad2a437f8693393432237 DIFF: https://github.com/llvm/llvm-project/commit/a90a7efc59f816fe0e7ad2a437f8693393432237.diff L

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2025-09-16 Thread Sergei Kulik via cfe-commits
skoulik wrote: Hello guys, Can you check/confirm if this fix is in any way related to #159229 that I observe? https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

2025-09-16 Thread Shafik Yaghmour via cfe-commits
shafik wrote: This is linked to https://github.com/llvm/llvm-project/issues/159080 https://github.com/llvm/llvm-project/pull/68059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable fexec-charset option (PR #138895)

2025-09-16 Thread Hubert Tong via cfe-commits
@@ -0,0 +1,53 @@ +//===--- LiteralConverter.cpp - Translator for String Literals ---===// +// +// 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: Apach

[clang] [llvm] Enable fexec-charset option (PR #138895)

2025-09-16 Thread Hubert Tong via cfe-commits
@@ -0,0 +1,53 @@ +//===--- LiteralConverter.cpp - Translator for String Literals ---===// +// +// 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: Apach

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-09-16 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Emit error if assembler fails to construct subtarget (PR #159219)

2025-09-16 Thread Matt Arsenault via cfe-commits
arsenm wrote: * **#159219** https://app.graphite.dev/github/pr/llvm/llvm-project/159219?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/15921

[clang-tools-extra] [clang-tidy] New Option Invalid Enum Default Initialization (PR #159220)

2025-09-16 Thread Félix-Antoine Constantin via cfe-commits
felix642 wrote: @balazske, this check was recently added by you. If you have time to review this PR I would greatly appreciate it. https://github.com/llvm/llvm-project/pull/159220 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-16 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,419 @@ +//===--===// +// +// 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: Apa

[clang] 0493103 - NFC: Use descriptive FileCheck prefixes for exec/input-charset

2025-09-16 Thread via cfe-commits
Author: Hubert Tong Date: 2025-09-16T21:47:54-04:00 New Revision: 049310353ed37d98749fbb060273618230a42787 URL: https://github.com/llvm/llvm-project/commit/049310353ed37d98749fbb060273618230a42787 DIFF: https://github.com/llvm/llvm-project/commit/049310353ed37d98749fbb060273618230a42787.diff L

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-16 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Thank you removing the extra changes, I have one more. It looks good but I would like someone who is more familiar with this area to take a look https://github.com/llvm/llvm-project/pull/158146 ___ cfe-commits mail

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-16 Thread Shafik Yaghmour via cfe-commits
@@ -3321,9 +3321,9 @@ SemaOpenMP::CheckOMPThreadPrivateDecl(SourceLocation Loc, } return D; } - shafik wrote: Please remove this newline https://github.com/llvm/llvm-project/pull/158146 ___ cfe-commits mailing l

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

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

[clang] 87bceae - [clang][nfc]Disable warning triggered in tests (#159216)

2025-09-16 Thread via cfe-commits
Author: Vy Nguyen Date: 2025-09-16T20:59:59-04:00 New Revision: 87bceae3fc64359c5a6ca362b466f8e938f4986c URL: https://github.com/llvm/llvm-project/commit/87bceae3fc64359c5a6ca362b466f8e938f4986c DIFF: https://github.com/llvm/llvm-project/commit/87bceae3fc64359c5a6ca362b466f8e938f4986c.diff LOG

[clang] [clang][nfc]Disable warning triggered in tests (PR #159216)

2025-09-16 Thread Vy Nguyen via cfe-commits
https://github.com/oontvoo closed https://github.com/llvm/llvm-project/pull/159216 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][nfc]Disable warning triggered in tests (PR #159216)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vy Nguyen (oontvoo) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/159216.diff 1 Files Affected: - (modified) clang/test/Rewriter/objc-string-concat-1.m (+2-2) ``diff diff --git a/clang/test/Rewriter/objc-s

[clang] [clang][nfc]Disable warning triggered in tests (PR #159216)

2025-09-16 Thread Vy Nguyen via cfe-commits
https://github.com/oontvoo created https://github.com/llvm/llvm-project/pull/159216 None >From ddf98c32ad11e7f1b08e8ac8354474e5d66dd8be Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Tue, 16 Sep 2025 20:45:35 -0400 Subject: [PATCH] [clang][nfc]Disable warning triggered in tests --- clang/tes

[clang] [DTLTO][TEST] XFAIL Clang driver tests for Multicall toolchains (PR #159129)

2025-09-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 7 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/13600 Here is the r

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Tarun Prabhu via cfe-commits
@@ -3171,10 +3171,11 @@ def fthin_link_bitcode_EQ : Joined<["-"], "fthin-link-bitcode=">, MarshallingInfoString>; defm fat_lto_objects : BoolFOption<"fat-lto-objects", CodeGenOpts<"FatLTO">, DefaultFalse, - PosFlag, - NegFlag, + PosFlag, + NegFlag, BothFlags<[], [Cl

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu edited https://github.com/llvm/llvm-project/pull/158125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Tarun Prabhu via cfe-commits
@@ -182,6 +182,29 @@ void Flang::addCodegenOptions(const ArgList &Args, CmdArgs.push_back("-fcoarray"); } +void Flang::addLTOOptions(const ArgList &Args, ArgStringList &CmdArgs) const { + const ToolChain &TC = getToolChain(); + const Driver &D = TC.getDriver(); + Diagno

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu commented: Thanks. Looks like I missed a couple of things the first time around. Just some clarifications. https://github.com/llvm/llvm-project/pull/158125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Tarun Prabhu via cfe-commits
@@ -182,6 +182,29 @@ void Flang::addCodegenOptions(const ArgList &Args, CmdArgs.push_back("-fcoarray"); } +void Flang::addLTOOptions(const ArgList &Args, ArgStringList &CmdArgs) const { + const ToolChain &TC = getToolChain(); + const Driver &D = TC.getDriver(); + Diagno

[clang] [HLSL] avoid unnamed bit fields when dealing with InitLists in HLSL (PR #159212)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sarah Spall (spall) Changes In HLSL Init List code avoid initializing unnamed bitfields and avoid initializing using unnamed bit fields. Add tests. Closes #157922 --- Full diff: https://github.com/llvm/llvm-project/pull/159212.diff 2 F

[clang] [HLSL] avoid unnamed bit fields when dealing with InitLists in HLSL (PR #159212)

2025-09-16 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/159212 In HLSL Init List code avoid initializing unnamed bitfields and avoid initializing using unnamed bit fields. Add tests. Closes #157922 >From 323df6bb7b79839f2a88d06293ff7c955182cd86 Mon Sep 17 00:00:00 2001 From

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-09-16 Thread Davide Cunial via cfe-commits
capitan-davide wrote: > > What do others think? > > I agree, I have somewhat mixed feelings about this rule. Also negating > conditions to make them more optimal/short can also lead to worse > readability. I believe this is alleviated by setting `SimplifyDeMorgan` to > `false`. I do some exp

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-09-16 Thread via cfe-commits
EugeneZelenko wrote: > > > What do others think? > > > > > > I agree, I have somewhat mixed feelings about this rule. Also negating > > conditions to make them more optimal/short can also lead to worse > > readability. I believe this is alleviated by setting `SimplifyDeMorgan` to > > `false`

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector insertion intrinsics to be used in constexpr #157709 (PR #158778)

2025-09-16 Thread Simon Pilgrim via cfe-commits
@@ -12127,6 +12127,55 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + + case X86::BI__builtin_ia32_insertf32x4_256: + case X86::BI__builtin_ia32_inserti32x4_256: + case X86:

[clang] [llvm] Enable fexec-charset option (PR #138895)

2025-09-16 Thread Hubert Tong via cfe-commits
@@ -217,8 +217,14 @@ // RUN: not %clang -### -S -finput-charset=iso-8859-1 -o /dev/null %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-CHARSET %s // CHECK-INVALID-CHARSET: error: invalid value 'iso-8859-1' in '-finput-charset=iso-8859-1' -// RUN: not %clang -### -S -fexec-c

[clang] Revert "[clang] fix clang_cmake_builddir" (PR #158684)

2025-09-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot3` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/14953 Here is the relevant piece

[clang] Fix Lambda Mangling in Namespace-Scope Variable Initializers. (PR #159115)

2025-09-16 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann edited https://github.com/llvm/llvm-project/pull/159115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add deprecation warnings to compatability overloads (PR #159208)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Sarah Spall (spall) Changes Add deprecation warnings to compatability overloads and add tests to show the warnings. Closes #133452 --- Patch is 31.16 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/

[clang] [HLSL] Add deprecation warnings to compatability overloads (PR #159208)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Sarah Spall (spall) Changes Add deprecation warnings to compatability overloads and add tests to show the warnings. Closes #133452 --- Patch is 31.16 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-p

[clang] [HLSL] Add deprecation warnings to compatability overloads (PR #159208)

2025-09-16 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/159208 Add deprecation warnings to compatability overloads and add tests to show the warnings. Closes #133452 >From 209cabfdf7ed782d39ece1f3447286731f13652b Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Mon, 8 Sep

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector insertion intrinsics to be used in constexpr #157709 (PR #158778)

2025-09-16 Thread Timm Baeder via cfe-commits
@@ -2937,6 +2937,56 @@ static bool interp__builtin_elementwise_triop( return true; } +static bool interp__builtin_x86_insert_subvector(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] [DTLTO][TEST] XFAIL Clang driver tests for Multicall toolchains (PR #159129)

2025-09-16 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/159129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add s_cluster_barrier on gfx1250 (PR #159175)

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

[clang] 4ab8dab - [AMDGPU] Add s_cluster_barrier on gfx1250 (#159175)

2025-09-16 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-09-16T14:49:48-07:00 New Revision: 4ab8dabc252f802134bfea6193f9a274f0bdc143 URL: https://github.com/llvm/llvm-project/commit/4ab8dabc252f802134bfea6193f9a274f0bdc143 DIFF: https://github.com/llvm/llvm-project/commit/4ab8dabc252f802134bfea6193f9a274f0bdc1

[clang] [llvm] [llvm][AsmPrinter] Add direct calls to callgraph section (PR #155706)

2025-09-16 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: > > > so, you emit a label at every call site, right? and then you write out > > > the address of the label w/ each callee symbol? > > > So if I have a hundred calls to foo in my function, I get 100 entries? Am > > > I understanding that right? > > > > > > Yes. That is correct.

[clang] [CIR] Add virtual base support to getAddressOfBaseClass (PR #159162)

2025-09-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/159162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Align within the level with Cpp11BracedListStyle disabled (PR #159140)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes When the style is `{AlignConsecutiveDeclarations: true, Cpp11BracedListStyle: false}`, the program would sometimes align the lambda body with the outside. Like this. ```C++ const volatile auto result{ []() {

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-09-16 Thread via cfe-commits
EugeneZelenko wrote: > > I enabled `IgnoreMacros` when running this check over my work code base, > > since a lot of warnings were related to stuff like asserts. > > Even though there are a number of `assert`s in clang-tools-extra/clang-tidy, > looks like this check never fired 🤔 .. are there

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/158125 >From 78068dcea27ebdfd84743d69a8815f77b8bfcd3d Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Tue, 2 Sep 2025 12:34:06 -0500 Subject: [PATCH 1/2] [flang][Driver] Enables lto-partitions and fat-lto-object

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-09-16 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide edited https://github.com/llvm/llvm-project/pull/158706 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add s_cluster_barrier on gfx1250 (PR #159175)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Stanislav Mekhanoshin (rampitec) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/159175.diff 7 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def (+1) - (modified) clang/test/CodeGenOpenCL/built

[clang] a3762fb - [AMDGPU] Add missing bf16-pk-insts feature to gfx1250 (#159167)

2025-09-16 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-09-16T13:58:40-07:00 New Revision: a3762fb2405475c46c18a647f18d342f5e2332e3 URL: https://github.com/llvm/llvm-project/commit/a3762fb2405475c46c18a647f18d342f5e2332e3 DIFF: https://github.com/llvm/llvm-project/commit/a3762fb2405475c46c18a647f18d342f5e2332

[clang] [clang-tools-extra] [llvm] [llvm][clang] Pass VFS to `llvm::cl` command line handling (PR #159174)

2025-09-16 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp,h -- clang-tools-extra/clangd/tool/ClangdMain.cpp c

[clang] [llvm] [AMDGPU] Add s_cluster_barrier on gfx1250 (PR #159175)

2025-09-16 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: * **#159175** https://app.graphite.dev/github/pr/llvm/llvm-project/159175?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/159

[clang] [llvm] [AMDGPU] Add s_cluster_barrier on gfx1250 (PR #159175)

2025-09-16 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/159175 None >From f3ea386b0b040ec50c398a6509da1489ef3f3aa9 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 16 Sep 2025 13:56:40 -0700 Subject: [PATCH] [AMDGPU] Add s_cluster_barrier on gfx1250 --- c

[clang] [clang-tools-extra] [llvm] [llvm][clang] Pass VFS to `llvm::cl` command line handling (PR #159174)

2025-09-16 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan approved this pull request. https://github.com/llvm/llvm-project/pull/159174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Use static create methods to initialize resources in arrays (PR #157005)

2025-09-16 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/157005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DTLTO][TEST] XFAIL Clang driver tests for Multicall toolchains (PR #159129)

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

[clang] [clang] Add missing readonly/readnone annotations (PR #158424)

2025-09-16 Thread Quentin Chateau via cfe-commits
https://github.com/qchateau updated https://github.com/llvm/llvm-project/pull/158424 >From a522a156087841170fd99c0f65d985bda525ae6f Mon Sep 17 00:00:00 2001 From: Quentin Chateau Date: Sat, 13 Sep 2025 00:48:59 +0200 Subject: [PATCH] [clang] Add missing readonly/readnone annotations When arg m

[clang] [clang-tools-extra] [llvm] [llvm][clang] Pass VFS to `llvm::cl` command line handling (PR #159174)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Jan Svoboda (jansvoboda11) Changes This PR passes the VFS down to `llvm::cl` functions so that they don't assume the real file system. --- Full diff: https://github.com/llvm/llvm-project/pull/159174.diff 12 Files Affected:

[clang] [clang] Add missing readonly/readnone annotations (PR #158424)

2025-09-16 Thread Quentin Chateau via cfe-commits
@@ -14,14 +14,20 @@ T1 __attribute__((pure)) f3(void); void __attribute__((const)) f4(T1 a); void __attribute__((pure)) f5(T1 a); -void *ps[] = { f0, f1, f2, f3, f4, f5 }; +// NOTE: The int parameters verifies non-ptr parameters are not a problem +T1 __attribute__((const)) f6(

[clang] [DTLTO][TEST] Get the DTLTO Clang driver tests failing on some buildbots to pass (PR #159158)

2025-09-16 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/159158 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add virtual base support to getAddressOfBaseClass (PR #159162)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This patch enables calling virtual functions of virtual base classes of a derived class. --- Full diff: https://github.com/llvm/llvm-project/pull/159162.diff 2 Files Affected: - (modified) clang/lib/CIR/Cod

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-16 Thread Anchu Rajendran S via cfe-commits
@@ -995,7 +995,9 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) { // Create the pass manager. llvm::ModulePassManager mpm; - if (opts.PrepareForFullLTO) + if (opts.PrepareForFatLTO) +mpm = pb.buildFatLTODefaultPipeline(level, opts.Prepar

[clang] Improve HeuristicResolver further so it can replace most of getApproximateType() in SemaCodeComplete (PR #156282)

2025-09-16 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Thanks! https://github.com/llvm/llvm-project/pull/156282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add IWYU export pragma to Type.h (PR #159154)

2025-09-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kim Gräsman (kimgr) Changes According to 249167a8982afc3f55237baf1532c5c8ebd850b3, users are expected to include Type.h, which acts as a facade header for TypeBase.h. Add an IWYU export pragma to help IWYU reason about the relationship.

  1   2   3   4   >