[clang] [Clang] Support __bf16 type for SPIR/SPIR-V (PR #169012)

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Wenju He (wenju-he) Changes SPIR/SPIR-V are generic targets. Assume they support __bf16. --- Full diff: https://github.com/llvm/llvm-project/pull/169012.diff 3 Files Affected: - (modified) clang/lib/Basic/Targets/SPIR.h (+4-5) - (added

[clang] [Clang] Support __bf16 type for SPIR/SPIR-V (PR #169012)

2025-11-20 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/169012 SPIR/SPIR-V are generic targets. Assume they support __bf16. >From e036fce32859e9eb091ddd746f8507527f23d0ad Mon Sep 17 00:00:00 2001 From: Wenju He Date: Fri, 21 Nov 2025 08:52:10 +0100 Subject: [PATCH] [Clang

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-11-20 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: Please request re-review manually when ready https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-11-20 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,60 @@ +.. title:: clang-tidy - readability-avoid-default-lambda-capture + +readability-avoid-default-lambda-capture + + +Tries to replace default lambda captures (e.g. ``[&](){ ... }``, +``[=](){ ... }``) with explicit lists of c

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-11-20 Thread Baranov Victor via cfe-commits
@@ -5125,6 +5125,20 @@ AST_MATCHER_P(LambdaCapture, capturesVar, internal::Matcher, /// matches `[this]() { return cc; }`. AST_MATCHER(LambdaCapture, capturesThis) { return Node.capturesThis(); } +/// Matches lambda expressions that have default capture modes. +/// +/// Giv

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-11-20 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-11-20 Thread Baranov Victor via cfe-commits
@@ -5125,6 +5125,20 @@ AST_MATCHER_P(LambdaCapture, capturesVar, internal::Matcher, /// matches `[this]() { return cc; }`. AST_MATCHER(LambdaCapture, capturesThis) { return Node.capturesThis(); } +/// Matches lambda expressions that have default capture modes. -

[clang] [flang] [llvm] [mlir] [OpenMP][flang] Add initial support for by-ref reductions on the GPU (PR #165714)

2025-11-20 Thread Kareem Ergawy via cfe-commits
@@ -2591,8 +2597,49 @@ void OpenMPIRBuilder::emitReductionListCopy( // Now that all active lanes have read the element in the // Reduce list, shuffle over the value from the remote lane. if (ShuffleInElement) { - shuffleAndStore(AllocaIP, SrcElementAddr, DestEl

[clang] [AST] Construct iterator_range with the conversion constructor (NFC) (PR #169004)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111352 tests passed * 4431 tests skipped https://github.com/llvm/llvm-project/pull/169004 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

2025-11-20 Thread Kashika Akhouri via cfe-commits
@@ -66,6 +66,9 @@ void FactsGenerator::run() { else if (std::optional DtorOpt = Element.getAs()) handleDestructor(*DtorOpt); + else if (std::optional LifetimeEnds = + Element.getAs()) +handleTrivialDestructors(*Lif

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -898,6 +899,25 @@ static std::string convertCallArgsToString(Sema &S, return Result; } +static std::string +printCallArgsValueCategoryAndType(Sema &S, llvm::ArrayRef Args) { tahonermann wrote: Yeah. I spent quite a while looking for a way to avoid this,

[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

2025-11-20 Thread Utkarsh Saxena via cfe-commits
@@ -696,10 +732,10 @@ void lifetimebound_return_reference() { { usx95 wrote: Fix the FIXME. The warning should be at the previous line highlighting the loan to `temp_v`​. This should be fixed with the upcoming multi-origin support. https://github.com/llvm/l

[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

2025-11-20 Thread Utkarsh Saxena via cfe-commits
@@ -396,6 +400,24 @@ void loan_from_previous_iteration(MyObj safe, bool condition) { } // expected-note {{destroyed here}} } +void trivial_uaf(){ usx95 wrote: nit: rename to `trivial_int_uaf`​. Similar for uar https://github.com/llvm/llvm-proj

[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

2025-11-20 Thread Utkarsh Saxena via cfe-commits
@@ -51,6 +51,7 @@ class FactsGenerator : public ConstStmtVisitor { private: void handleDestructor(const CFGAutomaticObjDtor &DtorOpt); + void handleTrivialDestructors(const CFGLifetimeEnds &LifetimeEnds); usx95 wrote: nit: handleLifetimeEnds https://gith

[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

2025-11-20 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 commented: Thanks for doing this. Looks precise and great overall. I have one comment around duplicate expired loans facts from destructors and lifetimeends. If possible, I would get rid of destructor handling. https://github.com/llvm/llvm-project/pull/168855 _

[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

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

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -16412,28 +16438,54 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation, FD->getAttr(); if (FD->isDefaulted()) { Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid) - << SKEPAttr << /*defaulted function

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -16412,28 +16438,54 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation, FD->getAttr(); if (FD->isDefaulted()) { Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid) - << SKEPAttr << /*defaulted function

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -16227,6 +16227,32 @@ Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D, maybeAddDeclWithEffects(FD); + if (FD && !FD->isInvalidDecl() && FD->hasAttr() && + FnBodyScope) { +// An implicit call expression is synthesized for functions declared with

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -683,24 +696,55 @@ There are a few items worthy of note: or more parameters depending on how the SYCL library implementation defines these types. -#. The call to ``kernel_entry_point()`` has no effect other than to trigger - emission of the entry point function. The

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -683,24 +696,55 @@ There are a few items worthy of note: or more parameters depending on how the SYCL library implementation defines these types. -#. The call to ``kernel_entry_point()`` has no effect other than to trigger - emission of the entry point function. The

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-11-20 Thread Tom Honermann via cfe-commits
@@ -683,24 +696,55 @@ There are a few items worthy of note: or more parameters depending on how the SYCL library implementation defines these types. -#. The call to ``kernel_entry_point()`` has no effect other than to trigger - emission of the entry point function. The

[clang-tools-extra] [clangd] fix compilation errors with newer versions of gRPC (PR #67258)

2025-11-20 Thread via cfe-commits
https://github.com/0xacc updated https://github.com/llvm/llvm-project/pull/67258 >From fe6be33d9204f3916bd014c53f0685f04371e2c8 Mon Sep 17 00:00:00 2001 From: 0xacc <[email protected]> Date: Sun, 24 Sep 2023 11:29:28 +0800 Subject: [PATCH] [clangd] fix compilation errors wit

[clang] cc5185b - [C++20] [Modules] Check TULocal entity within exported entities

2025-11-20 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-11-21T13:57:41+08:00 New Revision: cc5185bd146bed96d0d9e23263a56b6965d8572f URL: https://github.com/llvm/llvm-project/commit/cc5185bd146bed96d0d9e23263a56b6965d8572f DIFF: https://github.com/llvm/llvm-project/commit/cc5185bd146bed96d0d9e23263a56b6965d8572f.diff LO

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

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

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-20 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,232 @@ +// RUN: %check_clang_tidy %s misc-shadowed-namespace-function %t + +void f1_general(); +namespace foo_general { + void f0_general(); + void f1_general(); +} +void f0_general() {} +// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: free function 'f0_general' shadows

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-20 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,35 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-20 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,143 @@ +//===--===// +// +// 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] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-20 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: done https://github.com/llvm/llvm-project/pull/168812 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-20 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/168812 >From ba875db43f8dcdec89e568be22603e6c2f93f887 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 19 Nov 2025 19:04:31 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?

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

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: NagaChaitanya Vellanki (chaitanyav) Changes Resolves: #167477 --- Patch is 32.87 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/168995.diff 7 Files Affected: - (modified) clang/include/clang

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

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: NagaChaitanya Vellanki (chaitanyav) Changes Resolves: #167477 --- Patch is 32.87 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/168995.diff 7 Files Affected: - (modified) clang/include

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

2025-11-20 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav ready_for_review https://github.com/llvm/llvm-project/pull/168995 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0a231c9 - [Clang][OpenMP] Bug fix Default clause variable category (#168846)

2025-11-20 Thread via cfe-commits
Author: SunilKuravinakop Date: 2025-11-21T10:53:11+05:45 New Revision: 0a231c9ad9c8db10380379e2e6f021d6af9a7e7f URL: https://github.com/llvm/llvm-project/commit/0a231c9ad9c8db10380379e2e6f021d6af9a7e7f DIFF: https://github.com/llvm/llvm-project/commit/0a231c9ad9c8db10380379e2e6f021d6af9a7e7f.di

[clang] [Clang][OpenMP] Bug fix Default clause variable category (PR #168846)

2025-11-20 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed https://github.com/llvm/llvm-project/pull/168846 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Bug fix Default clause variable category (PR #168846)

2025-11-20 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale approved this pull request. fix has been already reviewed from PR[165276]( https://github.com/llvm/llvm-project/pull/165276) . Testcase LGTM. https://github.com/llvm/llvm-project/pull/168846 ___ cfe-commits mailing list

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

2025-11-20 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/168995 >From 4a5b92c667bc8a2a2346463bd34041c280213aee Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 20 Nov 2025 16:42:22 -0800 Subject: [PATCH] [Clang] VectorExprEvaluator::VisitCallExpr / Interpr

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

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 84695 tests passed * 1099 tests skipped * 3 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Headers/ms-intrin.cpp ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 1 /home/gha/ac

[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)

2025-11-20 Thread Farzon Lotfi via cfe-commits
farzonl wrote: > Oh, something else missing from this change is that implicit truncations > should produce a diagnostic just like we do for vector truncations. Will address this tomorrow. Thanks for catching that. https://github.com/llvm/llvm-project/pull/168915 ___

[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)

2025-11-20 Thread Farzon Lotfi via cfe-commits
farzonl wrote: > Oh, something else missing from this change is that implicit truncations > should produce a diagnostic just like we do for vector truncations. Are you talking about what we do with ` warn_impcast_float_precision` ie `"implicit conversion loses floating-point precision"`. We ca

[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)

2025-11-20 Thread Chris B via cfe-commits
https://github.com/llvm-beanz commented: Oh, something else missing from this change is that implicit truncations should produce a diagnostic just like we do for vector truncations. https://github.com/llvm/llvm-project/pull/168915 ___ cfe-commits mail

[clang] [compiler-rt] [llvm] [dfsan] Add dataflow sanitizer support for SystemZ (PR #168991)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 192854 tests passed * 6189 tests skipped https://github.com/llvm/llvm-project/pull/168991 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

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

2025-11-20 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav created https://github.com/llvm/llvm-project/pull/168995 Resolves: #167477 >From 2808e74d1295e7834fbc358dc472b896d2c73c4e Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 20 Nov 2025 16:42:22 -0800 Subject: [PATCH] [Clang] VectorExprEvaluator::Visi

[clang] [llvm] [llvm][Triple] Add libc-less variants of some environments (PR #168042)

2025-11-20 Thread Alex Rønne Petersen via cfe-commits
alexrp wrote: ping https://github.com/llvm/llvm-project/pull/168042 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Handle more glvalue cases of the ConditionalOperator transfer (PR #168994)

2025-11-20 Thread Jan Voung via cfe-commits
https://github.com/jvoung created https://github.com/llvm/llvm-project/pull/168994 In the dataflow framework, the builtin transfer function currently only handles the GLValue result case of ConditionalOperator when the true and false expression StorageLocations are exactly the same. Ideally / w

[clang] [clang][transformer] Add `arrayTypeLoc` ast matcher for ArrayTypeLoc (PR #168990)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111402 tests passed * 4431 tests skipped https://github.com/llvm/llvm-project/pull/168990 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [compiler-rt] [llvm] [dfsan] Add dataflow sanitizer support for SystemZ (PR #168991)

2025-11-20 Thread Thurston Dang via cfe-commits
@@ -66,8 +66,10 @@ void test_simple_constructors() { int *ptr1 = pair1.first; #ifdef O0 - assert(dfsan_read_label(&i1, sizeof(i1)) == 10); - assert(dfsan_read_label(&ptr1, sizeof(ptr1)) == 10); + assert(dfsan_read_label(&i1, sizeof(i1)) == 8 || thurstond

[clang] [clang-tools-extra] [lldb] [llvm] [clang][NFC] Inline Frontend/FrontendDiagnostic.h -> Basic/DiagnosticFrontend.h (PR #162883)

2025-11-20 Thread Jordan Rupprecht via cfe-commits
https://github.com/rupprecht auto_merge_enabled https://github.com/llvm/llvm-project/pull/162883 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] [llvm] [clang][NFC] Inline Frontend/FrontendDiagnostic.h -> Basic/DiagnosticFrontend.h (PR #162883)

2025-11-20 Thread Jordan Rupprecht via cfe-commits
https://github.com/rupprecht updated https://github.com/llvm/llvm-project/pull/162883 >From cfcb43bf44ca566bf6a6ba168622ce3568647226 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Fri, 10 Oct 2025 09:27:45 -0700 Subject: [PATCH 1/2] [clang][NFC] Inline Frontend/FrontendDiagnostic.h -> B

[clang] [compiler-rt] [llvm] [dfsan] Add dataflow sanitizer support for SystemZ (PR #168991)

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (anoopkg6) Changes Add SystemZ specific changes for dataflow sanitizer on top of following two common code changes i) Fix Endianness issue [#162881](https://github.com/llvm/llvm-project/pull/162881) ii) Fix ShadowAddress comput

[clang] [compiler-rt] [llvm] [dfsan] Add dataflow sanitizer support for SystemZ (PR #168991)

2025-11-20 Thread via cfe-commits
https://github.com/anoopkg6 created https://github.com/llvm/llvm-project/pull/168991 Add SystemZ specific changes for dataflow sanitizer on top of following two common code changes i) Fix Endianness issue [#162881](https://github.com/llvm/llvm-project/pull/162881) ii) Fix ShadowAddress computa

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #167552)

2025-11-20 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,302 @@ +//===--===// +// +// 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] [Clang] Fix handling of explicit parameters in `SemaLambda` (PR #168558)

2025-11-20 Thread Willem Kaufmann via cfe-commits
WillemKauf wrote: Looking for merge here. https://github.com/llvm/llvm-project/pull/168558 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ORC] Remove now unused EPCDebugObjectRegistrar (NFC) (PR #167868)

2025-11-20 Thread LLVM Continuous Integration via cfe-commits
Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-win` running on `as-worker-93` while building `clang,llvm,utils` at step 7 "test-build-unified-tree-check-al

[clang] [CIR] Upstream CIR codegen for undef x86 builtins (PR #167945)

2025-11-20 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. Looks good. Feel free to merge when you're ready. https://github.com/llvm/llvm-project/pull/167945 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/

[clang] [CIR] Add NYI cases to builtin switch statement and move existing cases into functions (PR #168699)

2025-11-20 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm. Thanks for the updates! https://github.com/llvm/llvm-project/pull/168699 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Add load overload with status (PR #166449)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 192854 tests passed * 6189 tests skipped https://github.com/llvm/llvm-project/pull/166449 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

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

2025-11-20 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 updated https://github.com/llvm/llvm-project/pull/167652 >From 87427478123964aa373befdc95fcf642c716ce03 Mon Sep 17 00:00:00 2001 From: ranapratap55 Date: Wed, 12 Nov 2025 13:21:04 +0530 Subject: [PATCH 1/5] [AMDGPU] Modifies builtin def to take _Float16('x') for

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-20 Thread Denis Mikhailov via cfe-commits
https://github.com/denzor200 updated https://github.com/llvm/llvm-project/pull/168406 >From b7d665bf49d20faf9bb22f782503391dcc361cab Mon Sep 17 00:00:00 2001 From: denzor200 Date: Sun, 16 Nov 2025 23:56:06 +0300 Subject: [PATCH 01/25] Implementation template from DeepSeek --- .../clang-tidy/m

[clang] [OpenMP][Clang] Add support for OMP6.1 fb_nullify and fb_preserve in need_device_ptr modifier (PR #168905)

2025-11-20 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba edited https://github.com/llvm/llvm-project/pull/168905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/misc/ShadowedNamespaceFunctionCheck.cpp clang-tools-extra

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-20 Thread Denis Mikhailov via cfe-commits
https://github.com/denzor200 updated https://github.com/llvm/llvm-project/pull/168406 >From b7d665bf49d20faf9bb22f782503391dcc361cab Mon Sep 17 00:00:00 2001 From: denzor200 Date: Sun, 16 Nov 2025 23:56:06 +0300 Subject: [PATCH 01/24] Implementation template from DeepSeek --- .../clang-tidy/m

[clang] [llvm] [HLSL] Add load overload with status (PR #166449)

2025-11-20 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 -- clang/lib/CodeGen/CGHLSLBuiltins.cpp clang/lib

[clang] [llvm] [HLSL] Add load overload with status (PR #166449)

2025-11-20 Thread Joshua Batista via cfe-commits
@@ -202,7 +202,7 @@ struct BuiltinTypeMethodBuilder { BuiltinTypeMethodBuilder &declareLocalVar(LocalVar &Var); template BuiltinTypeMethodBuilder &callBuiltin(StringRef BuiltinName, -QualType ReturnType, Ts... ArgSpecs); +

[clang] [compiler-rt] [UBsan] add -fsanitize-handler-preserve-all-regs flag (PR #168644)

2025-11-20 Thread Florian Mayer via cfe-commits
https://github.com/fmayer edited https://github.com/llvm/llvm-project/pull/168644 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Add fortify warnings for strcat (PR #168965)

2025-11-20 Thread via cfe-commits
https://github.com/venk-ks ready_for_review https://github.com/llvm/llvm-project/pull/168965 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Add fortify warnings for strcat (PR #168965)

2025-11-20 Thread via cfe-commits
https://github.com/venk-ks converted_to_draft https://github.com/llvm/llvm-project/pull/168965 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Add fortify warnings for strcat (PR #168965)

2025-11-20 Thread via cfe-commits
https://github.com/venk-ks updated https://github.com/llvm/llvm-project/pull/168965 >From e87a76909a05e83a653281f6142b4d01667adad0 Mon Sep 17 00:00:00 2001 From: Venkatesh Srinivasan Date: Thu, 20 Nov 2025 22:12:18 + Subject: [PATCH] [Clang][Sema] Add fortify warnings for strcat --- clang

[clang] [CIR][X86] Add support for `kshiftl`/`kshiftr` builtins (PR #168591)

2025-11-20 Thread Vishruth Thimmaiah via cfe-commits
@@ -68,6 +68,27 @@ static mlir::Value emitVectorFCmp(CIRGenBuilderTy &builder, return bitCast; } +static mlir::Value getMaskVecValue(CIRGenFunction &cgf, const CallExpr *expr, + mlir::Value mask, unsigned numElems) { + + CIRGenBuilderTy &bu

[clang] [analyzer] Fix [[clang::suppress]] for template instantiations (PR #168954)

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Benics (steakhal) Changes BugSuppression works by traversing the lexical decl context of the decl with issue to record what source ranges should be suppressed by some attribute. It happens so that it uses a Dynami

[clang] [analyzer] Fix [[clang::suppress]] for template instantiations (PR #168954)

2025-11-20 Thread Balázs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/168954 BugSuppression works by traversing the lexical decl context of the decl with issue to record what source ranges should be suppressed by some attribute. It happens so that it uses a DynamicRecursiveASTVisitor,

[clang] [CIR][X86] Add support for `kshiftl`/`kshiftr` builtins (PR #168591)

2025-11-20 Thread Vishruth Thimmaiah via cfe-commits
https://github.com/vishruth-thimmaiah updated https://github.com/llvm/llvm-project/pull/168591 >From b7d9348bc284963dc53418237601144352f45dca Mon Sep 17 00:00:00 2001 From: vishruth-thimmaiah Date: Tue, 18 Nov 2025 21:04:44 +0530 Subject: [PATCH 1/4] [CIR][X86] Add support for `kshiftl`/`kshift

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread Matheus Izvekov via cfe-commits
@@ -10726,13 +10726,13 @@ static void DetectPrecisionLossInComplexDivision(Sema &S, QualType DivisorTy, if (!CT) return; - QualType ElementType = CT->getElementType(); + ASTContext &Ctx = S.getASTContext(); + QualType ElementType = CT->getElementType().getDesugaredTy

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread Matheus Izvekov via cfe-commits
@@ -320,7 +320,8 @@ class ComplexExprEmitter QualType getPromotionType(FPOptionsOverride Features, QualType Ty, bool IsComplexDivisor) { if (auto *CT = Ty->getAs()) { - QualType ElementType = CT->getElementType(); mizvekov

[clang] [llvm] [SPIRV] Add PreLegalizer pattern matching for `faceforward` (PR #139959)

2025-11-20 Thread Kaitlin Peng via cfe-commits
kmpeng wrote: @arsenm @s-perron Would either of you like to have another look? It's ready to go in our eyes. https://github.com/llvm/llvm-project/pull/139959 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailma

[clang] [llvm] [clang][NVPTX] Add support for mixed-precision FP arithmetic (PR #168359)

2025-11-20 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/168359 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-20 Thread Zequan Wu via cfe-commits
ZequanWu wrote: I have a repro at: https://crbug.com/462173399#comment5 https://github.com/llvm/llvm-project/pull/165598 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][NVPTX] Add support for mixed-precision FP arithmetic (PR #168359)

2025-11-20 Thread Artem Belevich via cfe-commits
@@ -1386,6 +1386,14 @@ let TargetPrefix = "nvvm" in { PureIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty, llvm_double_ty]>; } + + foreach rnd = ["_rn", "_rz", "_rm", "_rp"] in { +foreach sat = ["", "_sat"] in { + def int_nvvm_fma_mixed #

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zahira Ammarguellat (zahiraam) Changes This patch fixes a crash in Clang that occurs when the compiler retrieves the element type of a complex type but receives a sugared type. See example here: https://godbolt.org/z/cdbdeMcaT This patch

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Zahira Ammarguellat (zahiraam) Changes This patch fixes a crash in Clang that occurs when the compiler retrieves the element type of a complex type but receives a sugared type. See example here: https://godbolt.org/z/cdbdeMcaT Th

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam ready_for_review https://github.com/llvm/llvm-project/pull/168943 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

2025-11-20 Thread Alex Bezzubikov via cfe-commits
https://github.com/zuban32 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/164768 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement -fstrict-bool (PR #160790)

2025-11-20 Thread via cfe-commits
=?utf-8?q?F=C3=A9lix?= Cloutier , =?utf-8?q?F=C3=A9lix?= Cloutier , =?utf-8?q?F=C3=A9lix?= Cloutier Message-ID: In-Reply-To: github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111348 tests passed * 4435 tests skipped https://github.com/llvm/llvm-project/pull/160790

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111350 tests passed * 4431 tests skipped https://github.com/llvm/llvm-project/pull/168943 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [libc] [libc] Support opaque FILE* on baremetal (PR #168931)

2025-11-20 Thread Michael Jones via cfe-commits
https://github.com/michaelrj-google commented: LGTM, we'll probably need to update this when we do the FILE* redesign but we were going to need to do that anyways. https://github.com/llvm/llvm-project/pull/168931 ___ cfe-commits mailing list cfe-commi

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/168943 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Desugar complex element types for promoted complex division (PR #168943)

2025-11-20 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/168943 None >From 4a4e129ccad9c6ed605b1c510a90bc845abbc676 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 20 Nov 2025 12:38:25 -0800 Subject: [PATCH] Desugar complex element types for promoted complex

[clang] [clang] Implement -fstrict-bool (PR #160790)

2025-11-20 Thread via cfe-commits
=?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier Message-ID: In-Reply-To: https://github.com/apple-fcloutier updated https://github.com/llvm/llvm-project/pull/160790 >From e6d5807c8431163ed10dd739d6f105e3c22c756d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C

[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

2025-11-20 Thread Zahira Ammarguellat via cfe-commits
zahiraam wrote: > Runtime changes proposed here: #168873 @alexey-bataev Would adding the flag in #168873 be enough for this PR to be merged? https://github.com/llvm/llvm-project/pull/166810 ___ cfe-commits mailing list [email protected] http

[clang] [CUDA][HIP] Fix CTAD for host/device constructors (PR #168711)

2025-11-20 Thread Artem Belevich via cfe-commits
@@ -287,6 +287,46 @@ Example Usage basePtr->virtualFunction(); // Allowed since obj is constructed in device code } +C++17 Class Template Argument Deduction (CTAD) Support +== + +Clang supports C++17 Class Template

[clang] [flang] [llvm] [OpenMP] Introduce "loop sequence" as directive association (PR #168934)

2025-11-20 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 193113 tests passed * 6186 tests skipped https://github.com/llvm/llvm-project/pull/168934 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco updated https://github.com/llvm/llvm-project/pull/167543 >From 0c3a34136d87a2c62143dba0b1a8ceb7a81172ca Mon Sep 17 00:00:00 2001 From: Manuel Carrasco Date: Mon, 17 Nov 2025 05:17:45 -0600 Subject: [PATCH 1/7] [NFC][clang][driver] Improve readability of long and c

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. Seems fine, one nit. I'll wait for @AlexVlx to give the final go-ahead because he knows the goals for this better than I do https://github.com/llvm/llvm-project/pull/167543 ___ cfe-commits mailing

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Joseph Huber via cfe-commits
@@ -5285,6 +5310,20 @@ Action *Driver::ConstructPhaseAction( : types::TY_LLVM_BC; return C.MakeAction(Input, Output); } + +// The SPIRV backend compilation path for HIP must avoid external +// dependencies. The default compilation path assembles

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/167543 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Joseph Huber via cfe-commits
@@ -5154,6 +5158,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, rewriteKind = RK_Fragile; } else if (JA.getType() == types::TY_CIR) { CmdArgs.push_back("-emit-cir"); +} else if (JA.getType() == types::TY_Image && IsAMDSPIRVForHIPDevice)

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco edited https://github.com/llvm/llvm-project/pull/167543 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

2025-11-20 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco updated https://github.com/llvm/llvm-project/pull/167543 >From 0c3a34136d87a2c62143dba0b1a8ceb7a81172ca Mon Sep 17 00:00:00 2001 From: Manuel Carrasco Date: Mon, 17 Nov 2025 05:17:45 -0600 Subject: [PATCH 1/6] [NFC][clang][driver] Improve readability of long and c

[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)

2025-11-20 Thread Farzon Lotfi via cfe-commits
@@ -2088,6 +2091,59 @@ static bool IsVectorElementConversion(Sema &S, QualType FromType, return false; } +/// Determine whether the conversion from FromType to ToType is a valid +/// matrix conversion. +/// +/// \param ICK Will be set to the matrix conversion kind, if this

[clang] [libc] [libc] Support opaque FILE* on baremetal (PR #168931)

2025-11-20 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/168931 >From b8dfdd0b29af8e7e34bdb3aef30a0a8e7e5db428 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 20 Nov 2025 08:19:46 + Subject: [PATCH 1/3] [libc] Support opaque FILE* on baremetal This change expands

  1   2   3   4   5   >