https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/163915
This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.
>From 8ba1fc160eb1cf869ed9f72b06f626c341b3aa09 Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Wed, 15 Oct
@@ -551,6 +551,50 @@ cir::FuncOp CIRGenFunction::generateCode(clang::GlobalDecl
gd, cir::FuncOp fn,
const auto funcDecl = cast(gd.getDecl());
curGD = gd;
+ if (funcDecl->isInlineBuiltinDeclaration()) {
+// When generating code for a builtin with an inline declaration
HighCommander4 wrote:
I've checked out this PR locally, and for me it both builds successfully with
`-DCLANGD_ENABLE_REMOTE=ON`, and passes `ninja check-clangd`.
I guess what ultimately matters is whether it builds and passes tests on the
buildbot that tests this configuration. I don't think t
https://github.com/tbaederr closed
https://github.com/llvm/llvm-project/pull/163795
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/163911
This patch implements the handling of inline builtin functions in CIR. There is
a known limitation in CIR where direct calls to shadowed inline builtin
functions are generated instead of the intrinsic. This is expe
Author: owenca
Date: 2025-10-16T21:40:59-07:00
New Revision: 059f2df74898ff7f394dc8e60f746323499ae32b
URL:
https://github.com/llvm/llvm-project/commit/059f2df74898ff7f394dc8e60f746323499ae32b
DIFF:
https://github.com/llvm/llvm-project/commit/059f2df74898ff7f394dc8e60f746323499ae32b.diff
LOG: [
https://github.com/abhinavgaba created
https://github.com/llvm/llvm-project/pull/163908
None
>From 7b7f5db0b35a701803d95a9034b0114cb241203d Mon Sep 17 00:00:00 2001
From: Abhinav Gaba
Date: Thu, 16 Oct 2025 21:17:48 -0700
Subject: [PATCH] [docs][OpenMP] Update support doc with the
planned/in-
@@ -192,8 +192,11 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions
&Opts,
Builder.defineMacro("__riscv_muldiv");
}
- if (ISAInfo->hasExtension("a")) {
+ // The "a" extension is composed of "zalrsc" and "zaamo"
+ if (ISAInfo->hasExtension("zalrsc") && ISAIn
@@ -5192,6 +5198,46 @@ bool TreeTransform::TransformTemplateArguments(
return false;
}
+template
zyn0217 wrote:
How about TransformNonDependentTemplateArguments? (we can have a default
IsNonDependentConcept and a client defined implementation)
https://gi
@@ -4487,6 +4487,109 @@ ExprResult Sema::SubstConstraintExprWithoutSatisfaction(
return Instantiator.TransformExpr(E);
}
+ExprResult Sema::SubstConceptTemplateArguments(
+const ConceptSpecializationExpr *CSE, const Expr *ConstraintExpr,
+const MultiLevelTemplateArgum
@@ -4487,6 +4487,109 @@ ExprResult Sema::SubstConstraintExprWithoutSatisfaction(
return Instantiator.TransformExpr(E);
}
+ExprResult Sema::SubstConceptTemplateArguments(
+const ConceptSpecializationExpr *CSE, const Expr *ConstraintExpr,
+const MultiLevelTemplateArgum
@@ -2249,8 +2287,14 @@ NormalizedConstraint
*NormalizedConstraint::fromConstraintExpr(
// Use canonical declarations to merge ConceptDecls across
// different modules.
ConceptDecl *CD = CSE->getNamedConcept()->getCanonicalDecl();
+
+ ExprResult Res =
+
@@ -4487,6 +4487,109 @@ ExprResult Sema::SubstConstraintExprWithoutSatisfaction(
return Instantiator.TransformExpr(E);
}
+ExprResult Sema::SubstConceptTemplateArguments(
+const ConceptSpecializationExpr *CSE, const Expr *ConstraintExpr,
+const MultiLevelTemplateArgum
@@ -7545,6 +7545,45 @@ A managed variable can be accessed in both device and
host code.
}];
}
+def CUDAClusterDimsAttrDoc : Documentation {
+ let Category = DocCatDecl;
+ let Content = [{
+In CUDA/HIP programming, the ``cluster_dims`` attribute, conventionally
exposed as
@@ -2394,6 +2394,185 @@ LValue CIRGenFunction::emitPredefinedLValue(const
PredefinedExpr *e) {
return emitStringLiteralLValue(sl, gvName);
}
+LValue CIRGenFunction::emitOpaqueValueLValue(const OpaqueValueExpr *e) {
+ assert(OpaqueValueMappingData::shouldBindAsLValue(e));
+
andykaylor wrote:
> > That would simplify the EHScopeStck handling significantly in CIR, but the
> > complexity would just be moved to the FlattenCFG pass, and this would mean
> > we were diverging from the classic codegen code structure.
>
> I'm up for the tradeoff here, the lower level alter
https://github.com/fmayer created
https://github.com/llvm/llvm-project/pull/163897
The mock was not accurate, absl defines in_place[_t] as an alias to
std::in_place[_t].
>From dec274f76b8b0b0a9f78557af94a5a80335f6521 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Thu, 16 Oct 2025 17:26:16
https://github.com/bcardosolopes edited
https://github.com/llvm/llvm-project/pull/163877
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/bcardosolopes approved this pull request.
Nice incremental change, LGTM
https://github.com/llvm/llvm-project/pull/163856
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm
https://github.com/bcardosolopes approved this pull request.
LGTM once @AmrDeveloper concerns are addressed!
https://github.com/llvm/llvm-project/pull/163612
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman
https://github.com/bcardosolopes approved this pull request.
https://github.com/llvm/llvm-project/pull/162905
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -192,8 +192,11 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions
&Opts,
Builder.defineMacro("__riscv_muldiv");
}
- if (ISAInfo->hasExtension("a")) {
+ // The "a" extension is composed of "zalrsc" and "zaamo"
+ if (ISAInfo->hasExtension("zalrsc") && ISAIn
https://github.com/shafik updated
https://github.com/llvm/llvm-project/pull/163690
>From f6bded3e92814b7ec5f2c3427e9c61b3fa0775f2 Mon Sep 17 00:00:00 2001
From: Shafik Yaghmour
Date: Wed, 15 Oct 2025 20:09:36 -0700
Subject: [PATCH 1/4] [Clang][Sema] Fix err_constexpr_virtual_base diagnostic
so
https://github.com/y-Adrian updated
https://github.com/llvm/llvm-project/pull/163836
>From d7a38e20f3998fab4d1353b0d86e528a1f428317 Mon Sep 17 00:00:00 2001
From: Adrian
Date: Fri, 17 Oct 2025 01:56:33 +0800
Subject: [PATCH] [CIR]llvm#163601:handle function type
---
clang/lib/CIR/CodeGen/CIRG
https://github.com/JustinStitt edited
https://github.com/llvm/llvm-project/pull/163885
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang-analysis
Author: Justin Stitt (JustinStitt)
Changes
Every once in awhile, we get a new Linux kernel report about false positive
clang warnings being emitted for file-scope variables when initialized. See
[[0]](https://lore.kernel.org/all/8c252429
https://github.com/shiltian updated
https://github.com/llvm/llvm-project/pull/156686
>From 367a570ec538e79f339929c1b0c39b2d11b47cf4 Mon Sep 17 00:00:00 2001
From: Shilei Tian
Date: Wed, 3 Sep 2025 10:47:52 -0400
Subject: [PATCH 01/14] [Clang][HIP][CUDA] Add `__cluster_dims__` and
`__no_cluster
https://github.com/llvm-beanz updated
https://github.com/llvm/llvm-project/pull/163857
>From 490971d23eb067f7a2e3d2ca8b4e2f53bb3fe13f Mon Sep 17 00:00:00 2001
From: Chris Bieneman
Date: Thu, 16 Oct 2025 15:18:39 -0500
Subject: [PATCH 1/3] [HLSL] Convert vectors to bool for unary !
HLSL extends
https://github.com/y-Adrian edited
https://github.com/llvm/llvm-project/pull/163836
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,95 @@
+//===--===//
+//
+// 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
@@ -0,0 +1,152 @@
+// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t
--fix-notes
+
+template
+struct Iterator {
+ void operator++() {}
+ const T& operator*() {
+static T* TT = new T();
+return *TT;
+ }
+ bool operator!=(const Iterator &) { r
@@ -15944,6 +15944,20 @@ ExprResult Sema::CreateBuiltinUnaryOp(SourceLocation
OpLoc,
return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
<< resultType << Input.get()->getSourceRange());
}
+ } else if (Context.getLa
@@ -765,10 +765,18 @@ static bool isRelevantAttr(Sema &S, const Decl *D, const
Attr *A) {
static void instantiateDependentHLSLParamModifierAttr(
Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs,
-const HLSLParamModifierAttr *Attr, Decl *New) {
- ParmVarDec
https://github.com/erichkeane approved this pull request.
I'd like to close out on a unified way of talking about this in the docs, but
I'm ok with the rest of it, so approve pending a touch of work on docs.
https://github.com/llvm/llvm-project/pull/156686
__
https://github.com/teresajohnson closed
https://github.com/llvm/llvm-project/pull/163853
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/AmrDeveloper created
https://github.com/llvm/llvm-project/pull/163856
- Add a default value to handler_types to be able to construct TryOp, then
modify the handlers.
- Move empty region diagnostic from tablegen constraints to C++, because we
need the ability to add an empty
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building
`clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/174/builds/26009
Her
https://github.com/fmayer edited
https://github.com/llvm/llvm-project/pull/162932
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
andykaylor wrote:
@Lancern Now that https://github.com/llvm/llvm-project/pull/160330 has been
merged, is this ready to be rebased?
https://github.com/llvm/llvm-project/pull/161631
___
cfe-commits mailing list
[email protected]
https://lists.l
llvmbot wrote:
/pull-request llvm/llvm-project#163854
https://github.com/llvm/llvm-project/pull/162867
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Teresa Johnson (teresajohnson)
Changes
Follow up to PR163841 to use the new pass in the default non-LTO
pipeline setup. This is needed so that we don't use the hints to convert
allocation calls when we don't know whether we are linking with
llvmbot wrote:
@llvm/pr-subscribers-lto
Author: Teresa Johnson (teresajohnson)
Changes
Follow up to PR163841 to use the new pass in the default non-LTO
pipeline setup. This is needed so that we don't use the hints to convert
allocation calls when we don't know whether we are linking with a
jansvoboda11 wrote:
Thank you for the report. I'll take a look and will attempt a forward-fix and
I'll revert in case I can't get that done by EOD.
https://github.com/llvm/llvm-project/pull/162903
___
cfe-commits mailing list
[email protected]
https://github.com/andykaylor closed
https://github.com/llvm/llvm-project/pull/163306
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mstorsjo milestoned
https://github.com/llvm/llvm-project/pull/162867
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/andykaylor commented:
This need a test added.
https://github.com/llvm/llvm-project/pull/163839
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Amr Hesham
Date: 2025-10-16T21:47:32+02:00
New Revision: 9458faa63fcecf16e744d88746097cb82936d1e6
URL:
https://github.com/llvm/llvm-project/commit/9458faa63fcecf16e744d88746097cb82936d1e6
DIFF:
https://github.com/llvm/llvm-project/commit/9458faa63fcecf16e744d88746097cb82936d1e6.diff
LO
https://github.com/mstorsjo closed
https://github.com/llvm/llvm-project/pull/162867
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/n2h9 edited https://github.com/llvm/llvm-project/pull/163850
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -5674,6 +5674,130 @@ static void handleLaunchBoundsAttr(Sema &S, Decl *D,
const ParsedAttr &AL) {
AL.getNumArgs() > 2 ? AL.getArgAsExpr(2) : nullptr);
}
+static std::pair
+makeClusterDimsArgExpr(Sema &S, Expr *E, const CUDAClusterDimsAttr &AL,
+
@@ -765,10 +765,18 @@ static bool isRelevantAttr(Sema &S, const Decl *D, const
Attr *A) {
static void instantiateDependentHLSLParamModifierAttr(
Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs,
-const HLSLParamModifierAttr *Attr, Decl *New) {
- ParmVarDec
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/163847
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -164,6 +164,23 @@ To summarize:
``-fsanitize-address-use-after-return=``
* ``always``: Enables detection of UAR errors in all cases. (reduces code
size, but not as much as ``never``).
+Container Overflow Detection
+
+
+AddressSanitizer can
@@ -41,13 +42,12 @@
; RUN: -r=%t/foo.o,foo,plx \
; RUN: -r=%t/foo.o,_Znam, \
; RUN: -memprof-dump-ccg \
-; RUN: -save-temps \
+; RUN: -print-before=memprof-context-disambiguation \
teresajohnson wrote:
I was trying to keep the point of validation consistent b
andykaylor wrote:
I'm not entirely convinced this is the direction we want to go long-term, so
I'd like to solicit opinions on that question specifically.
This matches the handling for this case in the incubator, which is closely
modeled after the same handling in classic codegen. Classic code
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Simon Pilgrim (RKSimon)
Changes
Removes need to offset PSHUFHW land index to extract the shuffle mask element
---
Full diff: https://github.com/llvm/llvm-project/pull/162006.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Int
https://github.com/AmrDeveloper created
https://github.com/llvm/llvm-project/pull/163842
Fix code style warnings in the emitNewArrayInitializer declaration
>From 8af8566b6c1604c30fee67f040a73c10d50bed81 Mon Sep 17 00:00:00 2001
From: Amr Hesham
Date: Thu, 16 Oct 2025 20:30:14 +0200
Subject: [P
llvmbot wrote:
@llvm/pr-subscribers-hlsl
Author: Helena Kotas (hekota)
Changes
When a template function with `out` arguments is instantiated, only the
arguments with dependent types need to have their `out` type updated to a
restricted reference. Non-dependent argument types have already
@@ -308,7 +308,67 @@ class PseudoMaskedAMOMinMaxPat
(AMOInst GPR:$addr, GPR:$incr, GPR:$mask, GPR:$shiftamt,
timm:$ordering)>;
-let Predicates = [HasStdExtA] in {
+let Predicates = [HasStdExtZalrsc, NoStdExtZaamo] in {
+
+let Size = 16 in {
+def PseudoAtom
https://github.com/efriedma-quic approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/163207
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/spall created
https://github.com/llvm/llvm-project/pull/163828
When the Sub expression of an HLSLAggregateSplatCast is an LValue insert an
LValue to RValue cast; done using DefaultLvalueConversion.
When the Sub expression of an HLSLElementwiseCast is an LValue and not a recor
@@ -1918,23 +1918,22 @@ static bool CheckConstexprMissingReturn(Sema &SemaRef,
const FunctionDecl *Dcl);
bool Sema::CheckConstexprFunctionDefinition(const FunctionDecl *NewFD,
CheckConstexprKind Kind) {
- const CXXMethodDecl *MD =
@@ -1918,23 +1918,22 @@ static bool CheckConstexprMissingReturn(Sema &SemaRef,
const FunctionDecl *Dcl);
bool Sema::CheckConstexprFunctionDefinition(const FunctionDecl *NewFD,
CheckConstexprKind Kind) {
- const CXXMethodDecl *MD =
@@ -2615,6 +2618,15 @@ bool SPIRVInstructionSelector::selectDiscard(Register
ResVReg,
.constrainAllUses(TII, TRI, RBI);
}
+bool SPIRVInstructionSelector::selectFwidth(Register ResVReg,
+const SPIRVType *ResType,
+
@@ -0,0 +1,51 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o
%t.cir
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o
%t-cir.ll
+// RUN: FileCheck --chec
https://github.com/andykaylor edited
https://github.com/llvm/llvm-project/pull/163306
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/slachowsky edited
https://github.com/llvm/llvm-project/pull/163672
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff origin/main HEAD --extensions cpp,h --
clang/lib/AST/ByteCode/Compiler.cpp clang/lib/
https://github.com/topperc edited
https://github.com/llvm/llvm-project/pull/163672
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while
building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/95/builds/187
https://github.com/RKSimon approved this pull request.
LGTM - cheers
https://github.com/llvm/llvm-project/pull/162301
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff origin/main HEAD --extensions cpp,h,c --
clang/test/CodeGen/AArch64/sve-intrinsics/ac
https://github.com/ojhunt updated
https://github.com/llvm/llvm-project/pull/163456
>From 7e7dbd53c88e96ba440ad48f05d6472e03eafd72 Mon Sep 17 00:00:00 2001
From: Oliver Hunt
Date: Tue, 14 Oct 2025 14:26:04 -0700
Subject: [PATCH] [clang][PAC] Add ptrauth.h helpers for computing type
discriminato
@@ -424,11 +490,76 @@ def run_creduce(self):
print("\n\nctrl-c detected, killed reduction tool")
p.kill()
+def run_llvm_reduce(self):
+full_llvm_reduce_cmd = [
+llvm_reduce_cmd,
+f"--test={self.testfile}",
+
Author: Wenju He
Date: 2025-10-16T09:40:09+08:00
New Revision: 754ebc6ebb9fb9fbee7aef33478c74ea74949853
URL:
https://github.com/llvm/llvm-project/commit/754ebc6ebb9fb9fbee7aef33478c74ea74949853
DIFF:
https://github.com/llvm/llvm-project/commit/754ebc6ebb9fb9fbee7aef33478c74ea74949853.diff
LOG:
vbvictor wrote:
When finished with initial work, please try to run the check over LLVM/other
large codebase to see if there any bugs.
https://clang.llvm.org/extra/clang-tidy/Contributing.html#running-clang-tidy-on-llvm
https://github.com/llvm/llvm-project/pull/160150
___
Discookie wrote:
No particular reason for choosing the prefix `>`. I thought about enclosing it
in `"` quotes, with escape sequences like `\"`, but that would require
implementing a parser in clang-tidy, and that seemed to be unnecessarily big in
scope. A single-character prefix seemed better
llvmbot wrote:
@llvm/pr-subscribers-testing-tools
@llvm/pr-subscribers-clang
Author: David Spickett (DavidSpickett)
Changes
LLVM now requires Python >= 3.8, and ConfigParser was renamed to
configparser in 3.0:
https://docs.python.org/3/whatsnew/3.0.html#library-changes
A few places impor
https://github.com/RKSimon updated
https://github.com/llvm/llvm-project/pull/163293
>From 9e2b1aab5e48c69b7ad7c0e5c10d8809c218b71e Mon Sep 17 00:00:00 2001
From: NagaChaitanya Vellanki
Date: Sun, 12 Oct 2025 02:19:26 -0700
Subject: [PATCH] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretB
https://github.com/Fznamznon commented:
Needs a release note
https://github.com/llvm/llvm-project/pull/163690
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
80 matches
Mail list logo