https://github.com/antoniofrighetto updated
https://github.com/llvm/llvm-project/pull/120783
>From 54d3ac991abaa341dd4798bbf6aeb3ede4441d64 Mon Sep 17 00:00:00 2001
From: Antonio Frighetto
Date: Fri, 20 Dec 2024 19:30:59 +0100
Subject: [PATCH 1/2] [IR][ModRef] Introduce `errno` memory location
@@ -2486,6 +2486,23 @@ are listed below.
$ clang -fuse-ld=lld -Oz -Wl,--icf=safe -fcodegen-data-use code.cc
+Strict Aliasing
+---
+
+Clang by default applies C/C++'s strict aliasing rules during optimizations. In
thesamesam wrote:
Thanks! It
https://github.com/arsenm approved this pull request.
https://github.com/llvm/llvm-project/pull/124727
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Fraser Cormack
Date: 2025-01-28T14:17:23Z
New Revision: 78b5bb702fe97fe85f66d72598d0dfa7c49fe001
URL:
https://github.com/llvm/llvm-project/commit/78b5bb702fe97fe85f66d72598d0dfa7c49fe001
DIFF:
https://github.com/llvm/llvm-project/commit/78b5bb702fe97fe85f66d72598d0dfa7c49fe001.diff
LOG
Author: cor3ntin
Date: 2025-01-28T15:18:38+01:00
New Revision: 820c6ac7f5e438cc268ecb1fa2c6b17f0d168000
URL:
https://github.com/llvm/llvm-project/commit/820c6ac7f5e438cc268ecb1fa2c6b17f0d168000
DIFF:
https://github.com/llvm/llvm-project/commit/820c6ac7f5e438cc268ecb1fa2c6b17f0d168000.diff
LOG:
https://github.com/arsenm approved this pull request.
https://github.com/llvm/llvm-project/pull/124739
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/124708
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jhuber6 commented:
Broad question, should we instead aim for having `-fsanitize` work for both
sides? I've always been very much against all these `*-gpu` bloat flags when we
could just do `-Xarch_host -fsanitize` or `-Xarch_device -fsanitize`. The word
against that it usual
@@ -0,0 +1 @@
+add_subdirectory(DirectToLLVM)
erichkeane wrote:
newline at end of file here too, because github.
https://github.com/llvm/llvm-project/pull/124650
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
@@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer {
void Initialize(clang::ASTContext &astContext) override;
bool HandleTopLevelDecl(clang::DeclGroupRef group) override;
mlir::ModuleOp getModule() const;
+ std::unique_ptr takeContext() {
e
https://github.com/erichkeane edited
https://github.com/llvm/llvm-project/pull/124650
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/erichkeane commented:
I have concerns about `takeContext`, else everything else is a NIT.
https://github.com/llvm/llvm-project/pull/124650
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman
https://github.com/junlarsen created
https://github.com/llvm/llvm-project/pull/124771
Follow-up to https://github.com/llvm/llvm-project/issues/123569
>From f3bbd6f0db4109016d98fe15a2b086b491df2d93 Mon Sep 17 00:00:00 2001
From: Mats Jun Larsen
Date: Wed, 29 Jan 2025 00:31:32 +0900
Subject: [PA
nico wrote:
(Why drop the formatting test? Seems good to have an integration test for this,
no?)
https://github.com/llvm/llvm-project/pull/124634
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/c
@@ -0,0 +1,40 @@
+.. title:: clang-tidy - use-cpp-style-comments
+
+readability-use-cpp-style-comments
+==
+
+Replace C-style comments with C++-style comments.
+C-style comments (``/* ... */``) are inherited from C, while C++ introduces
+``//`` as
@@ -0,0 +1,40 @@
+.. title:: clang-tidy - use-cpp-style-comments
+
+readability-use-cpp-style-comments
+==
+
+Replace C-style comments with C++-style comments.
+C-style comments (``/* ... */``) are inherited from C, while C++ introduces
+``//`` as
@@ -1097,31 +1097,10 @@ llvm::Type *CodeGenModule::getBlockDescriptorType() {
if (BlockDescriptorType)
return BlockDescriptorType;
- llvm::Type *UnsignedLongTy =
-getTypes().ConvertType(getContext().UnsignedLongTy);
-
- // struct __block_descriptor {
- // unsign
rjodinchr wrote:
I think for `clspv`, we would need to invert the condition to skip user-facing
functions. By that I mean that `clspv` will need all the `convert_*` functions,
and not the `__clc_convert_*_rte`. Then we will need to update `clspv` to
support natively the function with the `__cl
@@ -0,0 +1,40 @@
+.. title:: clang-tidy - use-cpp-style-comments
+
+readability-use-cpp-style-comments
+==
+
+Replace C-style comments with C++-style comments.
+C-style comments (``/* ... */``) are inherited from C, while C++ introduces
+``//`` as
https://github.com/junlarsen ready_for_review
https://github.com/llvm/llvm-project/pull/124771
___
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: Mats Jun Larsen (junlarsen)
Changes
Follow-up to https://github.com/llvm/llvm-project/issues/123569
---
Full diff: https://github.com/llvm/llvm-project/pull/124771.diff
7 Files Affected:
- (modified) clang/lib/CodeGen/Address.h (+4-4)
SLTozer wrote:
With the prior patches having landed, this is now in a state where it could
land; I've rebased it onto main, meaning all of the code diff in this PR is now
relevant.
https://github.com/llvm/llvm-project/pull/118026
___
cfe-commits mail
b-sumner wrote:
> I'm referring to the fact that for a normal compile, if the user passes
> `-fsanitize=address`, should that enable it for both the host and device? My
> argument is that the user is capable of passing something like `-Xarch_host
> -fsanitize=undefined -Xarch_device -fsanitize
https://github.com/Michael137 created
https://github.com/llvm/llvm-project/pull/124752
When creating `EnumDecl`s from DWARF for Objective-C `NS_ENUM`s, the Swift
compiler tries to figure out if it should perform "swiftification" of that enum
(which involves renaming the enumerator cases, etc.)
https://github.com/frasercrmck closed
https://github.com/llvm/llvm-project/pull/124739
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ampandey-1995 updated
https://github.com/llvm/llvm-project/pull/123922
>From 5ec4303eb089038db1965b844b8b3bec136207bf Mon Sep 17 00:00:00 2001
From: Amit Pandey
Date: Wed, 22 Jan 2025 15:41:41 +0530
Subject: [PATCH 1/3] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode"
https://github.com/jhuber6 closed
https://github.com/llvm/llvm-project/pull/124018
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/124313
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-mlir
Author: Antonio Frighetto (antoniofrighetto)
Changes
Mark C standard library functions that set `errno` as such, as included in the
POSIX specification. Likewise, while deducing function attributes, determine
whether a memory access affects errno
@@ -1544,7 +1544,7 @@ SVal
RegionStoreManager::getBinding(RegionBindingsConstRef B, Loc L, QualType T)
// The location does not have a bound value. This means that it has
// the value it had upon its creation and/or entry to the analyzed
// function/method. These are e
@@ -353,7 +352,7 @@ static std::string getRegionName(const SubRegion *Region) {
return "the memory returned by 'alloca'";
if (isa(Region) &&
- isa(Region->getMemorySpace()))
+ isa(Region->getRawMemorySpace()))
NagyDonat wrote:
I think this sho
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/123003
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/SLTozer updated
https://github.com/llvm/llvm-project/pull/118026
>From beb5e1955f9b0aa106512bb10d4543232e4d4cfa Mon Sep 17 00:00:00 2001
From: Stephen Tozer
Date: Thu, 28 Nov 2024 13:53:20 +
Subject: [PATCH] Enable -fextend-lifetimes at -Og
---
clang/docs/CommandGuide/c
https://github.com/goussepi closed
https://github.com/llvm/llvm-project/pull/123595
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Fraser Cormack
Date: 2025-01-28T16:23:52Z
New Revision: a8c82d5fde1dab47a1a3fe27bb8ced8f0eb33ab9
URL:
https://github.com/llvm/llvm-project/commit/a8c82d5fde1dab47a1a3fe27bb8ced8f0eb33ab9
DIFF:
https://github.com/llvm/llvm-project/commit/a8c82d5fde1dab47a1a3fe27bb8ced8f0eb33ab9.diff
LOG
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Yanzuo Liu (zwuis)
Changes
In my PR #102581, elements of structured bindings is copy-initialized.
They should be direct-initialized because the form of the initializer of the
whole structured bindings is direct-list-initialization.
[[dcl
https://github.com/zwuis created
https://github.com/llvm/llvm-project/pull/124793
In my PR #102581, elements of structured bindings is copy-initialized. They
should be direct-initialized because the form of the initializer of the whole
structured bindings is direct-list-initialization.
[[dcl.
https://github.com/qiongsiwu converted_to_draft
https://github.com/llvm/llvm-project/pull/124786
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: gbMattN
Date: 2025-01-28T16:58:03Z
New Revision: 822954b4a97753b0c7accc606287529518e9d425
URL:
https://github.com/llvm/llvm-project/commit/822954b4a97753b0c7accc606287529518e9d425
DIFF:
https://github.com/llvm/llvm-project/commit/822954b4a97753b0c7accc606287529518e9d425.diff
LOG: [TySa
https://github.com/TilakChad updated
https://github.com/llvm/llvm-project/pull/124609
>From e97f2215394198b75fd6ebf6ef2cf5d63e7ea444 Mon Sep 17 00:00:00 2001
From: Tilak Chad
Date: Tue, 28 Jan 2025 00:09:33 +0545
Subject: [PATCH 1/2] [Clang] Fixed UnresolvedLookupExpr propagating into the
code
zwuis wrote:
Release note is not needed if this PR is cherry-picked to `release/20.x` branch.
https://github.com/llvm/llvm-project/pull/124793
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c
Author: Matheus Izvekov
Date: 2025-01-28T15:48:34-03:00
New Revision: eb10e94180dd722cf54cfaf1ed9d32aa0bb134a0
URL:
https://github.com/llvm/llvm-project/commit/eb10e94180dd722cf54cfaf1ed9d32aa0bb134a0
DIFF:
https://github.com/llvm/llvm-project/commit/eb10e94180dd722cf54cfaf1ed9d32aa0bb134a0.dif
@@ -4861,8 +4861,9 @@ static void TryListInitialization(Sema &S,
S.Context.hasSameUnqualifiedType(SubInit[0]->getType(), DestType)
&&
"Deduced to other type?");
TryArrayCopy(S,
- InitializationKind::CreateCopy(Kind.getLocatio
@@ -4352,19 +4352,11 @@ def stack_usage_file : Separate<["-"],
"stack-usage-file">,
def fextend_variable_liveness_EQ : Joined<["-"], "fextend-variable-liveness=">,
Group, Visibility<[ClangOption, CC1Option]>,
HelpText<"Extend the liveness of user variables through optimiza
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Artem Belevich (Artem-B)
Changes
Fixes build break with CUDA-12.8 introduced in #123398
---
Full diff: https://github.com/llvm/llvm-project/pull/124818.diff
2 Files Affected:
- (modified) clang/include/clang/Basic/BuiltinsNVPTX.td (+2-1
https://github.com/mizvekov edited
https://github.com/llvm/llvm-project/pull/124386
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mizvekov closed
https://github.com/llvm/llvm-project/pull/124313
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Artem-B created
https://github.com/llvm/llvm-project/pull/124818
Fixes build break with CUDA-12.8 introduced in #123398
>From ebb322550e72a4c7c58d990340701248d6f61c95 Mon Sep 17 00:00:00 2001
From: Artem Belevich
Date: Tue, 28 Jan 2025 10:45:16 -0800
Subject: [PATCH] [CUDA]
@@ -4352,19 +4352,11 @@ def stack_usage_file : Separate<["-"],
"stack-usage-file">,
def fextend_variable_liveness_EQ : Joined<["-"], "fextend-variable-liveness=">,
Group, Visibility<[ClangOption, CC1Option]>,
HelpText<"Extend the liveness of user variables through optimiza
https://github.com/vortex73 created
https://github.com/llvm/llvm-project/pull/124819
None
>From cee34e7727b0f8b9440b0d687a2da2f0b4734c15 Mon Sep 17 00:00:00 2001
From: Narayan Sreekumar
Date: Wed, 29 Jan 2025 00:11:23 +0530
Subject: [PATCH] [Clang] Fixed invalid virtual copy constructor assert
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/124674
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/124676
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/124675
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Kazu Hirata
Date: 2025-01-28T10:56:26-08:00
New Revision: 2ef497e5b02650c59aa71676b7d891a138519685
URL:
https://github.com/llvm/llvm-project/commit/2ef497e5b02650c59aa71676b7d891a138519685
DIFF:
https://github.com/llvm/llvm-project/commit/2ef497e5b02650c59aa71676b7d891a138519685.diff
L
Author: Kazu Hirata
Date: 2025-01-28T10:57:01-08:00
New Revision: 69c9bed21b902bf83828c78d69691925f5452c35
URL:
https://github.com/llvm/llvm-project/commit/69c9bed21b902bf83828c78d69691925f5452c35
DIFF:
https://github.com/llvm/llvm-project/commit/69c9bed21b902bf83828c78d69691925f5452c35.diff
L
Author: Matheus Izvekov
Date: 2025-01-28T15:51:17-03:00
New Revision: e29c085812e259910a3d8b6c2d2f471d1c3eede4
URL:
https://github.com/llvm/llvm-project/commit/e29c085812e259910a3d8b6c2d2f471d1c3eede4
DIFF:
https://github.com/llvm/llvm-project/commit/e29c085812e259910a3d8b6c2d2f471d1c3eede4.dif
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib`
running on `linaro-flang-aarch64-dylib` while building `clang,llvm` at step 5
"build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/50/builds/9522
Here is the rel
llvmbot wrote:
@llvm/pr-subscribers-clang-static-analyzer-1
Author: None (Sirraide)
Changes
This relands #122991.
I candidly still have no idea what went wrong last time; a bunch of bots
started complaining with a relatively obscure error (see below). I’ve updated
the branch and tried b
@@ -752,10 +780,13 @@ RValue ARMABIInfo::EmitVAArg(CodeGenFunction &CGF,
Address VAListAddr,
CharUnits SlotSize = CharUnits::fromQuantity(4);
// Empty records are ignored for parameter passing purposes.
- if (isEmptyRecord(getContext(), Ty, true))
+ uint64_t Size = getC
https://github.com/mizvekov updated
https://github.com/llvm/llvm-project/pull/124386
>From 8cf1056761d23fe3191d1ac3421da350b7404eb1 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov
Date: Fri, 24 Jan 2025 19:25:38 -0300
Subject: [PATCH] [clang] fix template argument conversion
Converted template
@@ -366,9 +387,15 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty,
bool isVariadic,
return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory);
}
- // Ignore empty records.
- if (isEmptyRecord(getContext(), Ty, true))
-return ABIArgInfo::ge
@@ -588,7 +615,8 @@ ABIArgInfo ARMABIInfo::classifyReturnType(QualType RetTy,
bool isVariadic,
// Otherwise this is an AAPCS variant.
- if (isEmptyRecord(getContext(), RetTy, true))
+ if (isEmptyRecord(getContext(), RetTy, true) ||
+ getContext().getTypeSize(RetTy)
cor3ntin wrote:
Is that a full P2280 implementation (I'm not familiar enough with the new
constexpr engine to figure that out but going by the tests it seems to be)
https://github.com/llvm/llvm-project/pull/124396
___
cfe-commits mailing list
cfe-comm
llvmbot wrote:
@llvm/pr-subscribers-clang-driver
Author: Jacob Lambert (lamb-j)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/124809.diff
1 Files Affected:
- (modified) clang/lib/Driver/Driver.cpp (+6-7)
``diff
diff --git a/clang/lib/Driver/Driver.cpp b/c
@@ -44,7 +44,7 @@ class CIRGenerator : public clang::ASTConsumer {
const clang::CodeGenOptions &codeGenOpts;
protected:
- std::unique_ptr mlirContext;
+ std::shared_ptr mlirContext;
erichkeane wrote:
Hmm... I don't think the shared pointer is the way here
https://github.com/lamb-j created
https://github.com/llvm/llvm-project/pull/124809
None
>From 4ed0192fca412dcb801ea75ad0d086153fa5b531 Mon Sep 17 00:00:00 2001
From: Jacob Lambert
Date: Tue, 28 Jan 2025 09:43:14 -0800
Subject: [PATCH] [DNC] Break formatting to test clang-format
---
clang/lib
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clangd-ubuntu-tsan`
running on `clangd-ubuntu-clang` while building `clang,llvm` at step 5
"build-clangd-clangd-index-server-clangd-indexer".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/134/builds/
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx`
running on `linaro-flang-aarch64-libcxx` while building `clang,llvm` at step 5
"build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/89/builds/15409
Here is the
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`llvm-clang-x86_64-win-fast` running on `as-builder-3` while building
`clang,llvm` at step 6 "build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/2/builds/15908
Here is the relevant p
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building
`clang,llvm` at step 5 "compile-openmp".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/30/builds/14785
Here is the relevant p
@@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions
&LangOpts) const {
return std::pair(
LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax);
- if (hasFeature("sve"))
+ if (hasFeature("sve") || hasFeature("sme"))
Author: Stephen Tozer
Date: 2025-01-28T18:25:32Z
New Revision: 822f74a91106b7ca10e85508eb642e62ef945afa
URL:
https://github.com/llvm/llvm-project/commit/822f74a91106b7ca10e85508eb642e62ef945afa
DIFF:
https://github.com/llvm/llvm-project/commit/822f74a91106b7ca10e85508eb642e62ef945afa.diff
LOG:
https://github.com/SLTozer closed
https://github.com/llvm/llvm-project/pull/124767
___
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 0b80491cd5e7dcb6d5432727d0a2c746a9a9438e
4ed0192fca412dcb801ea75ad0d086153fa5b531 --e
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22`
while building `clang,llvm` at step 4 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/203/builds/1137
Here is th
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building
`clang,llvm` at step 5 "build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/181/builds/12596
Here is the re
HazardyKnusperkeks wrote:
> (Why drop the formatting test? Seems good to have an integration test for
> this, no?)
Because the bug was a misannotation. The formatting, based on the annotations,
should already be covered. Of course one can always add more tests, and I'm not
demanding to remove
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while
building `clang,llvm` at step 5 "build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/144/builds/16829
Here is t
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running
on `hip-vega20-0` while building `clang,llvm` at step 3 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/123/builds/12607
Here is the relevant piece of the build l
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang`
running on `ppc64le-flang-rhel-test` while building `clang,llvm` at step 5
"build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/157/builds/18501
Here is the
gulfemsavrun wrote:
This recently added tests failed on Windows like
`extend-variable-liveness-except.cpp`, and
https://github.com/llvm/llvm-project/commit/8ad9e1ecb7e565c2f99b4ef67517d1f37d1c80d0
did not fix this issue. Could you please revert while investigating?
```
FAIL: Clang :: CodeGen/e
@@ -4861,8 +4861,9 @@ static void TryListInitialization(Sema &S,
S.Context.hasSameUnqualifiedType(SubInit[0]->getType(), DestType)
&&
"Deduced to other type?");
TryArrayCopy(S,
- InitializationKind::CreateCopy(Kind.getLocatio
@@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions
&LangOpts) const {
return std::pair(
LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax);
- if (hasFeature("sve"))
+ if (hasFeature("sve") || hasFeature("sme"))
@@ -366,9 +387,15 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty,
bool isVariadic,
return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory);
}
- // Ignore empty records.
- if (isEmptyRecord(getContext(), Ty, true))
-return ABIArgInfo::ge
lizhengxing wrote:
It's a name mangling issue on Windows (or maybe other OS).
For example, the check `// CHECK-LABEL:
define{{.*}}**_ZN1C4testEi**(ptr{{[^,]*}} %this, i32{{.*}} %p)` in
fake-use-this.cpp expects the string contains `_ZN1C4testEi`.
However, the compiler on Windows outputs `d
Author: Kazu Hirata
Date: 2025-01-28T10:56:09-08:00
New Revision: 986581f6bcef8736c942a9fec9cf12bfbc57c1f6
URL:
https://github.com/llvm/llvm-project/commit/986581f6bcef8736c942a9fec9cf12bfbc57c1f6
DIFF:
https://github.com/llvm/llvm-project/commit/986581f6bcef8736c942a9fec9cf12bfbc57c1f6.diff
L
https://github.com/4m4n-x-B4w4ne edited
https://github.com/llvm/llvm-project/pull/120087
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Sirraide created
https://github.com/llvm/llvm-project/pull/124821
This relands #122991.
I candidly still have no idea what went wrong last time; a bunch of bots
started complaining with a relatively obscure error (see below). I’ve updated
the branch and tried bulding Clang
https://github.com/efriedma-quic approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/124760
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -44,7 +44,7 @@ class CIRGenerator : public clang::ASTConsumer {
const clang::CodeGenOptions &codeGenOpts;
protected:
- std::unique_ptr mlirContext;
+ std::shared_ptr mlirContext;
andykaylor wrote:
Sorry, I thought shared pointer was what you were sugge
@@ -55,6 +56,13 @@ class EmitCIRAction : public CIRGenAction {
EmitCIRAction(mlir::MLIRContext *MLIRCtx = nullptr);
};
+class EmitLLVMAction : public CIRGenAction {
+ virtual void anchor();
+
+public:
+ EmitLLVMAction(mlir::MLIRContext *MLIRCtx = nullptr);
@@ -66,6 +81,17 @@ class CIRGenConsumer : public clang::ASTConsumer {
MlirModule->print(*OutputStream, Flags);
}
break;
+case CIRGenAction::OutputType::EmitLLVM: {
+ llvm::LLVMContext LLVMCtx;
+ auto LLVMModule = lowerFromCIRToLLVMIR(CI.getFron
@@ -0,0 +1,41 @@
+//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR
-===//
+//
+// 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
@@ -7,42 +7,56 @@
//===--===//
#include "clang/CIR/FrontendAction/CIRGenAction.h"
-#include "clang/CIR/CIRGenerator.h"
-#include "clang/Frontend/CompilerInstance.h"
-
#include "mlir/IR/MLIRContext.h"
#inclu
@@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer {
void Initialize(clang::ASTContext &astContext) override;
bool HandleTopLevelDecl(clang::DeclGroupRef group) override;
mlir::ModuleOp getModule() const;
+ std::shared_ptr getContext() {
Aa
SLTozer wrote:
Apologies, I didn't expect this PR to trigger a failure and didn't catch the
triggered failures; thank you for catching this so quickly!
https://github.com/llvm/llvm-project/pull/124767
___
cfe-commits mailing list
cfe-commits@lists.llv
https://github.com/AlexVlx updated
https://github.com/llvm/llvm-project/pull/124803
>From ed7ee56acc5434233191cfb1c556165f193c4005 Mon Sep 17 00:00:00 2001
From: Alex Voicu
Date: Tue, 28 Jan 2025 17:45:07 +
Subject: [PATCH 1/2] Add missing `hipstdpar` documentation; remove reference
to tem
efriedma-quic wrote:
Please add some tests for lambdas with streaming attributes, for example:
```
void f() { auto x = []__arm_locally_streaming {}; x(); }
```
https://github.com/llvm/llvm-project/pull/124750
___
cfe-commits mailing list
cfe-commits@l
@@ -7,42 +7,56 @@
//===--===//
#include "clang/CIR/FrontendAction/CIRGenAction.h"
-#include "clang/CIR/CIRGenerator.h"
-#include "clang/Frontend/CompilerInstance.h"
-
#include "mlir/IR/MLIRContext.h"
#inclu
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while
building `clang,llvm` at step 5 "build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/163/builds/12504
Here is
1 - 100 of 504 matches
Mail list logo