[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-08 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/154715 >From 20acfd4109a453060f3678e536234de94012f19c Mon Sep 17 00:00:00 2001 From: AditiRM Date: Thu, 21 Aug 2025 09:40:59 + Subject: [PATCH 01/22] Implement frontend for bcd builtins --- clang/include/clang/Ba

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-08 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM edited https://github.com/llvm/llvm-project/pull/154715 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-08 Thread Aditi Medhane via cfe-commits
@@ -105,11 +105,67 @@ bool SemaPPC::CheckPPCBuiltinFunctionCall(const TargetInfo &TI, switch (BuiltinID) { default: return false; - case PPC::BI__builtin_ppc_bcdsetsign: case PPC::BI__builtin_ppc_national2packed: case PPC::BI__builtin_ppc_packed2zoned: case P

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-08 Thread Aditi Medhane via cfe-commits
@@ -11199,6 +11199,10 @@ def err_ppc_invalid_use_mma_type : Error< "invalid use of PPC MMA type">; def err_ppc_invalid_test_data_class_type : Error< "expected a 'float', 'double' or '__float128' for the first argument">; +def err_ppc_bcd_invalid_vector_type : Error< + "the

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-08 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/154715 >From 20acfd4109a453060f3678e536234de94012f19c Mon Sep 17 00:00:00 2001 From: AditiRM Date: Thu, 21 Aug 2025 09:40:59 + Subject: [PATCH 01/21] Implement frontend for bcd builtins --- clang/include/clang/Ba

[clang] [clang][bytecode] Always initialize scope before conditional operator (PR #171133)

2025-12-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/28604 Her

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-08 Thread Nikita Popov via cfe-commits
@@ -4002,8 +4012,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Result = Builder.CreateBinaryIntrinsic( Ty->isSignedIntegerType() ? Intrinsic::smin : Intrinsic::umin, Op0, Op1, nullptr, "elt.min"); -} else -

[clang] [llvm] [clang][Hexagon] Add Picolibc as part of triple (PR #169613)

2025-12-08 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 77014 tests passed * 1947 tests skipped All tests passed but another part of the build **failed**. Click on a failure below to see the details. [code=1] tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Hexagon

[clang] [llvm] [Clang] Use DataLayout from TargetParser (PR #171135)

2025-12-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic auto_merge_enabled https://github.com/llvm/llvm-project/pull/171135 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread via cfe-commits
github-actions[bot] wrote: @Dominicentek 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 b

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 2fa4927 - [clangd] Add a (currently hidden) --strong-workspace-mode flag (#155905)

2025-12-08 Thread via cfe-commits
Author: Dominicentek Date: 2025-12-09T07:05:51Z New Revision: 2fa492726e774c050d6f21d57990c8bfbd7f1400 URL: https://github.com/llvm/llvm-project/commit/2fa492726e774c050d6f21d57990c8bfbd7f1400 DIFF: https://github.com/llvm/llvm-project/commit/2fa492726e774c050d6f21d57990c8bfbd7f1400.diff LOG:

[clang] [llvm] [Clang] Use DataLayout from TargetParser (PR #171135)

2025-12-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/171135 >From 79f317ce6770a9a7dcdb65f6ec9ec195baf3d0d0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 8 Dec 2025 14:44:20 +0100 Subject: [PATCH 1/2] [Clang] Use DataLayout from TargetParser This switches clang to

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 auto_merge_enabled https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Always initialize scope before conditional operator (PR #171133)

2025-12-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/171133 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ad29ee5 - [clang][bytecode] Always initialize scope before conditional operator (#171133)

2025-12-08 Thread via cfe-commits
Author: Timm Baeder Date: 2025-12-09T08:03:27+01:00 New Revision: ad29ee51f4269bb9838ab7428ccc59dbfbd232e4 URL: https://github.com/llvm/llvm-project/commit/ad29ee51f4269bb9838ab7428ccc59dbfbd232e4 DIFF: https://github.com/llvm/llvm-project/commit/ad29ee51f4269bb9838ab7428ccc59dbfbd232e4.diff L

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 auto_merge_disabled https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 auto_merge_enabled https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-08 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/154715 >From 20acfd4109a453060f3678e536234de94012f19c Mon Sep 17 00:00:00 2001 From: AditiRM Date: Thu, 21 Aug 2025 09:40:59 + Subject: [PATCH 01/20] Implement frontend for bcd builtins --- clang/include/clang/Ba

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
@@ -460,6 +462,17 @@ DirectoryBasedGlobalCompilationDatabase::lookupCDB( return Result; } +void DirectoryBasedGlobalCompilationDatabase::Options::applyWorkingDirectory( +const std::optional &&WorkingDirectory) { + if (WorkingDirectory) +this->WorkingDirectory = *Wor

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks! LGTM with some minor tweaks which I went ahead and made. https://github.com/llvm/llvm-project/pull/155905 ___ cfe-commits mailing list [email protected] https://lists.llvm.o

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/155905 >From 9a30c2b92be357deac5a65e2fa0952d91634de70 Mon Sep 17 00:00:00 2001 From: Dominicentek Date: Thu, 28 Aug 2025 20:46:35 +0200 Subject: [PATCH 01/12] Add --project-root to clangd --- clang-tools-extra

[clang] [LifetimeSafety] Infer [[clang::lifetimebound]] annotation (PR #171081)

2025-12-08 Thread Kashika Akhouri via cfe-commits
@@ -89,6 +89,46 @@ void test_getView_on_temporary() { (void)sv; } +//===--===// +// Annotation Inference Test Cases +//===--===// + +namesp

[clang] [LifetimeSafety] Infer [[clang::lifetimebound]] annotation (PR #171081)

2025-12-08 Thread Kashika Akhouri via cfe-commits
@@ -55,13 +55,14 @@ class LifetimeChecker { const LiveOriginsAnalysis &LiveOrigins; const FactManager &FactMgr; LifetimeSafetyReporter *Reporter; + ASTContext &AC; kashika0112 wrote: Done https://github.com/llvm/llvm-project/pull/171081 ___

[clang] [LifetimeSafety] Infer [[clang::lifetimebound]] annotation (PR #171081)

2025-12-08 Thread Kashika Akhouri via cfe-commits
kashika0112 wrote: > I see two parts here: > > 1. Making the diagnostics helpful: Agreed that this would be very confusing > atm. In that aspect we still have `-Wexperimental-lifetime-suggestions` which > would give at least the locations of all inferred annotations. Also I think, > in its mo

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/155905 >From 9a30c2b92be357deac5a65e2fa0952d91634de70 Mon Sep 17 00:00:00 2001 From: Dominicentek Date: Thu, 28 Aug 2025 20:46:35 +0200 Subject: [PATCH 01/11] Add --project-root to clangd --- clang-tools-extra

[clang] [LifetimeSafety] Infer [[clang::lifetimebound]] annotation (PR #171081)

2025-12-08 Thread Kashika Akhouri via cfe-commits
https://github.com/kashika0112 updated https://github.com/llvm/llvm-project/pull/171081 >From d9e30d12154c68a956bbf8eabb1a56a572e8e118 Mon Sep 17 00:00:00 2001 From: Kashika Akhouri Date: Mon, 8 Dec 2025 06:14:28 + Subject: [PATCH 1/3] Add annotation inference --- clang/lib/Analysis/Lifet

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/155905 >From 9a30c2b92be357deac5a65e2fa0952d91634de70 Mon Sep 17 00:00:00 2001 From: Dominicentek Date: Thu, 28 Aug 2025 20:46:35 +0200 Subject: [PATCH 01/10] Add --project-root to clangd --- clang-tools-extra

[clang] [compiler-rt] [UBSAN] add null and alignment checks for aggregates (PR #164548)

2025-12-08 Thread VASU SHARMA via cfe-commits
https://github.com/vasu-the-sharma updated https://github.com/llvm/llvm-project/pull/164548 >From 856ac3b4110d79e57bfef9fed52c00a989683083 Mon Sep 17 00:00:00 2001 From: Vasu Sharma Date: Wed, 22 Oct 2025 10:04:59 +0530 Subject: [PATCH 1/7] add null and aligment checks for aggregates --- clan

[clang] [llvm] [clang][Hexagon] Add Picolibc as part of triple (PR #169613)

2025-12-08 Thread via cfe-commits
https://github.com/quic-k updated https://github.com/llvm/llvm-project/pull/169613 >From 767ef0ae4193335ebf5bf0a9a01a94d3c64052b2 Mon Sep 17 00:00:00 2001 From: Kushal Pal Date: Tue, 9 Dec 2025 11:37:25 +0530 Subject: [PATCH 1/2] [Clang] Add Picolibc environment type for triples Introduce `Env

[clang-tools-extra] [clang-tidy] Add AnalyzeParameters option to misc-const-correctness (PR #171215)

2025-12-08 Thread via cfe-commits
@@ -135,20 +147,83 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder *Finder) { .bind("function-decl"); Finder->addMatcher(FunctionScope, this); + + if (AnalyzeParameters) { +const auto ParamMatcher = +parmVarDecl(unless(CommonExcludeTypes),

[clang] [AMDGPU] Removal of language sensitive option for _Float16 and half('e') handling (PR #170443)

2025-12-08 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51414 tests passed * 852 tests skipped * 3 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CodeGen/builtins-extended-image.c ``` Exit Code: 2 Command Output (stdout): -- # RUN: at line 2

[clang-tools-extra] [clang-tidy] Add AnalyzeParameters option to misc-const-correctness (PR #171215)

2025-12-08 Thread via cfe-commits
@@ -135,20 +147,83 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder *Finder) { .bind("function-decl"); Finder->addMatcher(FunctionScope, this); + + if (AnalyzeParameters) { +const auto ParamMatcher = +parmVarDecl(unless(CommonExcludeTypes),

[clang] [OpenCL] Add missing Intel extensions to OpenCLExtensions.def (PR #169875)

2025-12-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-linux-abi-test` running on `sie-linux-worker2` while building `clang` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/8/builds/24447 Here is the relevant

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
https://github.com/Luhaocong edited https://github.com/llvm/llvm-project/pull/171094 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-08 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa deleted https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-08 Thread YunQiang Su via cfe-commits
@@ -4002,8 +4012,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Result = Builder.CreateBinaryIntrinsic( Ty->isSignedIntegerType() ? Intrinsic::smin : Intrinsic::umin, Op0, Op1, nullptr, "elt.min"); -} else -

[clang] [AMDGPU] Removal of language sensitive option for _Float16 and half('e') handling (PR #170443)

2025-12-08 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 updated https://github.com/llvm/llvm-project/pull/170443 >From b1b36294e96793a447cb3d5c6f30fad7cb34967e Mon Sep 17 00:00:00 2001 From: ranapratap55 Date: Wed, 3 Dec 2025 14:48:30 +0530 Subject: [PATCH] [AMDGPU] Removal of language sensitive option for _Float16 a

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-08 Thread YunQiang Su via cfe-commits
@@ -4002,8 +4012,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Result = Builder.CreateBinaryIntrinsic( Ty->isSignedIntegerType() ? Intrinsic::smin : Intrinsic::umin, Op0, Op1, nullptr, "elt.min"); -} else -

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-08 Thread YunQiang Su via cfe-commits
@@ -4002,8 +4012,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Result = Builder.CreateBinaryIntrinsic( Ty->isSignedIntegerType() ? Intrinsic::smin : Intrinsic::umin, Op0, Op1, nullptr, "elt.min"); -} else -

[clang] [OpenCL] Add missing Intel extensions to OpenCLExtensions.def (PR #169875)

2025-12-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-global-isel` running on `linaro-clang-aarch64-global-isel` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/125/builds/11950 Here is the

[clang] [llvm] [RISCV] Add Propeller support for RISC-V (PR #170992)

2025-12-08 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/170992 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][counted_by] Correct signed counted_by values (PR #171260)

2025-12-08 Thread Bill Wendling via cfe-commits
bwendling wrote: This lacks new testcases. However I think that's okay, because the current tests generate the correct code generation. If you have suggestions for unit tests, please let me know. https://github.com/llvm/llvm-project/pull/171260 ___ c

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-08 Thread Timm Baeder via cfe-commits
@@ -75,6 +75,80 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask, return MaskVec; } +static Value *emitX86Round(CodeGenFunction &CGF, Value *X, unsigned M) { + unsigned RoundingMask = 0b11; + unsigned UpdatePEBit = 0b100; + unsigned UseMXCSRBit = 0b1000

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-08 Thread Timm Baeder via cfe-commits
@@ -75,6 +75,80 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask, return MaskVec; } +static Value *emitX86Round(CodeGenFunction &CGF, Value *X, unsigned M) { + unsigned RoundingMask = 0b11; + unsigned UpdatePEBit = 0b100; + unsigned UseMXCSRBit = 0b1000

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-08 Thread Timm Baeder via cfe-commits
@@ -75,6 +75,80 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask, return MaskVec; } +static Value *emitX86Round(CodeGenFunction &CGF, Value *X, unsigned M) { tbaederr wrote: What does `M` mean? https://github.com/llvm/llvm-project/pull/1

[clang] [Clang][counted_by] Correct signed counted_by values (PR #171260)

2025-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Bill Wendling (bwendling) Changes If the 'counted_by' value is signed, we will incorrectly allow accesses when the value is negative. This has obvious bad effects as it will allow accessing a huge swath of unallocated memory. Also

[clang] [OpenCL] Add missing Intel extensions to OpenCLExtensions.def (PR #169875)

2025-12-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/20054 Here is the relevant piece

[clang-tools-extra] [clang-tidy] Add modernize-use-init-statement check (PR #171086)

2025-12-08 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,354 @@ +//===--===// +// +// 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] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
@@ -30,21 +30,22 @@ using namespace clang; using namespace clang::CIRGen; using namespace llvm; -mlir::Value CIRGenFunction::emitAArch64SVEBuiltinExpr(unsigned builtinID, - const CallExpr *expr) { +std::optional +CIRGenFunct

[clang] [llvm] [RISCV] Add Propeller support for RISC-V (PR #170992)

2025-12-08 Thread Pengcheng Wang via cfe-commits
@@ -89,6 +89,17 @@ RISCVInstrInfo::RISCVInstrInfo(const RISCVSubtarget &STI) #define GET_INSTRINFO_HELPERS #include "RISCVGenInstrInfo.inc" +void RISCVInstrInfo::insertNoop(MachineBasicBlock &MBB, +MachineBasicBlock::iterator MI) const { + Debu

[clang] [llvm] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-12-08 Thread Priyanshu Kumar via cfe-commits
Priyanshu3820 wrote: Thanks @andykaylor for the review and guidance! This was a great learning experience. https://github.com/llvm/llvm-project/pull/169310 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/

[clang] [OpenCL] Add missing Intel extensions to OpenCLExtensions.def (PR #169875)

2025-12-08 Thread Michal Paszkowski via cfe-commits
https://github.com/michalpaszkowski approved this pull request. https://github.com/llvm/llvm-project/pull/169875 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add the ability to detect if SwitchOp covers all the cases (PR #171246)

2025-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jasmine Tang (badumbatish) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/171246.diff 3 Files Affected: - (modified) clang/include/clang/CIR/Dialect/IR/CIROps.td (+7-1) - (modified) clang/lib/CIR/CodeGen/CIRGenStmt.c

[clang] [CIR] Add the ability to detect if SwitchOp covers all the cases (PR #171246)

2025-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Jasmine Tang (badumbatish) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/171246.diff 3 Files Affected: - (modified) clang/include/clang/CIR/Dialect/IR/CIROps.td (+7-1) - (modified) clang/lib/CIR/CodeGen/CIRGenStmt

[clang] [llvm] [Offloading] Extend OffloadBinary format to support multiple metadata entries (PR #169425)

2025-12-08 Thread Yury Plyakhin via cfe-commits
https://github.com/YuriPlyakhin updated https://github.com/llvm/llvm-project/pull/169425 >From ce7ab7652cf29469a8addea8ebe67f408b4b03af Mon Sep 17 00:00:00 2001 From: "Plyakhin, Yury" Date: Tue, 25 Nov 2025 00:40:45 +0100 Subject: [PATCH 01/11] [Offloading] Extend OffloadBinary format to suppor

[clang] [CIR] Add the ability to detect if SwitchOp covers all the cases (PR #171246)

2025-12-08 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish created https://github.com/llvm/llvm-project/pull/171246 None >From 40d3ddb8a9493563dba2858e07d19a78deb9326f Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Mon, 8 Dec 2025 05:00:55 -0800 Subject: [PATCH] Add switch case covered cirops.td --- clang/include/cl

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-12-08 Thread Alexander Kornienko via cfe-commits
alexfh wrote: > Sent #170823 > > @alexfh please test this with this PR. I've started testing of https://github.com/llvm/llvm-project/pull/170090 + https://github.com/llvm/llvm-project/pull/170823 + this PR. I'll get back with the results in a couple of days. https://github.com/llvm/llvm-proj

[libclc] [NFC][libclc] Delete OpenCL builtin declarations (PR #170803)

2025-12-08 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/170803 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
https://github.com/Luhaocong edited https://github.com/llvm/llvm-project/pull/171094 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [Support][JSON] Use `std::map` for object storage (PR #171230)

2025-12-08 Thread Zixu Wang via cfe-commits
zixu-w wrote: Also tested `std::unordered_map`. Here are the updated full results: For the constructed test input:   | Peak memory usage (single parse) | Duration (parsing 100 times) | -- | -- | -- Original `DenseMap` | 3675108832 bytes (3.42 GB) | 53637 ms `DenseMap` with 8 initial buckets | 98

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
@@ -1352,7 +1352,14 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, } // Now see if we can emit a target-specific builtin. - if (mlir::Value v = emitTargetBuiltinExpr(builtinID, e, returnValue)) { + if (std::optional rst = +

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
@@ -1352,7 +1352,14 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, } // Now see if we can emit a target-specific builtin. - if (mlir::Value v = emitTargetBuiltinExpr(builtinID, e, returnValue)) { + if (std::optional rst = +

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
@@ -5493,7 +5493,7 @@ def CIR_AtomicClearOp : CIR_Op<"atomic.clear"> { }]; } -def CIR_AtomicFence : CIR_Op<"atomic.fence"> { +def CIR_AtomicFenceOp : CIR_Op<"atomic.fence"> { Luhaocong wrote: I revert this change and will submit a new PR https://github.com

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Sirui Mu via cfe-commits
@@ -1523,13 +1523,37 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__mulh: case X86::BI__umulh: case X86::BI_mul128: - case X86::BI_umul128: - case X86::BI__faststorefence: + case X86::BI_umul128: { +cgm.errorNYI(expr->getSource

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-08 Thread via cfe-commits
@@ -736,6 +743,22 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, // -f(-no)sanitize=leak should change whether leak detection is enabled by // default in ASan? + // Error if a non-UBSan sanitizer is passed to + // `-fsanitize-ignore-for-ubsan-feature=`. + // + //

[clang] [CIR][X86] Implement lowering for `readwritebarrier` builtins (PR #171094)

2025-12-08 Thread Haocong Lu via cfe-commits
@@ -1523,13 +1523,37 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__mulh: case X86::BI__umulh: case X86::BI_mul128: - case X86::BI_umul128: - case X86::BI__faststorefence: + case X86::BI_umul128: { +cgm.errorNYI(expr->getSource

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-08 Thread via cfe-commits
@@ -3973,6 +3980,10 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args, Opts.PIE = Args.hasArg(OPT_pic_is_pie); parseSanitizerKinds("-fsanitize=", Args.getAllArgValues(OPT_fsanitize_EQ), Diags, Opts.Sanitize); +parseS

[clang] [llvm] [Offloading] Extend OffloadBinary format to support multiple metadata entries (PR #169425)

2025-12-08 Thread Yury Plyakhin via cfe-commits
https://github.com/YuriPlyakhin updated https://github.com/llvm/llvm-project/pull/169425 >From ce7ab7652cf29469a8addea8ebe67f408b4b03af Mon Sep 17 00:00:00 2001 From: "Plyakhin, Yury" Date: Tue, 25 Nov 2025 00:40:45 +0100 Subject: [PATCH 01/10] [Offloading] Extend OffloadBinary format to suppor

[clang] [C++20] [Modules] Don't import initializer/pending implicit instantiations from other named module (PR #167468)

2025-12-08 Thread Chuanqi Xu via cfe-commits
@@ -4087,10 +4087,14 @@ llvm::Error ASTReader::ReadASTBlock(ModuleFile &F, std::errc::illegal_byte_sequence, "Invalid PENDING_IMPLICIT_INSTANTIATIONS block"); - for (unsigned I = 0, N = Record.size(); I != N; /* in loop */) { -PendingInstan

[clang] [CIR][NFC] Fix bad switch fallthroughs in emitStmt (PR #171224)

2025-12-08 Thread via cfe-commits
https://github.com/Andres-Salamanca approved this pull request. Sorry for this. I’ll be more careful. https://github.com/llvm/llvm-project/pull/171224 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [CIR] Add scoped atomic load operation (PR #171134)

2025-12-08 Thread Sirui Mu via cfe-commits
@@ -399,20 +399,14 @@ static void emitAtomicCmpXchgFailureSet(CIRGenFunction &cgf, AtomicExpr *e, static void emitAtomicOp(CIRGenFunction &cgf, AtomicExpr *expr, Address dest, Address ptr, Address val1, Address val2, Expr *isWe

[clang] [AMDGPU] Modifies builtin def to take _Float16('x') for both HIP/C++ and for OpenCL (PR #167652)

2025-12-08 Thread Rana Pratap Reddy via cfe-commits
@@ -10527,6 +10527,21 @@ bool ASTContext::areCompatibleVectorTypes(QualType FirstVec, Second->getVectorKind() != VectorKind::RVVFixedLengthMask_4) return true; + // In OpenCL, treat half and _Float16 vector types as compatible. ranapratap55 wrote:

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-08 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51413 tests passed * 852 tests skipped * 4 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.ClangScanDeps/link-libraries.c ``` Exit Code: 3221225477 Command Output (stdout): -- # RUN: at l

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-08 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 84980 tests passed * 1151 tests skipped * 5 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.ClangScanDeps/link-libraries.c ``` Exit Code: -11 Command Output (stdout): -- # RUN: at line 1 r

[clang] [llvm] [InferAddressSpaces] Support address space inference from load values (PR #171019)

2025-12-08 Thread via cfe-commits
https://github.com/actinks edited https://github.com/llvm/llvm-project/pull/171019 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MTE] Add an attribute to opt-in memory tagging of global variables while using fsanitize=memtag-globals (#166380) (PR #168535)

2025-12-08 Thread Florian Mayer via cfe-commits
https://github.com/fmayer approved this pull request. https://github.com/llvm/llvm-project/pull/168535 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-08 Thread Florian Mayer via cfe-commits
@@ -736,6 +743,22 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, // -f(-no)sanitize=leak should change whether leak detection is enabled by // default in ASan? + // Error if a non-UBSan sanitizer is passed to + // `-fsanitize-ignore-for-ubsan-feature=`. + // + //

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-08 Thread Florian Mayer via cfe-commits
@@ -3973,6 +3980,10 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args, Opts.PIE = Args.hasArg(OPT_pic_is_pie); parseSanitizerKinds("-fsanitize=", Args.getAllArgValues(OPT_fsanitize_EQ), Diags, Opts.Sanitize); +parseS

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Don't treat assignment to an +1 out argument as a leak (PR #161633)

2025-12-08 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/161633 >From 35ae9ac455dac75db1745984dc740cf276a9dcc8 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Wed, 1 Oct 2025 23:41:54 -0700 Subject: [PATCH 1/2] [alpha.webkit.RetainPtrCtorAdoptChecker] Don't treat assignment

[clang] [clang-tools-extra] [llvm] [Support][JSON] Use `std::map` for object storage (PR #171230)

2025-12-08 Thread Zixu Wang via cfe-commits
https://github.com/zixu-w updated https://github.com/llvm/llvm-project/pull/171230 >From cef7f9c203022471a7a3c8c2995688af521a3d5c Mon Sep 17 00:00:00 2001 From: Zixu Wang Date: Mon, 8 Dec 2025 15:21:23 -0800 Subject: [PATCH] [Support][JSON] Use `std::map` for object storage `llvm::DenseMap` is

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-12-08 Thread NagaChaitanya Vellanki via cfe-commits
chaitanyav wrote: thank you @efriedma-quic @erichkeane for the review and guidance throughout the review. https://github.com/llvm/llvm-project/pull/160259 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/

[clang] [alpha.webkit.UnretainedCallArgsChecker] Recognize [allocObj() init] pattern (PR #161019)

2025-12-08 Thread Ryosuke Niwa via cfe-commits
@@ -321,6 +321,51 @@ bool isExprToGetCheckedPtrCapableMember(const clang::Expr *E) { return result && *result; } +bool isAllocInit(const Expr *E, const Expr **InnerExpr) { + auto *ObjCMsgExpr = dyn_cast(E); + if (auto *POE = dyn_cast(E)) { +if (unsigned ExprCount = PO

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Naveen Seth Hanig (naveen-seth) Changes This is the second patch in a series that removes the dependency of `clangDependencyScanning` on `clangDriver`, splitting the work from #169964 into smaller changes (see comment linked below). This

[clang] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] [libc++] Implement P2242R1: `std::views::chunk` (PR #171109)

2025-12-08 Thread via cfe-commits
Nicolai =?utf-8?q?Hähnle?= ,jimingham ,Matt Arsenault ,Priyanshu Kumar <[email protected]>,Aiden Grossman ,Maksim Levental Message-ID: In-Reply-To: github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this lo

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-12-08 Thread Denis Mikhailov via cfe-commits
@@ -2283,6 +2283,37 @@ using HasOpNameMatcher = HasOpNameMatcher hasAnyOperatorNameFunc(ArrayRef NameRefs); +/// Matches nodes of type T (CompoundStmt or StmtExpr) that contain a sequence +/// of consecutive substatements matching the provided matchers in order. +/// +/// See

[clang] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] [libc++] Implement P2242R1: `std::views::chunk` (PR #171109)

2025-12-08 Thread via cfe-commits
Nicolai =?utf-8?q?Hähnle?= ,jimingham ,Matt Arsenault ,Priyanshu Kumar <[email protected]>,Aiden Grossman ,Maksim Levental Message-ID: In-Reply-To: https://github.com/anonymouspc converted_to_draft https://github.com/llvm/llvm-project/pull/171109 _

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-12-08 Thread Denis Mikhailov via cfe-commits
@@ -2283,6 +2283,37 @@ using HasOpNameMatcher = HasOpNameMatcher hasAnyOperatorNameFunc(ArrayRef NameRefs); +/// Matches nodes of type T (CompoundStmt or StmtExpr) that contain a sequence +/// of consecutive substatements matching the provided matchers in order. +/// +/// See

[clang] [CIR][NFC] Add stubs for missing visitors in ScalarExprEmitter (PR #171222)

2025-12-08 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/171222 >From 08d8c69bb704f1f13a1837038d14a4253e3d0b74 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 8 Dec 2025 14:54:34 -0800 Subject: [PATCH 1/3] [CIR][NFC] Add stubs for missing visitors in ScalarExprEmit

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-08 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 3054 tests passed * 7 tests skipped All tests passed but another part of the build **failed**. Click on a failure below to see the details. tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenAsm.cpp.o ``` FAILED: to

[clang] [llvm] RFC: Implementing new mechanism for hard register operands to inline asm as a constraint. (PR #85846)

2025-12-08 Thread Tony Tao via cfe-commits
tltao wrote: > If you do want to reject, please make sure we reject gracefully at both the > clang level and the LLVM IR level. Is there a reason we also need to check it in the LLVM IR level if we are already checking for it in clang? This PR only affects the Clang output so I don't know for

[clang] [llvm] [llvm] Introduce MoveEntryAllocaInit pass (PR #164882)

2025-12-08 Thread Nimit Sachdeva via cfe-commits
nimit25 wrote: @dtcxzyw how did you find out that case? I went through https://github.com/dtcxzyw/llvm-fuzz-service/actions/runs/20032800860/artifacts/4799826696 and can't see this one. Just curious for next time :) https://github.com/llvm/llvm-project/pull/164882

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-08 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/169131 >From 61f84a4c4dfa70a4c4367c07075ac9a392cf70b4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 21 Nov 2025 15:53:11 -0800 Subject: [PATCH 01/23] [clang][ssaf] Introduce entity abstraction for SSAF Ad

[clang] 89bc5ff - [CIR] Clean up visibility conversion (NFC) (#171000)

2025-12-08 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-12-08T22:52:56+01:00 New Revision: 89bc5fff54b750c145c27d44e70692c7af7aba3b URL: https://github.com/llvm/llvm-project/commit/89bc5fff54b750c145c27d44e70692c7af7aba3b DIFF: https://github.com/llvm/llvm-project/commit/89bc5fff54b750c145c27d44e70692c7af7aba3b.diff

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow GFNI intrinsics to be used in constexpr (PR #169619)

2025-12-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM - cheers https://github.com/llvm/llvm-project/pull/169619 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [FlowSensitive] [StatusOr] [12/N] Add support for smart pointers (PR #170943)

2025-12-08 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/170943 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f6971bf - [FlowSensitive] [StatusOr] [12/N] Add support for smart pointers (#170943)

2025-12-08 Thread via cfe-commits
Author: Florian Mayer Date: 2025-12-08T20:56:22Z New Revision: f6971bf25daff242590ea025ae3b37603845c0b4 URL: https://github.com/llvm/llvm-project/commit/f6971bf25daff242590ea025ae3b37603845c0b4 DIFF: https://github.com/llvm/llvm-project/commit/f6971bf25daff242590ea025ae3b37603845c0b4.diff LOG:

[clang] [Clang] Fix visibility macros for c-index-test (PR #171054)

2025-12-08 Thread via cfe-commits
kkent030315 wrote: > > Perhaps some of `if (MSVC)` blocks should be changed to `(WIN32 AND NOT > > MINGW)`. > > `(MSVC OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")` might be better. > [gitlab.kitware.com/cmake/cmake/-/issues/19724](https://gitlab.kitware.com/cmake/cmake/-/issues/19724) I don't t

[clang] [Clang] Fix visibility macros for c-index-test (PR #171054)

2025-12-08 Thread via cfe-commits
kkent030315 wrote: @kikairoya Thank you for the detailed info! I appreciate. > I think the problem is that libclang.dll is exporting C++ interfaces; that > looks unintended. Yes, it is. In the case we're not modifying dllimport attributes in `Compiler.h` what would you think is the best/bette

  1   2   3   4   5   >