@@ -120,14 +120,15 @@ function(link_bc)
endif()
add_custom_command(
-OUTPUT ${ARG_TARGET}.bc
-COMMAND ${llvm-link_exe} ${link_flags} -o ${ARG_TARGET}.bc
${LINK_INPUT_ARG}
+OUTPUT ${LIBCLC_ARCH_OBJFILE_DIR}/${ARG_TARGET}.bc
+COMMAND ${llvm-link_exe} ${link_
@@ -2223,16 +2223,81 @@ void CStringChecker::evalStrcpyCommon(CheckerContext
&C, const CallEvent &Call,
Result = lastElement;
}
+// For bounded method, amountCopied take the minimum of two values,
+// for ConcatFnKind::strlcat:
+// amountCopied = min (
https://github.com/imdj updated https://github.com/llvm/llvm-project/pull/146859
>From 1077e164158965e824097542dc4c3ecc8821d6dc Mon Sep 17 00:00:00 2001
From: Imad Aldij
Date: Thu, 3 Jul 2025 13:50:55 +0300
Subject: [PATCH 1/3] Add support for consteval if in ConditionBRVisitor
---
clang/lib/S
https://github.com/flovent updated
https://github.com/llvm/llvm-project/pull/146212
>From 9da53c788fc01cd3fc2dd4c178b836035b5d380b Mon Sep 17 00:00:00 2001
From: flovent
Date: Sat, 28 Jun 2025 20:58:43 +0800
Subject: [PATCH 1/6] [analyzer] Avoid unnecessary super region invalidation in
`CStrin
Author: David Spickett
Date: 2025-07-03T13:36:30Z
New Revision: d805707ee435fbe83440ceaf0eb515bf1d536f01
URL:
https://github.com/llvm/llvm-project/commit/d805707ee435fbe83440ceaf0eb515bf1d536f01
DIFF:
https://github.com/llvm/llvm-project/commit/d805707ee435fbe83440ceaf0eb515bf1d536f01.diff
LOG
https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/146833
>From 27ede3bfae2776deef2dfce803a5f500bf0c7278 Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Thu, 3 Jul 2025 09:24:59 +0100
Subject: [PATCH 1/2] [libclc] Make library output directories explicit
These
https://github.com/AlexVlx updated
https://github.com/llvm/llvm-project/pull/146813
>From d98e3785a144ada9881cdbe24c86f273850eca20 Mon Sep 17 00:00:00 2001
From: Alex Voicu
Date: Thu, 3 Jul 2025 02:02:04 +0100
Subject: [PATCH 1/4] Add support for true globals.
---
llvm/lib/Transforms/HipStdPa
https://github.com/jansvoboda11 updated
https://github.com/llvm/llvm-project/pull/146910
>From 12825e992f8e7c8c9d50e7738e94f7d3770fd356 Mon Sep 17 00:00:00 2001
From: Jan Svoboda
Date: Thu, 3 Jul 2025 07:31:00 -0700
Subject: [PATCH 1/2] [clang] Refactor `CodeGenOptions` to specify AST effect
a
https://github.com/sdesmalen-arm approved this pull request.
https://github.com/llvm/llvm-project/pull/144611
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2261,6 +2261,23 @@ void Sema::checkTypeSupport(QualType Ty, SourceLocation
Loc, ValueDecl *D) {
}
}
}
+
+if (auto *VT = Ty->getAs();
+VT && FD &&
+(VT->getVectorKind() == VectorKind::SveFixedLengthData ||
+ VT->getVectorKind()
@@ -2261,6 +2261,21 @@ void Sema::checkTypeSupport(QualType Ty, SourceLocation
Loc, ValueDecl *D) {
}
}
}
+
+if (auto *VT = Ty->getAs();
+VT && FD &&
+(VT->getVectorKind() == VectorKind::SveFixedLengthData ||
+ VT->getVectorKind()
@@ -2261,6 +2261,23 @@ void Sema::checkTypeSupport(QualType Ty, SourceLocation
Loc, ValueDecl *D) {
}
}
}
+
+if (auto *VT = Ty->getAs();
+VT && FD &&
+(VT->getVectorKind() == VectorKind::SveFixedLengthData ||
+ VT->getVectorKind()
https://github.com/dbartol updated
https://github.com/llvm/llvm-project/pull/145784
>From 0be65986e1e2adf973a032936afa9cf48841055b Mon Sep 17 00:00:00 2001
From: Dave Bartolomeo
Date: Wed, 25 Jun 2025 17:45:50 -0400
Subject: [PATCH 1/4] EndSourceFile() for preprocessor before diagnostic client
https://github.com/AmrDeveloper updated
https://github.com/llvm/llvm-project/pull/146757
>From 255b4ee2e630d446351244934b06733e5a3e9358 Mon Sep 17 00:00:00 2001
From: AmrDeveloper
Date: Wed, 2 Jul 2025 20:48:36 +0200
Subject: [PATCH] [CIR] Upstream UnaryDeref support for ComplexType
---
clang
@@ -518,6 +518,27 @@ bool AArch64FrameLowering::hasFPImpl(const MachineFunction
&MF) const {
return false;
}
+/// Should the Frame Pointer be reserved for the current function?
+bool AArch64FrameLowering::isFPReserved(const MachineFunction &MF) const {
+ const TargetMachin
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Abhinav Gaba (abhinavgaba)
Changes
The refactored code would allow creating multiple member-of maps for the same
captured var, which would be useful for changes like
https://github.com/llvm/llvm-project/pull/145454.
---
Full diff: https:
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Author: Abhinav Gaba (abhinavgaba)
Changes
The refactored code would allow creating multiple member-of maps for the same
captured var, which would be useful for changes like
https://github.com/llvm/llvm-project/pull/145454.
---
Full diff
Author: Amr Hesham
Date: 2025-07-03T17:50:21+02:00
New Revision: e93a34662f1471c17f2afa7461ec71bf7913b984
URL:
https://github.com/llvm/llvm-project/commit/e93a34662f1471c17f2afa7461ec71bf7913b984
DIFF:
https://github.com/llvm/llvm-project/commit/e93a34662f1471c17f2afa7461ec71bf7913b984.diff
LO
https://github.com/AmrDeveloper closed
https://github.com/llvm/llvm-project/pull/146755
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/flovent updated
https://github.com/llvm/llvm-project/pull/146212
>From 9da53c788fc01cd3fc2dd4c178b836035b5d380b Mon Sep 17 00:00:00 2001
From: flovent
Date: Sat, 28 Jun 2025 20:58:43 +0800
Subject: [PATCH 01/10] [analyzer] Avoid unnecessary super region invalidation
in `CStr
Author: Amr Hesham
Date: 2025-07-03T17:50:00+02:00
New Revision: 59d641a2dab475f6ab0ab1308b1d6dd641dccb6a
URL:
https://github.com/llvm/llvm-project/commit/59d641a2dab475f6ab0ab1308b1d6dd641dccb6a
DIFF:
https://github.com/llvm/llvm-project/commit/59d641a2dab475f6ab0ab1308b1d6dd641dccb6a.diff
LO
https://github.com/abhinavgaba ready_for_review
https://github.com/llvm/llvm-project/pull/146891
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/AmrDeveloper closed
https://github.com/llvm/llvm-project/pull/146751
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/brevzin updated
https://github.com/llvm/llvm-project/pull/146815
>From 40290a957b6f349a9b670193c8bc699d8eb7d373 Mon Sep 17 00:00:00 2001
From: Barry Revzin
Date: Fri, 27 Jun 2025 17:29:45 -0500
Subject: [PATCH 1/6] [P3074] Implementing part of trivial unions
---
clang/lib/A
https://github.com/brevzin updated
https://github.com/llvm/llvm-project/pull/146815
>From 40290a957b6f349a9b670193c8bc699d8eb7d373 Mon Sep 17 00:00:00 2001
From: Barry Revzin
Date: Fri, 27 Jun 2025 17:29:45 -0500
Subject: [PATCH 1/7] [P3074] Implementing part of trivial unions
---
clang/lib/A
@@ -0,0 +1,106 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
flovent wrote:
> Added `alpha.unix.cstring` and `unix.cstring` to testcase,
> `alpha.unix.cstring` makes a difference, in line 66, if `size` is equal to
> `dest`'s size, `alpha.uni
llvmbot wrote:
@llvm/pr-subscribers-backend-aarch64
Author: Tomer Shafir (tomershafir)
Changes
This change removes unnecessary tune args to the AArch64 backend. The AArch64
backend automatically handles `tune-cpu` and adds the necessar
y features based on the models from TableGen.
It fol
llvmbot wrote:
@llvm/pr-subscribers-clang-driver
Author: Tomer Shafir (tomershafir)
Changes
This change removes unnecessary tune args to the AArch64 backend. The AArch64
backend automatically handles `tune-cpu` and adds the necessar
y features based on the models from TableGen.
It follow
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Tomer Shafir (tomershafir)
Changes
This change removes unnecessary tune args to the AArch64 backend. The AArch64
backend automatically handles `tune-cpu` and adds the necessar
y features based on the models from TableGen.
It follows this
https://github.com/tomershafir ready_for_review
https://github.com/llvm/llvm-project/pull/146896
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
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 HEAD~1 HEAD --extensions cpp --
clang/lib/CodeGen/CGOpenMPRuntime.cpp
``
DavidSpickett wrote:
The actual error is the same as seen elsewhere:
```
$ /home/david.spickett/build-llvm-aarch64/bin/flang
--target=aarch64-pc-windows-msvc -Werror
../llvm-project/flang/test/Semantics/windows.f90
flang-21: warning: unable to find a Visual Studio installation; try running
Cla
@@ -832,13 +835,11 @@ FileID
SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const {
unsigned LessIndex = 0;
// upper bound of the search range.
unsigned GreaterIndex = LocalSLocEntryTable.size();
- if (LastFileIDLookup.ID >= 0) {
-// Use the LastFi
@@ -8727,11 +8733,13 @@ class MappableExprsHandler {
}
}
- /// Generate the base pointers, section pointers, sizes, map types, and
- /// mappers associated to a given capture (all included in \a CombinedInfo).
- void generateInfoForCapture(const CapturedStmt::Capture
@@ -8826,6 +8830,51 @@ class MappableExprsHandler {
return (HasPresent && !HasPresentR) || (HasAllocs && !HasAllocsR);
});
+auto GenerateInfoForComponentLists =
+[&](ArrayRef DeclComponentLists,
+bool IsEligibleForTargetParamFlag) {
+
https://github.com/jvoung created
https://github.com/llvm/llvm-project/pull/146900
When `this` is under a CXXDefaultInitExpr. E.g.,
struct S {
int x;
int y = this->x;
};
struct R {
int foo() {
// `this` for `a` refers to an R, but `this`
// for `x` refers to an S.
return S{this
https://github.com/cor3ntin updated
https://github.com/llvm/llvm-project/pull/146890
>From c138801c212f69f4dee83c7516e0e77eb876a9f0 Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Thu, 3 Jul 2025 14:26:59 +0200
Subject: [PATCH 1/2] [Clang] Correctly handle allocations in the condition of
a
@@ -20629,6 +20629,9 @@ Sema::ConditionResult Sema::ActOnCondition(Scope *S,
SourceLocation Loc,
case ConditionKind::ConstexprIf:
Cond = CheckBooleanCondition(Loc, SubExpr, true);
+assert(isa(Cond.get()) &&
cor3ntin wrote:
Actually the assert was i
@@ -1931,15 +1931,13 @@ Parser::ParseCXXCondition(StmtResult *InitStmt,
SourceLocation Loc,
return ParseCXXCondition(nullptr, Loc, CK, MissingOK);
}
-ExprResult Expr = [&] {
- EnterExpressionEvaluationContext Eval(
- Actions, Sema::ExpressionEvalua
@@ -20643,10 +20641,12 @@ Sema::ConditionResult Sema::ActOnCondition(Scope *S,
SourceLocation Loc,
{SubExpr}, PreferredConditionType(CK));
if (!Cond.get())
return ConditionError();
- }
- if (!isa(Cond.get()))
+ } else if (Cond.isUsabl
https://github.com/NagyDonat commented:
According to the CI Checks, one of your testcases is failing:
https://github.com/llvm/llvm-project/actions/runs/16055061425?pr=146212
> error: 'expected-warning' diagnostics expected but not seen:
File
/home/gha/actions-runner/_work/llvm-project/llvm-pr
https://github.com/AaronBallman updated
https://github.com/llvm/llvm-project/pull/146394
>From 94cd71d65fe27cdde0c39416a0e2e709af98ed0c Mon Sep 17 00:00:00 2001
From: Aaron Ballman
Date: Mon, 30 Jun 2025 13:26:57 -0400
Subject: [PATCH 1/7] [C23] Fix typeof handling in enum declarations
We have
https://github.com/efriedma-quic updated
https://github.com/llvm/llvm-project/pull/144611
>From c28804a471a9fe6be24479ffbfd7d4aa6c774125 Mon Sep 17 00:00:00 2001
From: Eli Friedman
Date: Tue, 17 Jun 2025 11:48:47 -0700
Subject: [PATCH 1/7] [AArch64] Add option -msve-streaming-vector-bits= .
Th
mrcvtl wrote:
> There are some test failures in the presubmit checks, you probably need to
> update these tests.
Yes, indeed. For example, in `AST/ast-dump-for-range-lifetime.cpp` we move from:
`-MaterializeTemporaryExpr {{.*}} 'C':'P2718R0::C' xvalue extended by Var
{{.*}} '__range1' 'C &&'`
Endilll wrote:
No idea why it blew up on that particular s390x buildbot.
@AaronBallman Any ideas?
https://github.com/llvm/llvm-project/pull/146844
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/c
https://github.com/HazardyKnusperkeks approved this pull request.
Please wait a few days, or until another approval.
https://github.com/llvm/llvm-project/pull/146761
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin
https://github.com/michalpaszkowski approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/146656
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/efriedma-quic updated
https://github.com/llvm/llvm-project/pull/144611
>From c28804a471a9fe6be24479ffbfd7d4aa6c774125 Mon Sep 17 00:00:00 2001
From: Eli Friedman
Date: Tue, 17 Jun 2025 11:48:47 -0700
Subject: [PATCH 1/8] [AArch64] Add option -msve-streaming-vector-bits= .
Th
https://github.com/efriedma-quic updated
https://github.com/llvm/llvm-project/pull/144611
>From c28804a471a9fe6be24479ffbfd7d4aa6c774125 Mon Sep 17 00:00:00 2001
From: Eli Friedman
Date: Tue, 17 Jun 2025 11:48:47 -0700
Subject: [PATCH 1/9] [AArch64] Add option -msve-streaming-vector-bits= .
Th
https://github.com/shiltian approved this pull request.
https://github.com/llvm/llvm-project/pull/146636
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
Before this patch, we emitted a bunch of irrelevant (to this test) warnings:
```
../clang/test/SemaCXX/discrim-union.cpp:49:24: warning: 'constexpr'
non-static member function will not be implicitly 'const'
ziqingluo-90 wrote:
> The logic added in #143950 also handles line splices with 0 trailing
> whitespace characters, so this code is now redundant. (When removing it, the
> test run fine too.)
>
> Should removing this code be a separate PR?
Done
https://github.com/llvm/llvm-project/pull/14664
llvmbot wrote:
@llvm/pr-subscribers-clang-tools-extra
@llvm/pr-subscribers-clang-tidy
Author: Victor Chernyakin (localspook)
Changes
Closes #132561.
This is a check that rewrites `#if`s and `#elif`s like so:
```cpp
#if defined(MEOW) // -> #ifdef MEOW
#if !defined(MEOW) // -> #ifndef ME
https://github.com/localspook created
https://github.com/llvm/llvm-project/pull/146830
Closes #132561.
This is a check that rewrites `#if`s and `#elif`s like so:
```cpp
#if defined(MEOW) // -> #ifdef MEOW
#if !defined(MEOW) // -> #ifndef MEOW
```
And, since C23 and C++23:
```cpp
#elif def
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
@@ -1304,6 +1304,13 @@ checkExprLifetimeImpl(Sema &SemaRef, const
InitializedEntity *InitEntity,
if (LK == LK_FullExpression)
return;
+ if (LK == LK_Extended && SemaRef.getLangOpts().CPlusPlus23) {
hokein wrote:
Is the `LK == LK_Extended` check necess
nikic wrote:
> Also, this is separate to the issue to making a Windows Shared library issue
> here #109483 (this purely based on your comment that ' the annotation effort
> hasn't progressed to them yet')
That same work also enables building libLLVM/libclang with
`-fvisibilty=hidden`, which i
Hanwen-ece wrote:
Dear Shunsuke,
Thank you for your thoughtful response and for sharing your approach to complex
division optimization. We encountered similar performance issues while
analyzing SPEC2017 workloads, particularly in the handling of complex
arithmetic, and were motivated to propo
https://github.com/hokein commented:
There are some test failures in the presubmit checks, you probably need to
update these tests.
https://github.com/llvm/llvm-project/pull/145164
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.
frasercrmck wrote:
> > I am seeing unresolved CLC functions in `nvptx--.bc` and `nvptx64--.bc`. I
> > think it's because we're now building things like `get_num_groups` for
> > `nvptx`/`nvptx64`, whereas previously they were not being built for those
> > targets. We're also not building `__clc
https://github.com/MythreyaK updated
https://github.com/llvm/llvm-project/pull/146649
>From 7f8581f01c3c25363b77100635c6df7223badba3 Mon Sep 17 00:00:00 2001
From: Mythreya Kuricheti
Date: Wed, 2 Jul 2025 01:26:25 -0700
Subject: [PATCH 1/2] [clang][CodeComplete] skip explicit obj param in
Sign
mcbarton wrote:
> > Also, this is separate to the issue to making a Windows Shared library
> > issue here #109483 (this purely based on your comment that ' the annotation
> > effort hasn't progressed to them yet')
>
> That same work also enables building libLLVM/libclang with
> `-fvisibilty=h
@@ -1023,12 +1023,12 @@ defm offload_uniform_block :
BoolFOption<"offload-uniform-block",
BothFlags<[], [ClangOption], " that kernels are launched with uniform block
sizes (default true for CUDA/HIP and false otherwise)">>;
def fcomplex_arithmetic_EQ : Joined<["-"], "fcomp
@@ -0,0 +1,35 @@
+! Test lowering of complex division according to options
+
+! REQUIRES: flang-supports-f128-math
+! RUN: bbc -complex-range=full -emit-hlfir %s -o - | FileCheck %s
--check-prefixes=CHECK,FULL
+! RUN: bbc -complex-range=improved -emit-hlfir %s -o - | FileCheck %s
@@ -595,6 +595,30 @@ void Flang::addOffloadOptions(Compilation &C, const
InputInfoList &Inputs,
addOpenMPHostOffloadingArgs(C, JA, Args, CmdArgs);
}
+static std::string ComplexRangeKindToStr(LangOptions::ComplexRangeKind Range) {
+ switch (Range) {
+ case LangOptions::Com
https://github.com/kiranchandramohan edited
https://github.com/llvm/llvm-project/pull/146641
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kiranchandramohan approved this pull request.
LG. Thanks for all the work and experiments here.
Couple of nit/trivial comments.
https://github.com/llvm/llvm-project/pull/146641
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
@@ -1066,8 +1066,16 @@ struct BinaryOp(loc, lhs, rhs)};
kiranchandramohan wrote:
Nit: braces
https://github.com/llvm/llvm-project/pull/146641
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.o
@@ -518,6 +518,27 @@ bool AArch64FrameLowering::hasFPImpl(const MachineFunction
&MF) const {
return false;
}
+/// Should the Frame Pointer be reserved for the current function?
+bool AArch64FrameLowering::isFPReserved(const MachineFunction &MF) const {
+ const TargetMachin
AlexVlx wrote:
> @efriedma-quic was kind enough to have a call where we discussed this a bit
> more. I'll update tomorrow with a potential way forward, for the group's
> consideration.
Following up, here's a possible approach to making progress, broken down in
phases, (@efriedma-quic can corr
https://github.com/tahonermann requested changes to this pull request.
https://github.com/llvm/llvm-project/pull/146854
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1,19 +1,19 @@
// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -aux-triple
x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device
-emit-llvm %s -o - | FileCheck %s '-D$ADDRSPACE=addrspace(1) '
-// RUN: %clang_cc1 -triple x86_64-pc-windows-
@@ -1,19 +1,19 @@
// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -aux-triple
x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device
-emit-llvm %s -o - | FileCheck %s '-D$ADDRSPACE=addrspace(1) '
-// RUN: %clang_cc1 -triple x86_64-pc-windows-
@@ -1,19 +1,19 @@
// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -aux-triple
x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device
-emit-llvm %s -o - | FileCheck %s '-D$ADDRSPACE=addrspace(1) '
tahonermann wrote:
The redun
@@ -1,19 +1,19 @@
// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -aux-triple
x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device
-emit-llvm %s -o - | FileCheck %s '-D$ADDRSPACE=addrspace(1) '
-// RUN: %clang_cc1 -triple x86_64-pc-windows-
https://github.com/Fznamznon ready_for_review
https://github.com/llvm/llvm-project/pull/146854
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Fznamznon updated
https://github.com/llvm/llvm-project/pull/146854
>From 9a640eefb5d27a65f236b5f7df1398bdf1bcc017 Mon Sep 17 00:00:00 2001
From: "Podchishchaeva, Mariya"
Date: Thu, 3 Jul 2025 03:46:41 -0700
Subject: [PATCH 1/2] [NFC][clang] Fix
CodeGenSYCL::unique_stable_nam
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Mariya Podchishchaeva (Fznamznon)
Changes
The test checks x86 target in fsycl-is-device mode. x86 is not a valid
offloading target and IMO test meant to check fsycl-is-host mode to make sure
host invocations of __builtin_sycl_unique_stabl
https://github.com/cor3ntin updated
https://github.com/llvm/llvm-project/pull/146857
>From 4ee72df191e9792be38195b00b0f6422de3a767a Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Thu, 3 Jul 2025 13:00:46 +0200
Subject: [PATCH 1/2] [Clang] Fix evaluation context of lambdas appearing in
dis
https://github.com/flovent updated
https://github.com/llvm/llvm-project/pull/146212
>From 9da53c788fc01cd3fc2dd4c178b836035b5d380b Mon Sep 17 00:00:00 2001
From: flovent
Date: Sat, 28 Jun 2025 20:58:43 +0800
Subject: [PATCH 1/5] [analyzer] Avoid unnecessary super region invalidation in
`CStrin
https://github.com/AaronBallman updated
https://github.com/llvm/llvm-project/pull/146394
>From 94cd71d65fe27cdde0c39416a0e2e709af98ed0c Mon Sep 17 00:00:00 2001
From: Aaron Ballman
Date: Mon, 30 Jun 2025 13:26:57 -0400
Subject: [PATCH 1/6] [C23] Fix typeof handling in enum declarations
We have
@@ -2223,16 +2223,81 @@ void CStringChecker::evalStrcpyCommon(CheckerContext
&C, const CallEvent &Call,
Result = lastElement;
}
+// For bounded method, amountCopied take the minimum of two values,
+// for ConcatFnKind::strlcat:
+// amountCopied = min (
@@ -849,7 +850,12 @@ FileID
SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const {
FileID Res = FileID::get(int(GreaterIndex));
// Remember it. We have good locality across FileID lookups.
LastFileIDLookup = Res;
- NumLinearScans += Nu
@@ -832,13 +835,11 @@ FileID
SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const {
unsigned LessIndex = 0;
// upper bound of the search range.
unsigned GreaterIndex = LocalSLocEntryTable.size();
- if (LastFileIDLookup.ID >= 0) {
-// Use the LastFi
@@ -0,0 +1,8 @@
+// RUN: %clang_analyze_cc1 -std=c++23 -analyzer-checker=core -verify %s
+
+void test_consteval() {
+ if consteval {
+int *ptr = nullptr;
+*ptr = 42; // expected-warning{{Dereference of null pointer (loaded from
variable 'ptr')}}
+ }
+}
flovent wrote:
> Also please follow the [Coding
> Standard](https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly)
> and use `UpperCamelCase` variables for variables (including ones that store
> lambda functions), while `lowerCamelCase` is for metho
@@ -2122,8 +2122,21 @@ SVal
RegionStoreManager::getBindingForField(RegionBindingsConstRef B,
if (const std::optional &V = B.getDirectBinding(R))
return *V;
- // If the containing record was initialized, try to get its constant value.
+ // UnnamedBitField is always Und
@@ -2122,8 +2122,21 @@ SVal
RegionStoreManager::getBindingForField(RegionBindingsConstRef B,
if (const std::optional &V = B.getDirectBinding(R))
return *V;
- // If the containing record was initialized, try to get its constant value.
+ // UnnamedBitField is always Und
https://github.com/vabridgers closed
https://github.com/llvm/llvm-project/pull/146597
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Lancern updated
https://github.com/llvm/llvm-project/pull/146529
>From c00abbed243cf4048317031c3abde185a050a2d4 Mon Sep 17 00:00:00 2001
From: Sirui Mu
Date: Tue, 1 Jul 2025 21:26:23 +0800
Subject: [PATCH] [CIR] Bit manipulation builtin functions
This patch adds CIR support
https://github.com/tomershafir created
https://github.com/llvm/llvm-project/pull/146896
This change removes unnecessary tune args to the AArch64 backend. The AArch64
backend automatically handles `tune-cpu` and adds the necessary features based
on the models from TableGen.
>From 47da7044807f1
AaronBallman wrote:
> > > > ```c++
> > > > typeof(int){} x; // Probably parsed as typeof(int{})
> > > > ```
> > >
> > >
> > > Actually, I’m not sure what we think this is supposed to be; I haven’t
> > > checked.
> >
> >
> > Actually, that’s just a compound literal; I forgot we supported thos
@@ -0,0 +1,106 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
flovent wrote:
Added `alpha.unix.cstring` and `unix.cstring` to testcase, `alpha.unix.cstring`
makes a difference, in line 66, if `size` is equal to `dest`'s size,
`alpha.unix.cstri
https://github.com/flovent updated
https://github.com/llvm/llvm-project/pull/146212
>From 9da53c788fc01cd3fc2dd4c178b836035b5d380b Mon Sep 17 00:00:00 2001
From: flovent
Date: Sat, 28 Jun 2025 20:58:43 +0800
Subject: [PATCH 1/9] [analyzer] Avoid unnecessary super region invalidation in
`CStrin
@@ -2122,8 +2122,21 @@ SVal
RegionStoreManager::getBindingForField(RegionBindingsConstRef B,
if (const std::optional &V = B.getDirectBinding(R))
return *V;
- // If the containing record was initialized, try to get its constant value.
+ // UnnamedBitField is always Und
compnerd wrote:
I think that it might be better to wait on this change until we do this
properly. In the mean time, the workaround would be to use
`-fvisibility=default`. If you want to help with the annotations to make clang
build as a DSO, I think that @andrurogerz would welcome the help. Bu
https://github.com/bogner approved this pull request.
looks good, one more comment about using enum values rather than bit patterns
in a test
https://github.com/llvm/llvm-project/pull/145986
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http
https://github.com/bogner edited
https://github.com/llvm/llvm-project/pull/145986
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -56,7 +56,7 @@ TEST(HLSLRootSignatureTest, DescriptorUAVClauseDump) {
Clause.NumDescriptors = 3298;
Clause.Space = 932847;
Clause.Offset = 1;
- Clause.Flags = DescriptorRangeFlags::ValidFlags;
+ Clause.Flags = llvm::dxbc::DescriptorRangeFlags(0x1000f);
--
https://github.com/AmrDeveloper created
https://github.com/llvm/llvm-project/pull/146927
Upstream `__builtin_creal` support for ComplexType
https://github.com/llvm/llvm-project/issues/141365
>From 518f6ee1e10319f12eac78c675e082a6fbeebb33 Mon Sep 17 00:00:00 2001
From: AmrDeveloper
Date: Thu,
1 - 100 of 562 matches
Mail list logo