[clang-tools-extra] clangd: Extend reference search with constructor calls through forwarding (PR #169742)

2025-12-02 Thread via cfe-commits
https://github.com/timon-ul updated https://github.com/llvm/llvm-project/pull/169742 >From 44ebad6933fccab5bcfc866ee56dd5381da5f452 Mon Sep 17 00:00:00 2001 From: Timon Ulrich Date: Mon, 10 Nov 2025 10:40:14 +0100 Subject: [PATCH 01/13] clangd: make forwarding heuristic available for more loca

[clang] Move CodeGenFunction::EmitScalarOrConstFoldImmArg; NFC (PR #170286)

2025-12-02 Thread Sven van Haastregt via cfe-commits
https://github.com/svenvh closed https://github.com/llvm/llvm-project/pull/170286 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 98182f4 - Move CodeGenFunction::EmitScalarOrConstFoldImmArg; NFC (#170286)

2025-12-02 Thread via cfe-commits
Author: Sven van Haastregt Date: 2025-12-03T08:58:31+01:00 New Revision: 98182f4d209ded292cb6030f45bcae132096acae URL: https://github.com/llvm/llvm-project/commit/98182f4d209ded292cb6030f45bcae132096acae DIFF: https://github.com/llvm/llvm-project/commit/98182f4d209ded292cb6030f45bcae132096acae.

[clang-tools-extra] [clang-tidy] Fix `cppcoreguidelines-pro-type-member-init` check (PR #169832)

2025-12-02 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/169832 >From f41310dcb601075d980c4d7163d8db1d5dee7913 Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 27 Nov 2025 23:50:47 +0800 Subject: [PATCH 1/3] [clang-tidy] Fix `cppcoreguidelines-pro-type-member-init` check --- .

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -85,6 +85,71 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Location loc, return maskVec; } +static mlir::Value getBoolMaskVecValue(CIRGenBuilderTy &builder, + mlir::Location loc, mlir::Value mask, +

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -85,6 +85,71 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Location loc, return maskVec; } +static mlir::Value getBoolMaskVecValue(CIRGenBuilderTy &builder, + mlir::Location loc, mlir::Value mask, +

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -701,7 +766,31 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_extractf64x2_256_mask: case X86::BI__builtin_ia32_extracti64x2_256_mask: case X86::BI__builtin_ia32_extractf64x2_512_mask: - case X86::BI__builtin_ia32_ext

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -701,7 +766,31 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_extractf64x2_256_mask: case X86::BI__builtin_ia32_extracti64x2_256_mask: case X86::BI__builtin_ia32_extractf64x2_512_mask: - case X86::BI__builtin_ia32_ext

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -85,6 +85,71 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Location loc, return maskVec; } +static mlir::Value getBoolMaskVecValue(CIRGenBuilderTy &builder, + mlir::Location loc, mlir::Value mask, +

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -85,6 +85,71 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Location loc, return maskVec; } +static mlir::Value getBoolMaskVecValue(CIRGenBuilderTy &builder, + mlir::Location loc, mlir::Value mask, +

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -701,7 +766,31 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_extractf64x2_256_mask: case X86::BI__builtin_ia32_extracti64x2_256_mask: case X86::BI__builtin_ia32_extractf64x2_512_mask: - case X86::BI__builtin_ia32_ext

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -266,6 +266,16 @@ class CIR_VectorTypeOf types, string summary = ""> "vector of " # CIR_TypeSummaries.value, summary)>; +class CIR_VectorOf : CIR_ConfinedType< + CIR_AnyVectorType, + [CIR_ElementTypePred], + "CIR vector of " # T.summary>; + +// T

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -266,6 +266,16 @@ class CIR_VectorTypeOf types, string summary = ""> "vector of " # CIR_TypeSummaries.value, summary)>; +class CIR_VectorOf : CIR_ConfinedType< + CIR_AnyVectorType, + [CIR_ElementTypePred], + "CIR vector of " # T.summary>; ---

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -1856,7 +1856,7 @@ def CIR_SelectOp : CIR_Op<"select", [ ``` }]; - let arguments = (ins CIR_BoolType:$condition, CIR_AnyType:$true_value, + let arguments = (ins CIR_ScalarOrVectorOf:$condition, CIR_AnyType:$true_value, CIR_AnyType:$false_val

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -266,6 +266,16 @@ class CIR_VectorTypeOf types, string summary = ""> "vector of " # CIR_TypeSummaries.value, summary)>; +class CIR_VectorOf : CIR_ConfinedType< + CIR_AnyVectorType, + [CIR_ElementTypePred], + "CIR vector of " # T.summary>; + +// T

[clang] [CLANG] Fixes the crash on the use of nested requirements in require expressions (PR #169876)

2025-12-02 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/169876 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

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

[clang] [llvm] Minimal support of floating-point operand bundles (PR #135658)

2025-12-02 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 h,cpp -- llvm/include/llvm/IR/FPEnv.h llvm/include/llvm

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-02 Thread via cfe-commits
@@ -172,13 +172,52 @@ void UseStdMinMaxCheck::check(const MatchFinder::MatchResult &Result) { auto ReplaceAndDiagnose = [&](const llvm::StringRef FunctionName) { const SourceManager &Source = *Result.SourceManager; +llvm::SmallString<64> Comment; + +const auto A

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-02 Thread via cfe-commits
@@ -172,13 +172,52 @@ void UseStdMinMaxCheck::check(const MatchFinder::MatchResult &Result) { auto ReplaceAndDiagnose = [&](const llvm::StringRef FunctionName) { const SourceManager &Source = *Result.SourceManager; +llvm::SmallString<64> Comment; + +const auto A

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-02 Thread via cfe-commits
@@ -172,13 +172,52 @@ void UseStdMinMaxCheck::check(const MatchFinder::MatchResult &Result) { auto ReplaceAndDiagnose = [&](const llvm::StringRef FunctionName) { const SourceManager &Source = *Result.SourceManager; +llvm::SmallString<64> Comment; + +const auto A

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-02 Thread via cfe-commits
@@ -273,3 +273,99 @@ void useRight() { } } // namespace gh121676 + +void testComments() { + int box_depth = 10; + int max_depth = 5; + + // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `>` [readability-use-std-min-max] + // CHECK-FIXES: box_depth = s

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-02 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/169908 >From 3b7d92ba5fb8d5849e68369fc0f8ea56d1cf494d Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 28 Nov 2025 20:06:44 +0800 Subject: [PATCH 1/2] [clang-tidy] Preserve comments in `readability-use-std-min-max` --- .

[clang] [CIR] Use default attribute printer/parser (NFC) (PR #170366)

2025-12-02 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/170366 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 30f479f - [CIR] Use default attribute printer/parser (NFC) (#170366)

2025-12-02 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-12-03T08:20:50+01:00 New Revision: 30f479fa2b08d6e480939a57384996f7a276eb91 URL: https://github.com/llvm/llvm-project/commit/30f479fa2b08d6e480939a57384996f7a276eb91 DIFF: https://github.com/llvm/llvm-project/commit/30f479fa2b08d6e480939a57384996f7a276eb91.diff

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-02 Thread via cfe-commits
@@ -172,13 +171,21 @@ void UseStdMinMaxCheck::check(const MatchFinder::MatchResult &Result) { auto ReplaceAndDiagnose = [&](const llvm::StringRef FunctionName) { const SourceManager &Source = *Result.SourceManager; +const std::string Comment = +Lexer::getSou

[clang] [CIR] Add SCF ResumeOp (PR #170042)

2025-12-02 Thread Henrich Lauko via cfe-commits
@@ -898,6 +898,36 @@ def CIR_ContinueOp : CIR_Op<"continue", [Terminator]> { let hasLLVMLowering = false; } +//===--===// +// Resume +//===

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

2025-12-02 Thread Nikita Popov via cfe-commits
nikic wrote: This is still doing the transform in two phases, one for auto-init allocas, and then again without the limitation. Why? Why can't we directly move all allocas? https://github.com/llvm/llvm-project/pull/164882 ___ cfe-commits mailing list

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-12-02 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/19772 Here is the relevant piece

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-02 Thread Kashika Akhouri via cfe-commits
https://github.com/kashika0112 updated https://github.com/llvm/llvm-project/pull/169767 >From 00494b03dd31a4a1e541fb45bd524ee452541208 Mon Sep 17 00:00:00 2001 From: Kashika Akhouri Date: Thu, 27 Nov 2025 07:13:49 + Subject: [PATCH 1/9] Add lifetime annotation suggestion --- .../Analyses/

[clang] [Clang][X86] Add tests for AVX512 integer comparison intrinsics to be used in constexpr (PR #169452)

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

[clang] [Clang][X86] Add tests for AVX512 integer comparison intrinsics to be used in constexpr (PR #169452)

2025-12-02 Thread via cfe-commits
@@ -646,20 +646,682 @@ __mmask16 test_mm_cmp_epi8_mask(__m128i __a, __m128i __b) { return (__mmask16)_mm_cmp_epi8_mask(__a, __b, 0); } +// cmpeq tests TEST_CONSTEXPR(_mm_cmpeq_epi8_mask( -((__m128i)(__v16qi){5, 3, 7, 2, 9, 3, 7, 1, 5, 4, 8, 2, 9, 6, 7, 5}), -((__m1

[clang] [CIR] Upstream builtin scatter from ClangIR incubator (PR #170353)

2025-12-02 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish updated https://github.com/llvm/llvm-project/pull/170353 >From fe3427ac7b415fa9a1de58973ed8ca0bd8598847 Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Tue, 2 Dec 2025 11:11:48 -0800 Subject: [PATCH] Upstream scatter from ClangIR incubator Remove std::string co

[clang] Replace interp__builtin_blend with interp__builtin_ia32_shuffle_gener… (PR #170217)

2025-12-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr commented: `interp__builtin_blend` is unused now, isn't it? https://github.com/llvm/llvm-project/pull/170217 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jasmine Tang (badumbatish) Changes Implement builtin extractf, tests are from clang/test/CodeGen/X86/avx512f-builtins.c. I'm not sure why the OG tests are very succinct but i'm porting the same testing format over from OG. I added a new

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Jasmine Tang (badumbatish) Changes Implement builtin extractf, tests are from clang/test/CodeGen/X86/avx512f-builtins.c. I'm not sure why the OG tests are very succinct but i'm porting the same testing format over from OG. I added a n

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Jasmine Tang via cfe-commits
badumbatish wrote: merge conflict, will fix soon https://github.com/llvm/llvm-project/pull/170427 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement builtin extractf (PR #170427)

2025-12-02 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish created https://github.com/llvm/llvm-project/pull/170427 Implement builtin extractf, tests are from clang/test/CodeGen/X86/avx512f-builtins.c. I'm not sure why the OG tests are very succinct but i'm porting the same testing format over from OG. I added a new ty

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-12-02 Thread Jinjie Huang via cfe-commits
https://github.com/Jinjie-Huang closed https://github.com/llvm/llvm-project/pull/162491 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 689b3cc - [clang] Support header shadowing diagnostics in Clang header search (#162491)

2025-12-02 Thread via cfe-commits
Author: Jinjie Huang Date: 2025-12-03T14:08:20+08:00 New Revision: 689b3cc7c700b1687cf4aaaf4ef2c81a4e988917 URL: https://github.com/llvm/llvm-project/commit/689b3cc7c700b1687cf4aaaf4ef2c81a4e988917 DIFF: https://github.com/llvm/llvm-project/commit/689b3cc7c700b1687cf4aaaf4ef2c81a4e988917.diff

[clang-tools-extra] 73036cf - [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings (#170424)

2025-12-02 Thread via cfe-commits
Author: Baranov Victor Date: 2025-12-03T06:02:50Z New Revision: 73036cf9113b4748d4fbb28037e8714ff2486238 URL: https://github.com/llvm/llvm-project/commit/73036cf9113b4748d4fbb28037e8714ff2486238 DIFF: https://github.com/llvm/llvm-project/commit/73036cf9113b4748d4fbb28037e8714ff2486238.diff LOG

[clang-tools-extra] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings (PR #170424)

2025-12-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/170424 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings (PR #170424)

2025-12-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor auto_merge_enabled https://github.com/llvm/llvm-project/pull/170424 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings (PR #170424)

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

[clang-tools-extra] [clang-tidy][NFC] Enable readability-any-all-of check (PR #167134)

2025-12-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/167134 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] d05370e - [clang-tidy][NFC] Enable readability-any-all-of check (#167134)

2025-12-02 Thread via cfe-commits
Author: Baranov Victor Date: 2025-12-03T08:56:24+03:00 New Revision: d05370e6863e28fcf988b8491dc583fcf5e4e1be URL: https://github.com/llvm/llvm-project/commit/d05370e6863e28fcf988b8491dc583fcf5e4e1be DIFF: https://github.com/llvm/llvm-project/commit/d05370e6863e28fcf988b8491dc583fcf5e4e1be.diff

[clang-tools-extra] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings (PR #170424)

2025-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/170424.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/ExceptionEscapeCheck.cpp (+2-1) - (modified) clan

[clang-tools-extra] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings (PR #170424)

2025-12-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/170424 None >From fe6d72e15c9d395f3c3d9fbc48ae40d2e09cdb44 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 3 Dec 2025 08:46:45 +0300 Subject: [PATCH] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings

[clang-tools-extra] [clang-tidy] Fix false positive in `readability-redundant-typename` (PR #170034)

2025-12-02 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/170034 >From e8bc35d273950cc6d5f1e947db1d34741de52432 Mon Sep 17 00:00:00 2001 From: mtx Date: Sun, 30 Nov 2025 20:54:12 +0800 Subject: [PATCH 1/4] [clang-tidy] Fix false positive in readability-redundant-typename ---

[clang] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins (PR #169853)

2025-12-02 Thread via cfe-commits
GeneraluseAI wrote: @andykaylor @bcardosolopes I’ve addressed the merge conflicts. When you get a chance, please help merge this. Appreciate it! https://github.com/llvm/llvm-project/pull/169853 ___ cfe-commits mailing list [email protected]

[clang-tools-extra] [clang-tidy][NFC] Enable readability-any-all-of check (PR #167134)

2025-12-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/167134 >From bef7367b02a27ac210bccb7d2ae548b1b14c8e8c Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 8 Nov 2025 15:20:50 +0300 Subject: [PATCH 1/2] [clang-tidy][NFC] Enable readability-any-all-of check ---

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-02 Thread via cfe-commits
https://github.com/DEBADRIBASAK updated https://github.com/llvm/llvm-project/pull/166568 >From fd8693c51af7d9f91be0926f4150e77c39e2dba4 Mon Sep 17 00:00:00 2001 From: Debadri Basak Date: Wed, 5 Nov 2025 14:07:42 + Subject: [PATCH 01/10] Adding the lifetime stats collection logic to Analysi

[clang] [clang][deps][NFC] Replace a vector with an array (PR #169555)

2025-12-02 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: nit: I didn't notice this since I felt the title looks related to some deps it self. It will be better to use `[ClangScanDeps]` the next time. https://github.com/llvm/llvm-project/pull/169555 ___ cfe-commits mailing list cfe-commits@

[clang] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins (PR #169853)

2025-12-02 Thread via cfe-commits
https://github.com/GeneraluseAI updated https://github.com/llvm/llvm-project/pull/169853 >From 2a5c30109ed30d5e4a0f0ca56005e1af605bf350 Mon Sep 17 00:00:00 2001 From: generaluseai Date: Fri, 28 Nov 2025 03:05:24 +0800 Subject: [PATCH] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins

[clang-tools-extra] [clang-tidy] Fix false positive in `readability-redundant-typename` (PR #170034)

2025-12-02 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/170034 >From e8bc35d273950cc6d5f1e947db1d34741de52432 Mon Sep 17 00:00:00 2001 From: mtx Date: Sun, 30 Nov 2025 20:54:12 +0800 Subject: [PATCH 1/3] [clang-tidy] Fix false positive in readability-redundant-typename ---

[clang] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins (PR #169853)

2025-12-02 Thread via cfe-commits
https://github.com/GeneraluseAI updated https://github.com/llvm/llvm-project/pull/169853 >From 68d72304eebad3ae27d415d1c3d56fd661a99755 Mon Sep 17 00:00:00 2001 From: generaluseai Date: Fri, 28 Nov 2025 03:05:24 +0800 Subject: [PATCH] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins

[clang] [CIR] Upstream builtin scatter from ClangIR incubator (PR #170353)

2025-12-02 Thread Jasmine Tang via cfe-commits
@@ -685,7 +685,94 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_scattersiv4sf: case X86::BI__builtin_ia32_scattersiv4si: case X86::BI__builtin_ia32_scattersiv8sf: - case X86::BI__builtin_ia32_scattersiv8si: + case X86:

[clang-tools-extra] [clang-tidy] Extend `bugprone-use-after-move` to allow custom invalidation functions (PR #170346)

2025-12-02 Thread via cfe-commits
https://github.com/zeyi2 approved this pull request. But would be nice to wait for other reviewers :) https://github.com/llvm/llvm-project/pull/170346 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang-tools-extra] [clang-tidy] Extend `bugprone-use-after-move` to allow custom invalidation functions (PR #170346)

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

[clang] [CLANG] Fixes the crash on the use of nested requirements in require expressions (PR #169876)

2025-12-02 Thread Ebin Jose via cfe-commits
https://github.com/ebinjose02 updated https://github.com/llvm/llvm-project/pull/169876 >From af9b88da83a7f2954a3a8ddc5f4796f2017ceaec Mon Sep 17 00:00:00 2001 From: ebinjose02 Date: Fri, 28 Nov 2025 06:46:40 + Subject: [PATCH 1/3] Fixes #165386 Nested requirements in requires-expressions m

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

2025-12-02 Thread Nimit Sachdeva via cfe-commits
https://github.com/nimit25 updated https://github.com/llvm/llvm-project/pull/164882 >From a05e8f9ca277e3ca6bcb6869a6adcf3bceeb4b7b Mon Sep 17 00:00:00 2001 From: Nimit Sachdeva Date: Thu, 23 Oct 2025 15:58:35 -0400 Subject: [PATCH 1/3] #150120 Introduce MoveEntryAllocaInit pass --- .../llvm/T

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

2025-12-02 Thread Nimit Sachdeva via cfe-commits
https://github.com/nimit25 updated https://github.com/llvm/llvm-project/pull/164882 >From a05e8f9ca277e3ca6bcb6869a6adcf3bceeb4b7b Mon Sep 17 00:00:00 2001 From: Nimit Sachdeva Date: Thu, 23 Oct 2025 15:58:35 -0400 Subject: [PATCH 1/3] #150120 Introduce MoveEntryAllocaInit pass --- .../llvm/T

[clang] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins (PR #169853)

2025-12-02 Thread via cfe-commits
https://github.com/GeneraluseAI updated https://github.com/llvm/llvm-project/pull/169853 >From e725dbbfc0d46f9f0de6aab5da0d784620c2bed1 Mon Sep 17 00:00:00 2001 From: generaluseai Date: Fri, 28 Nov 2025 03:05:24 +0800 Subject: [PATCH] [CIR][X86] Implement lowering for pmuldq / pmuludq builtins

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

2025-12-02 Thread Nimit Sachdeva via cfe-commits
https://github.com/nimit25 updated https://github.com/llvm/llvm-project/pull/164882 >From a05e8f9ca277e3ca6bcb6869a6adcf3bceeb4b7b Mon Sep 17 00:00:00 2001 From: Nimit Sachdeva Date: Thu, 23 Oct 2025 15:58:35 -0400 Subject: [PATCH 1/3] #150120 Introduce MoveEntryAllocaInit pass --- .../llvm/T

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM. I will wait for @ymand if he wants to review this. https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailma

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
@@ -114,9 +114,11 @@ class LifetimeTestHelper { return {}; } std::vector LID; -for (const Loan &L : Analysis.getFactManager().getLoanMgr().getLoans()) - if (L.Path.D == VD) -LID.push_back(L.ID); +for (const Loan *L : Analysis.getFactManager().

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/166568 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] CodeGen: Add LibcallLoweringInfo analysis pass (PR #168622)

2025-12-02 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/168622 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
@@ -7,8 +7,52 @@ //===--===// #include "clang/Analysis/Analyses/LifetimeSafety/Origins.h" +#include "clang/AST/Expr.h" +#include "clang/AST/RecursiveASTVisitor.h" +#include "clang/AST/TypeBase.h" +#include "c

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
@@ -21,9 +21,13 @@ #define LLVM_CLANG_ANALYSIS_ANALYSES_LIFETIMESAFETY_H #include "clang/Analysis/Analyses/LifetimeSafety/Facts.h" +#include "clang/Analysis/Analyses/LifetimeSafety/LifetimeStats.h" #include "clang/Analysis/Analyses/LifetimeSafety/LiveOrigins.h" #include "cla

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/166568 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-12-02 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM. This looks fine. Thanks for trying out the suggestions. Since this is only populated when `-print-stats`​ is enabled, I am fine with using strings as keys. https://github.com/llvm/llvm-project/pull/166568 _

[clang] [CIR] Use default attribute printer/parser (NFC) (PR #170366)

2025-12-02 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/170366 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Darwin] Prefer the toolchain-provided libc++.dylib if there is one (PR #170303)

2025-12-02 Thread Steven Wu via cfe-commits
cachemeifyoucan wrote: I think searching for libcxx dylib in the install directory for bootstrap situation makes sense but I am very worried about ingesting such a search path in such a high priority location (before sys root). That can cause user unintentionally pick up libraries in there. I

[clang-tools-extra] Extend bugprone-use-after-move check to allow custom invalidation functions (PR #170346)

2025-12-02 Thread via cfe-commits
@@ -388,9 +397,10 @@ void UseAfterMoveFinder::getReinits( } } -enum class MoveType { - Move,// std::move - Forward, // std::forward +enum MoveType { + Forward = 0, // std::forward + Move = 1, // std::move + Invalidation = 2, // other }; static MoveT

[clang-tools-extra] Extend bugprone-use-after-move check to allow custom invalidation functions (PR #170346)

2025-12-02 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/170346 >From 3fca92f9762cfa572d3098498b4c8e4ed0e0c86b Mon Sep 17 00:00:00 2001 From: higher-performance Date: Tue, 2 Dec 2025 13:20:24 -0500 Subject: [PATCH] Extend bugprone-use-after-move check to allow cus

[clang-tools-extra] [clang-tidy] New bugprone-unsafe-format-string check (PR #168691)

2025-12-02 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,111 @@ +.. title:: clang-tidy - bugprone-unsafe-format-string + +bugprone-unsafe-format-string += + +Detects usage of vulnerable format string functions with unbounded ``%s`` +specifiers that can cause buffer overflows. + +The check identifie

[clang-tools-extra] [clang-tidy] New bugprone-unsafe-format-string check (PR #168691)

2025-12-02 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: Can we give this check a more specific name rather than using "unsafe"? https://github.com/llvm/llvm-project/pull/168691 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/

[clang-tools-extra] [clang-tidy] New bugprone-unsafe-format-string check (PR #168691)

2025-12-02 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/168691 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Diagnose] Minimal support on emit-include-location in sarif mode (PR #170415)

2025-12-02 Thread via cfe-commits
https://github.com/anonymouspc updated https://github.com/llvm/llvm-project/pull/170415 >From 983aa785ee374c9c1dcbee4846dafa3ccc62b793 Mon Sep 17 00:00:00 2001 From: anonymouspc Date: Wed, 3 Dec 2025 11:27:53 +0800 Subject: [PATCH] [Clang][Diagnose] Minimal support on emit-include-location in

[clang] [Clang][Diagnose] Minimal support on emit-include-location in sarif mode (PR #170415)

2025-12-02 Thread via cfe-commits
https://github.com/anonymouspc updated https://github.com/llvm/llvm-project/pull/170415 >From 2151f3b413f839dd8e17acf3e9f718772bb5a770 Mon Sep 17 00:00:00 2001 From: anonymouspc Date: Wed, 3 Dec 2025 11:27:53 +0800 Subject: [PATCH 1/3] [Clang][Diagnose] Minimal support on emit-include-location

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-02 Thread via cfe-commits
https://github.com/matts1 updated https://github.com/llvm/llvm-project/pull/170416 >From 267f6e2a2137229bb5bcb9529b22b8c463c2a577 Mon Sep 17 00:00:00 2001 From: Matt Stark Date: Wed, 3 Dec 2025 13:21:32 +1100 Subject: [PATCH] [clang-format] Make ignored files unformatted instead of empty. Too

[clang] [Clang][Diagnose] Minimal support on emit-include-location in sarif mode (PR #170415)

2025-12-02 Thread via cfe-commits
https://github.com/anonymouspc updated https://github.com/llvm/llvm-project/pull/170415 >From 2151f3b413f839dd8e17acf3e9f718772bb5a770 Mon Sep 17 00:00:00 2001 From: anonymouspc Date: Wed, 3 Dec 2025 11:27:53 +0800 Subject: [PATCH 1/2] [Clang][Diagnose] Minimal support on emit-include-location

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-02 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 -- clang/test/Format/clang-format-ignore.cpp clang

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Matt (matts1) Changes Tools rely on the expectation that clang-format will output a formatted file. In the case of ignored files, the formatted file should just be the input file, untouched. Fixes #170407 --- Full diff: https://g

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-02 Thread via cfe-commits
https://github.com/matts1 created https://github.com/llvm/llvm-project/pull/170416 Tools rely on the expectation that clang-format will output a formatted file. In the case of ignored files, the formatted file should just be the input file, untouched. Fixes #170407 >From 2fd9cbe9c8136238e9e0

[clang] [Clang][Diagnose] Minimal support on emit-include-location in sarif mode (PR #170415)

2025-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: anonymous (anonymouspc) Changes Currently, invoking `clang++` with `-fdiagnostics-format=sarif` causes a crash, with stack traces indicating that `SARIFDiagnostic::emitIncludeLocation` is unimplemented. This PR adds minimal support for c

[clang] [Clang][Diagnose] Minimal support on emit-include-location in sarif mode (PR #170415)

2025-12-02 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [Clang][Diagnose] Minimal support on emit-include-location in sarif mode (PR #170415)

2025-12-02 Thread via cfe-commits
https://github.com/anonymouspc created https://github.com/llvm/llvm-project/pull/170415 Currently, invoking `clang++` with `-fdiagnostics-format=sarif` causes a crash, with stack traces indicating that `SARIFDiagnostic::emitIncludeLocation` is unimplemented. This PR adds minimal support for c

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
@@ -1433,6 +1433,68 @@ def CIR_BrCondOp : CIR_Op<"brcond", [ }]; } +//===--===// +// IndirectBrOp +//===--===// + +def CIR_IndirectBrOp : C

[clang] [Clang] Mark this pointer in destructors dead_on_return (PR #166276)

2025-12-02 Thread Richard Smith via cfe-commits
zygoloid wrote: Is it correct to mark destructors' `this` pointers as `dead_on_return`? What about this case: ```c++ struct X { int n; ~X() { this[n].n = 0; } }; void f() { X xs[] = {42, 0}; } ``` I think that's valid -- you can use a pointer to an array element to reach other ele

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
@@ -69,8 +129,77 @@ void D(void) { // CIR:%[[BLK2:.*]] = cir.block_address <@D, "LABEL_A"> : !cir.ptr // CIR:cir.store align(8) %[[BLK2]], %[[PTR2]] : !cir.ptr, !cir.ptr> // CIR:cir.br ^bb1 -// CIR: ^bb1: // pred: ^bb0 +// CIR: ^bb1([[PHI:%*.]]: !cir.ptr {{.*}})

[clang] 242077a - [clang][NFC] Promote CWG3005 test to "ready"

2025-12-02 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-12-03T06:54:53+04:00 New Revision: 242077ad1c0df4ecfd12769a38cf6fcb1b0b1d72 URL: https://github.com/llvm/llvm-project/commit/242077ad1c0df4ecfd12769a38cf6fcb1b0b1d72 DIFF: https://github.com/llvm/llvm-project/commit/242077ad1c0df4ecfd12769a38cf6fcb1b0b1d72.

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
@@ -1433,6 +1433,68 @@ def CIR_BrCondOp : CIR_Op<"brcond", [ }]; } +//===--===// +// IndirectBrOp +//===--===// + +def CIR_IndirectBrOp : C

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
@@ -1433,6 +1433,68 @@ def CIR_BrCondOp : CIR_Op<"brcond", [ }]; } +//===--===// +// IndirectBrOp +//===--===// + +def CIR_IndirectBrOp : C

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
@@ -1433,6 +1433,68 @@ def CIR_BrCondOp : CIR_Op<"brcond", [ }]; } +//===--===// +// IndirectBrOp +//===--===// + +def CIR_IndirectBrOp : C

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
https://github.com/Andres-Salamanca updated https://github.com/llvm/llvm-project/pull/169967 >From cd4fde36ffbe2b6d78687e45e1313ba03ffefd3a Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Fri, 28 Nov 2025 19:27:31 -0500 Subject: [PATCH 1/4] [CIR] Upstream support for cir.indirectBr ---

[clang] [CIR] Upstream support for cir.indirectbr (PR #169967)

2025-12-02 Thread via cfe-commits
@@ -1433,6 +1433,68 @@ def CIR_BrCondOp : CIR_Op<"brcond", [ }]; } +//===--===// +// IndirectBrOp +//===--===// + +def CIR_IndirectBrOp : C

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-02 Thread Craig Topper via cfe-commits
https://github.com/topperc updated https://github.com/llvm/llvm-project/pull/170399 >From 9d80d516bdeab8cc8e2efd64d5973260182463a5 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 2 Dec 2025 13:45:19 -0800 Subject: [PATCH 1/2] [RISCV] Update P extension to the 018 version of the spec. h

  1   2   3   4   5   6   7   >