[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-26 Thread Yaxun Liu via cfe-commits
@@ -5442,6 +5442,155 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-26 Thread Yaxun Liu via cfe-commits
@@ -132,6 +132,12 @@ Attribute Changes in Clang This forces the global to be considered small or large in regards to the x86-64 code model, regardless of the code model specified for the compilation. +- Introduced a new statement attribute ``[[clang::atomic]]`` that enabl

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2025-02-26 Thread YunQiang Su via cfe-commits
wzssyqa wrote: @arsenm ping https://github.com/llvm/llvm-project/pull/112854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-02-26 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic updated https://github.com/llvm/llvm-project/pull/128833 >From 10f62d3697b3e2d773d828fc3e7a6767ff71a072 Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Wed, 26 Feb 2025 12:13:32 +0530 Subject: [PATCH 1/2] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint] e

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-26 Thread Yaxun Liu via cfe-commits
@@ -5442,6 +5442,155 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2025-02-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/112854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread via cfe-commits
@@ -2305,6 +2305,25 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { TheCall->setType(ArgTyA); break; } + case Builtin::BI__builtin_hlsl_or: { +if (SemaRef.checkArgCount(TheCall, 2)) + return true; +if (CheckVectorElem

[clang] [CIR] Function type return type improvements (PR #128787)

2025-02-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/6880 Here is the releva

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-26 Thread Yaxun Liu via cfe-commits
@@ -5442,6 +5442,155 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-02-26 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: Is this the kind of thing we have agreed to take in LLVM? If it's "simulation hint" instructions, does that not by definition mean that it's not an extension present in real hardware? https://github.com/llvm/llvm-project/pull/128833 ___

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread via cfe-commits
@@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and) bool4 and(bool4 x, bool4 y); // clang-format on +//===--===// +// or builtins +//===

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-26 Thread Yaxun Liu via cfe-commits
@@ -5442,6 +5442,155 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread via cfe-commits
@@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and) bool4 and(bool4 x, bool4 y); // clang-format on +//===--===// +// or builtins +//===

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128901)

2025-02-26 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 a955426a16bcbb9bf05eb0e3894663dff4983b00 fb062da006042e7f0d6cab77f9d0d57a50d091f9 --e

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128901)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 updated https://github.com/llvm/llvm-project/pull/128901 >From 4bb02c6f8a81a4060fe99ca57602b65a507905d0 Mon Sep 17 00:00:00 2001 From: Austin Date: Thu, 27 Feb 2025 00:11:56 +0800 Subject: [PATCH] [ARM] Introduce -mtp=auto and make it the default This adds a new

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-26 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128901)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 updated https://github.com/llvm/llvm-project/pull/128901 >From fb062da006042e7f0d6cab77f9d0d57a50d091f9 Mon Sep 17 00:00:00 2001 From: Austin Date: Thu, 27 Feb 2025 00:11:56 +0800 Subject: [PATCH] [ARM] Introduce -mtp=auto and make it the default This adds a new

[clang] ExprEngine::performTrivialCopy triggers checkLocation (PR #129016)

2025-02-26 Thread via cfe-commits
https://github.com/T-Gruber created https://github.com/llvm/llvm-project/pull/129016 The triggered callbacks for the default copy constructed instance and the instance used for initialization now behave in the same way. The LHS already calls checkBind. To keep this consistent, checkLocation is

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128901)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 updated https://github.com/llvm/llvm-project/pull/128901 >From 3c2a6d7b1ea527a5cc4c54ce05d9cb6d57433b73 Mon Sep 17 00:00:00 2001 From: Austin Date: Thu, 27 Feb 2025 00:11:56 +0800 Subject: [PATCH] [ARM] Introduce -mtp=auto and make it the default This adds a new

[clang] ExprEngine::performTrivialCopy triggers checkLocation (PR #129016)

2025-02-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (T-Gruber) Changes The triggered callbacks for the default copy constructed instance and the instance used for initialization now behave in the same way. The LHS already calls checkBind. To keep this consistent, checkLocation is now

[clang] ExprEngine::performTrivialCopy triggers checkLocation (PR #129016)

2025-02-26 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 af68927a831c45b92248b1f6fc24d445be42dd91 57b4517b29bd6d8d7ba2fafa94b6b7b17494050b --e

[clang] ExprEngine::performTrivialCopy triggers checkLocation (PR #129016)

2025-02-26 Thread via cfe-commits
https://github.com/T-Gruber updated https://github.com/llvm/llvm-project/pull/129016 >From 79d8f061476c6ba21bf48f55597eaaef345c2e80 Mon Sep 17 00:00:00 2001 From: "tobias.gruber" Date: Wed, 26 Feb 2025 18:00:21 +0100 Subject: [PATCH 1/5] Trigger checkLocation for RHS of copy construction ---

[clang] [ARM] make -mtp=TPIDRURO the default if the target architecture support a hardware thread pointer (PR #128901)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 edited https://github.com/llvm/llvm-project/pull/128901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-26 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/127555 >From 49312a2cd5d1b6ab59f92571a925cfaeb0cf9eb3 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Tue, 25 Feb 2025 11:28:36 +0800 Subject: [PATCH] [clang][LoongArch] Add OHOS target Add support for OHOS on loonga

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-26 Thread via cfe-commits
@@ -19,13 +23,16 @@ // CHECK-NOT: "--build-id" // CHECK: "--hash-style=both" // CHECK: "-pie" -// CHECK: "-dynamic-linker" "/lib/ld-musl-arm.so.1" +// CHECK-ARM: "-dynamic-linker" "/lib/ld-musl-arm.so.1" Ami-zhang wrote: Yes, it dose. https://github.com/llvm

[clang] Mark union member destructors referenced (PR #128866)

2025-02-26 Thread Maurice Heumann via cfe-commits
https://github.com/momo5502 updated https://github.com/llvm/llvm-project/pull/128866 >From 484ff7a53ab700fda30ee90f739bb2573f41c851 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Wed, 26 Feb 2025 08:37:04 +0100 Subject: [PATCH 1/2] Mark union member destructors referenced --- clang/lib/

[clang-tools-extra] [clang-tidy] Fix performance-move-const-arg false negative in ternary… (PR #128402)

2025-02-26 Thread David Rivera via cfe-commits
RiverDave wrote: > ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️ > > You can test this locally with the following command: > ```shell > git-clang-format --diff 5d501c6137976ff1f14f3b0e2e593fb9740d0146 > 848be2ccd25fd68b6a2d2037198184b08ff5d6e2 --extensions cpp -- > clang-

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/128979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Sarah Spall via cfe-commits
@@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and) bool4 and(bool4 x, bool4 y); // clang-format on +//===--===// +// or builtins +//===

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Sarah Spall via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -verify -DTEST_FUNC=__builtin_hlsl_or +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -verify -DTEST_FUNC=__builtin_hlsl_and + + +bool t

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Sarah Spall via cfe-commits
@@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -finclude-default-header -triple \ +// RUN: dxil-pc-shadermodel6.3-library %s \ +// RUN: -emit-llvm -O1 -o - | FileCheck %s + +//CHECK-LABEL: define noundef i1 @_Z12test_or_boolbb( +//CHECK-SAME: i1 noundef [[X:%.*]], i1 noundef [[Y:%.*]])

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-26 Thread Yaxun Liu via cfe-commits
@@ -5442,6 +5442,155 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] 5066d7b - [RISCV] Add Xqccmp 0.1 Assembly Support (#128731)

2025-02-26 Thread via cfe-commits
Author: Sam Elliott Date: 2025-02-26T20:03:02-08:00 New Revision: 5066d7b60186fe0d557223493a17c3aa9a06f58f URL: https://github.com/llvm/llvm-project/commit/5066d7b60186fe0d557223493a17c3aa9a06f58f DIFF: https://github.com/llvm/llvm-project/commit/5066d7b60186fe0d557223493a17c3aa9a06f58f.diff L

[clang] [llvm] [RISCV] Add Xqccmp Assembly Support (PR #128731)

2025-02-26 Thread Sam Elliott via cfe-commits
https://github.com/lenary closed https://github.com/llvm/llvm-project/pull/128731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP] Correct lowering of `fp128` intrinsics (PR #76558)

2025-02-26 Thread Trevor Gross via cfe-commits
https://github.com/tgross35 updated https://github.com/llvm/llvm-project/pull/76558 >From f110337467d5a2b1f624eab507daa2bc854def17 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Fri, 11 Aug 2023 22:16:01 -0400 Subject: [PATCH 1/4] [IR] Add an xpassing test for `f128` intrinsic lowering (nfc

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread via cfe-commits
https://github.com/metkarpoonam updated https://github.com/llvm/llvm-project/pull/128979 >From 08e191213d3abfc6a5f2af7ba3db35055dd040eb Mon Sep 17 00:00:00 2001 From: Poonam Vilas Metkar Date: Wed, 26 Feb 2025 16:23:01 -0800 Subject: [PATCH 1/7] Format hlsl_intrinsics.h with clang-format ---

[clang] 556eb82 - [CIR] Function type return type improvements (#128787)

2025-02-26 Thread via cfe-commits
Author: David Olsen Date: 2025-02-26T20:58:49-08:00 New Revision: 556eb8244201a81fff7b246561a677a782b69fa0 URL: https://github.com/llvm/llvm-project/commit/556eb8244201a81fff7b246561a677a782b69fa0 DIFF: https://github.com/llvm/llvm-project/commit/556eb8244201a81fff7b246561a677a782b69fa0.diff L

[clang] [CIR] Function type return type improvements (PR #128787)

2025-02-26 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi closed https://github.com/llvm/llvm-project/pull/128787 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
@@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and) bool4 and(bool4 x, bool4 y); // clang-format on +//===--===// +// or builtins +//===

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
@@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -finclude-default-header -triple \ +// RUN: dxil-pc-shadermodel6.3-library %s \ +// RUN: -emit-llvm -O1 -o - | FileCheck %s + +//CHECK-LABEL: define noundef i1 @_Z12test_or_boolbb( +//CHECK-SAME: i1 noundef [[X:%.*]], i1 noundef [[Y:%.*]])

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
@@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and) bool4 and(bool4 x, bool4 y); // clang-format on +//===--===// +// or builtins +//===

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
@@ -2305,6 +2305,25 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { TheCall->setType(ArgTyA); break; } + case Builtin::BI__builtin_hlsl_or: { +if (SemaRef.checkArgCount(TheCall, 2)) + return true; +if (CheckVectorElem

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -verify -DTEST_FUNC=__builtin_hlsl_or +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -verify -DTEST_FUNC=__builtin_hlsl_and ---

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp edited https://github.com/llvm/llvm-project/pull/128979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
@@ -2305,6 +2305,25 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { TheCall->setType(ArgTyA); break; } + case Builtin::BI__builtin_hlsl_or: { +if (SemaRef.checkArgCount(TheCall, 2)) + return true; +if (CheckVectorElem

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp edited https://github.com/llvm/llvm-project/pull/128979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp commented: Please be sure to tag the issue that this is addressing in the PR description (something like "Closes #".) Or at least make sure that it is linked in the "Development" section. (Oops, I had two tabs open and confused github and myself) https://github

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp commented: Congrats on getting your first change in! Some notes, mainly around comments, although we probably also want to fix the clang-format issue (if there is one). https://github.com/llvm/llvm-project/pull/128979 ___ c

[clang] [Clang] Treat constexpr-unknown value as invalid in `EvaluateAsInitializer` (PR #128409)

2025-02-26 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/128409 >From 83248eb164ff53442ad6d0c9d1be20027519bac1 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Tue, 18 Feb 2025 01:26:26 +0800 Subject: [PATCH 1/6] [Clang][CodeGen] Bail out on constexpr unknown values in Co

[clang] Hlsl or intrinsic (PR #128979)

2025-02-26 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp edited https://github.com/llvm/llvm-project/pull/128979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2025-02-26 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/112854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Function type return type improvements (PR #128787)

2025-02-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-win` running on `as-builder-10` while building `clang` at step 17 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/2526 Here is the relevant piece o

[clang] [Clang] Treat constexpr-unknown value as invalid in `EvaluateAsInitializer` (PR #128409)

2025-02-26 Thread Yingwei Zheng via cfe-commits
@@ -17000,6 +16998,18 @@ bool Expr::EvaluateAsInitializer(APValue &Value, const ASTContext &Ctx, if (!Info.discardCleanups()) llvm_unreachable("Unhandled cleanup; missing full expression marker?"); + +if (Value.allowConstexprUnknown()) { + assert(Value.isLV

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128728)

2025-02-26 Thread Simon Tatham via cfe-commits
statham-arm wrote: > It is fine to add `fixes https://github.com/llvm/llvm-project/issues/123864` > to the Description so that the issue is automatically closed. Yes, good point! When I suggested an improved description, I left out that part, which is the one thing @Zhenhang1213 _didn't_ forge

[clang] Mark union member destructors referenced (PR #128866)

2025-02-26 Thread Maurice Heumann via cfe-commits
https://github.com/momo5502 updated https://github.com/llvm/llvm-project/pull/128866 >From 484ff7a53ab700fda30ee90f739bb2573f41c851 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Wed, 26 Feb 2025 08:37:04 +0100 Subject: [PATCH 1/2] Mark union member destructors referenced --- clang/lib/

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128728)

2025-02-26 Thread Peter Smith via cfe-commits
smithp35 wrote: A couple of things I forgot to mention: * Please can you update the in progress ReleaseNotes in https://github.com/llvm/llvm-project/blob/main/clang/docs/ReleaseNotes.rst as this is a potentially breaking change. * It is fine to add `fixes https://github.com/llvm/llvm-project/is

[clang] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

2025-02-26 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/123736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] Additional fixes for #114062 (PR #128166)

2025-02-26 Thread Alex Voicu via cfe-commits
@@ -2352,6 +2353,22 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) { Value *Src = Visit(const_cast(E)); llvm::Type *SrcTy = Src->getType(); llvm::Type *DstTy = ConvertType(DestTy); + +// FIXME: this is a gross but seemingly necessary workaround for an

[clang] [clang] Update SVE load and store intrinsics to have FP8 variants (PR #126726)

2025-02-26 Thread via cfe-commits
@@ -19,7 +19,7 @@ include "arm_sve_sme_incl.td" // Loads Lukacma wrote: You missed some intrinsics in here I think: Line 2044: MultiVecLoad class should also support fp8. Same for MultiVecStore on line 2069 https://github.com/llvm/llvm-project/pull/126726 __

[clang] Match .exe on Windows (PR #128894)

2025-02-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chris B (llvm-beanz) Changes If you have zlib (not standard) on Windows, this test runs, and it was missing a match for the file extension on lld. --- Full diff: https://github.com/llvm/llvm-project/pull/128894.diff 1 Files Affected: -

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -151,10 +153,13 @@ SValBuilder::getRegionValueSymbolVal(const TypedValueRegion *region) { return nonloc::SymbolVal(sym); } -DefinedOrUnknownSVal SValBuilder::conjureSymbolVal(const void *SymbolTag, - const Expr *Ex, -

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128728)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 updated https://github.com/llvm/llvm-project/pull/128728 >From 019e9432080f21ceef3c5fa0465705c090ead33a Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 25 Feb 2025 01:24:24 +0800 Subject: [PATCH] [ARM] Introduce -mtp=auto and make it the default This adds a new

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-26 Thread via cfe-commits
https://github.com/bd1976bris edited https://github.com/llvm/llvm-project/pull/126654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Add assembler support for XRivosVisni (PR #128773)

2025-02-26 Thread Philip Reames via cfe-commits
https://github.com/preames updated https://github.com/llvm/llvm-project/pull/128773 >From 7eab3c685c23c477cbeb3df13fb9e01eacf2378c Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Tue, 25 Feb 2025 11:16:41 -0800 Subject: [PATCH 1/3] [RISCV][MC] Add assembler support for XRivosVisni This impl

[clang] Match .exe on Windows (PR #128894)

2025-02-26 Thread Chris B via cfe-commits
https://github.com/llvm-beanz created https://github.com/llvm/llvm-project/pull/128894 If you have zlib (not standard) on Windows, this test runs, and it was missing a match for the file extension on lld. >From da4f0de19daaed0a30b3dfe985e6920e89a07c7d Mon Sep 17 00:00:00 2001 From: Chris B Da

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -93,9 +76,8 @@ ProgramStateRef getWidenedLoopState(ProgramStateRef PrevState, RegionAndSymbolInvalidationTraits::TK_PreserveContents); } - return PrevState->invalidateRegions(Regions, getLoopCondition(LoopStmt), -

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -695,6 +695,21 @@ class CFGBlock { void dump() const { dumpToStream(llvm::errs()); } + +void Profile(llvm::FoldingSetNodeID &ID) const { + ID.AddPointer(Parent); + ID.AddInteger(Index); +} + +int64_t getID() const { isucka

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -29,6 +31,18 @@ class SValExplainer : public FullSValVisitor { ASTContext &ACtx; ProgramStateRef State; + std::string printCFGElementRef(const CFGBlock::ConstCFGElementRef ElemRef) { +std::string Str; +llvm::raw_string_ostream OS(Str); +ElemRef->dumpToStrea

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -165,8 +167,9 @@ void STLAlgorithmModeling::Find(CheckerContext &C, const CallExpr *CE, // FIXME: Reverse iterators Pos = getIteratorPosition(State, Param); if (Pos) { -StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), -

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
https://github.com/isuckatcs requested changes to this pull request. Can you please add a testcase with the snippetin the issue that used to crash? https://github.com/llvm/llvm-project/pull/128251 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [RISCV][MC] Add assembler support for XRivosVisni (PR #128773)

2025-02-26 Thread Philip Reames via cfe-commits
@@ -25,3 +65,27 @@ defm RI_VZIP2B_V : VALU_IV_V<"ri.vzip2b", 0b010100>; defm RI_VUNZIP2A_V : VALU_IV_V<"ri.vunzip2a", 0b001000>; defm RI_VUNZIP2B_V : VALU_IV_V<"ri.vunzip2b", 0b011000>; } + +//===--===// +// XR

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -151,10 +153,13 @@ SValBuilder::getRegionValueSymbolVal(const TypedValueRegion *region) { return nonloc::SymbolVal(sym); } -DefinedOrUnknownSVal SValBuilder::conjureSymbolVal(const void *SymbolTag, - const Expr *Ex, -

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -282,8 +284,9 @@ void ContainerModeling::handleEnd(CheckerContext &C, const Expr *CE, auto State = C.getState(); auto EndSym = getContainerEnd(State, ContReg); if (!EndSym) { -State = createContainerEnd(State, ContReg, CE, C.getASTContext().LongTy, -

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
https://github.com/isuckatcs edited https://github.com/llvm/llvm-project/pull/128251 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Add assembler support for XRivosVisni (PR #128773)

2025-02-26 Thread Philip Reames via cfe-commits
@@ -1376,6 +1376,13 @@ def HasVendorXqcilo // Rivos Extension(s) +def FeatureVendorXRivosVisni +: RISCVExperimentalExtension<0, 1, "Rivos Vector Small Integer New">; +def HasVendorXRivosVisni +: Predicate<"Subtarget->hasVendorXRivosVisni()">, + AssemblerPredicat

[clang] [llvm] [RISCV][MC] Add assembler support for XRivosVisni (PR #128773)

2025-02-26 Thread Philip Reames via cfe-commits
@@ -10,6 +10,46 @@ // //===--===// +class RVInstVXI funct6, RISCVVFormat opv, dag outs, dag ins, +string opcodestr, string argstr> +: RVInst { + bits<5> imm; + bits<5> rs1; + bits<5> vd

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread Fangyi Zhou via cfe-commits
@@ -695,6 +695,21 @@ class CFGBlock { void dump() const { dumpToStream(llvm::errs()); } + +void Profile(llvm::FoldingSetNodeID &ID) const { + ID.AddPointer(Parent); + ID.AddInteger(Index); +} + +int64_t getID() const { fangyi

[clang] a955426 - [clang][bytecode] Handle UsingDirectiveDecls (#128888)

2025-02-26 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-26T16:55:15+01:00 New Revision: a955426a16bcbb9bf05eb0e3894663dff4983b00 URL: https://github.com/llvm/llvm-project/commit/a955426a16bcbb9bf05eb0e3894663dff4983b00 DIFF: https://github.com/llvm/llvm-project/commit/a955426a16bcbb9bf05eb0e3894663dff4983b00.diff L

[clang] [clang][bytecode] Handle UsingDirectiveDecls (PR #128888)

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

[clang] [llvm] [CaptureTracking][FunctionAttrs] Add support for CaptureInfo (PR #125880)

2025-02-26 Thread Nikita Popov via cfe-commits
nikic wrote: Confirmed that check-clang for a two-stage Windows build with ThinLTO works with the additional changes on https://github.com/llvm/llvm-project/pull/128020. https://github.com/llvm/llvm-project/pull/125880 ___ cfe-commits mailing list cfe

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -207,7 +207,7 @@ void InvalidPtrChecker::postPreviousReturnInvalidatingCall( // Function call will return a pointer to the new symbolic region. DefinedOrUnknownSVal RetVal = C.getSValBuilder().conjureSymbolVal( - CE, LCtx, CE->getType(), C.blockCount()); + C.g

[clang] [ARM] Introduce -mtp=auto and make it the default (PR #128728)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 closed https://github.com/llvm/llvm-project/pull/128728 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix kcfi doesn't take effect when callee function has no input parameter (PR #106677)

2025-02-26 Thread via cfe-commits
https://github.com/Zhenhang1213 closed https://github.com/llvm/llvm-project/pull/106677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Remove clspv-specific clc conversions (PR #128500)

2025-02-26 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: In fact, I missed that I had to modify some build files in Google infra for that change. So it's all good. Also, would you have a 15min slot in the coming days to talk about all your libclc work? https://github.com/llvm/llvm-project/pull/128500 __

[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

2025-02-26 Thread via cfe-commits
@@ -695,6 +695,21 @@ class CFGBlock { void dump() const { dumpToStream(llvm::errs()); } + +void Profile(llvm::FoldingSetNodeID &ID) const { + ID.AddPointer(Parent); + ID.AddInteger(Index); +} + +int64_t getID() const { isucka

[clang] [verify] Improve the error messages with multiple active prefixes (PR #126068)

2025-02-26 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/126068 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix performance-move-const-arg false negative in ternary… (PR #128402)

2025-02-26 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/128402 >From 5eef2a52de7de53b0fb24781f40a7b02b55025b9 Mon Sep 17 00:00:00 2001 From: Riverdave Date: Sat, 22 Feb 2025 03:57:35 -0500 Subject: [PATCH] [clang-tidy] Fix performance-move-const-arg false negative in ter

[clang] 8039f8e - [RISCV][MC] Add assembler support for XRivosVisni (#128773)

2025-02-26 Thread via cfe-commits
Author: Philip Reames Date: 2025-02-26T08:55:35-08:00 New Revision: 8039f8e139aa52561d3482d61328fe7f370056e7 URL: https://github.com/llvm/llvm-project/commit/8039f8e139aa52561d3482d61328fe7f370056e7 DIFF: https://github.com/llvm/llvm-project/commit/8039f8e139aa52561d3482d61328fe7f370056e7.diff

[clang] [llvm] [RISCV][MC] Add assembler support for XRivosVisni (PR #128773)

2025-02-26 Thread Philip Reames via cfe-commits
https://github.com/preames closed https://github.com/llvm/llvm-project/pull/128773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-02-26 Thread Craig Topper via cfe-commits
@@ -485,6 +498,43 @@ let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in { } // hasSideEffects = 0, mayLoad = 0, mayStore = 0 } // Predicates = [HasVendorXqcilia, IsRV32] +let Predicates = [HasVendorXqcisim, IsRV32] in { +let mayLoad = 0, mayStore = 0, hasSideEffects = 1 in {

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-02-26 Thread Craig Topper via cfe-commits
@@ -485,6 +498,43 @@ let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in { } // hasSideEffects = 0, mayLoad = 0, mayStore = 0 } // Predicates = [HasVendorXqcilia, IsRV32] +let Predicates = [HasVendorXqcisim, IsRV32] in { +let mayLoad = 0, mayStore = 0, hasSideEffects = 1 in {

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-02-26 Thread Craig Topper via cfe-commits
@@ -485,6 +498,43 @@ let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in { } // hasSideEffects = 0, mayLoad = 0, mayStore = 0 } // Predicates = [HasVendorXqcilia, IsRV32] +let Predicates = [HasVendorXqcisim, IsRV32] in { +let mayLoad = 0, mayStore = 0, hasSideEffects = 1 in {

[clang] [clang modules] Setting `DebugCompilationDir` when it is safe to ignore current working directory (PR #128446)

2025-02-26 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: Ping for review. Thanks so much! https://github.com/llvm/llvm-project/pull/128446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [memprof] Export __memprof_default_options_str on Darwin (PR #128920)

2025-02-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Ellis Hoag (ellishg) Changes The `-memprof-runtime-default-options` LLVM flag introduced in https://github.com/llvm/llvm-project/pull/118874 creates the `__memprof_default_options_str` symbol with `WeakAn

[clang] [memprof] Export __memprof_default_options_str on Darwin (PR #128920)

2025-02-26 Thread Ellis Hoag via cfe-commits
https://github.com/ellishg created https://github.com/llvm/llvm-project/pull/128920 The `-memprof-runtime-default-options` LLVM flag introduced in https://github.com/llvm/llvm-project/pull/118874 creates the `__memprof_default_options_str` symbol with `WeakAnyLinkage` on Darwin. https://githu

[clang] [memprof] Export __memprof_default_options_str on Darwin (PR #128920)

2025-02-26 Thread Ellis Hoag via cfe-commits
@@ -1617,6 +1617,10 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args, } } + if (Sanitize.needsMemProfRt()) +if (hasExportSymbolDirective(Args)) + addExportedSymbol(CmdArgs, "___memprof_default_options_str"); ellishg wrote: @tere

[clang] [CUDA][HIP] fix virtual dtor host/device attr (PR #128926)

2025-02-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes Currently if CUDA/HIP users use template class with virtual dtor and std::string data member with C++20 and MSVC. When the template class is explicitly instantiated, they encounter unresolved symbols in

[clang] [CUDA][HIP] fix virtual dtor host/device attr (PR #128926)

2025-02-26 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu created https://github.com/llvm/llvm-project/pull/128926 Currently if CUDA/HIP users use template class with virtual dtor and std::string data member with C++20 and MSVC. When the template class is explicitly instantiated, they encounter unresolved symbols in linker

[clang] [clang] Fix UEFI Target info (PR #127290)

2025-02-26 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/127290 >From 3e6122744f355954edb6a5450ae4220ba39bc9c1 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 14 Feb 2025 16:53:33 -0800 Subject: [PATCH 1/2] [clang] Fix UEFI Target info For X64 UEFI targets, making the in

[clang] [CIR] Upstream basic alloca and load support (PR #128792)

2025-02-26 Thread Andy Kaylor via cfe-commits
@@ -117,6 +117,24 @@ static void printOmittedTerminatorRegion(mlir::OpAsmPrinter &printer, /*printBlockTerminators=*/!omitRegionTerm(region)); } +//===--===// +// AllocaOp +//===

  1   2   3   4   5   >