https://github.com/Ameya674 created
https://github.com/llvm/llvm-project/pull/144828
The compiler tends to crash when encountering a forward-declared incomplete
type in Sema::LookupSpecialMember.
Fixed this by adding a check to handle the incomplete types.
The patch compiles and clang trigger
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
https://github.com/alexander-shaposhnikov approved this pull request.
LG, thanks!
https://github.com/llvm/llvm-project/pull/142149
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1034,9 +1034,16 @@ class TargetInfo : public TransferrableTargetInfo,
/// set of primary and secondary targets.
virtual llvm::SmallVector getTargetBuiltins() const = 0;
+ enum class ArmStreamingKind {
+NotStreaming,
+StreamingCompatible,
+Streaming,
+ };
scout-zeng wrote:
> I think something like your patch solves the original testcase from #139033.
> (Actually, it crashes in codegen, but that's an easy fix.) And I thought you
> wanted specifically that...?
>
> Your new testcase will never work; the NEON intrinsic is specifically
> specified
https://github.com/Ameya674 edited
https://github.com/llvm/llvm-project/pull/144828
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -417,3 +417,15 @@ void HIPAMDToolChain::checkTargetID(
getDriver().Diag(clang::diag::err_drv_bad_target_id)
<< *PTID.OptionalTargetID;
}
+
+SPIRVAMDToolChain::SPIRVAMDToolChain(const Driver &D,
+ const llvm::Triple &Triple,
+
https://github.com/s-perron created
https://github.com/llvm/llvm-project/pull/144774
- **Add sign extend image operand.**
- **[HLSL][SPRIV] Handle sign RWBuffer correctly**
>From 488fb5961105305e50e3d787f286354754a73fe9 Mon Sep 17 00:00:00 2001
From: Steven Perron
Date: Wed, 18 Jun 2025 09:19
llvmbot wrote:
@llvm/pr-subscribers-llvm-ir
Author: Steven Perron (s-perron)
Changes
- **Add sign extend image operand.**
- **[HLSL][SPRIV] Handle sign RWBuffer correctly**
---
Patch is 39.54 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/144
llvmbot wrote:
@llvm/pr-subscribers-backend-spir-v
Author: Steven Perron (s-perron)
Changes
- **Add sign extend image operand.**
- **[HLSL][SPRIV] Handle sign RWBuffer correctly**
---
Patch is 39.54 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/p
llvmbot wrote:
@llvm/pr-subscribers-hlsl
Author: Steven Perron (s-perron)
Changes
- **Add sign extend image operand.**
- **[HLSL][SPRIV] Handle sign RWBuffer correctly**
---
Patch is 39.54 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/144774
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Steven Perron (s-perron)
Changes
- **Add sign extend image operand.**
- **[HLSL][SPRIV] Handle sign RWBuffer correctly**
---
Patch is 39.54 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/14477
https://github.com/cseriildi edited
https://github.com/llvm/llvm-project/pull/144748
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/cseriildi edited
https://github.com/llvm/llvm-project/pull/144751
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -103,11 +103,11 @@
TargetCodeGenInfo::getDependentLibraryOption(llvm::StringRef Lib,
Opt += Lib;
}
-unsigned TargetCodeGenInfo::getOpenCLKernelCallingConv() const {
- // OpenCL kernels are called via an explicit runtime API with arguments
- // set with clSetKernelArg()
https://github.com/sarnex edited
https://github.com/llvm/llvm-project/pull/144728
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/sarnex edited
https://github.com/llvm/llvm-project/pull/144728
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/cseriildi edited
https://github.com/llvm/llvm-project/pull/144748
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Artem Belevich
Date: 2025-06-18T10:08:27-07:00
New Revision: 298f1c276f4f9c18b25a79ffe6e619e89c5fbf7e
URL:
https://github.com/llvm/llvm-project/commit/298f1c276f4f9c18b25a79ffe6e619e89c5fbf7e
DIFF:
https://github.com/llvm/llvm-project/commit/298f1c276f4f9c18b25a79ffe6e619e89c5fbf7e.diff
https://github.com/Artem-B closed
https://github.com/llvm/llvm-project/pull/144755
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/spavloff updated
https://github.com/llvm/llvm-project/pull/144408
>From baedd4867ba8f62b54ea9942d84fadc9a716dc02 Mon Sep 17 00:00:00 2001
From: Serge Pavlov
Date: Mon, 16 Jun 2025 18:19:44 +0700
Subject: [PATCH 1/2] [Analysis] Avoid some warnings about exit from noreturn
fun
HighW4y2H3ll wrote:
@david-arm A, thx for testing! Let me try get some benchmark running on my
end too. One thing I noticed is that `simplifyLoop` also calls to this
`foldBranchToCommonDest` function, which is used in many loop passes (e.g.
InductiveRangeCheckElimination, LoopBoundSplit, L
https://github.com/malavikasamak updated
https://github.com/llvm/llvm-project/pull/143205
>From 52e4413ea1e701dfe0b24cf957a26bb72732f066 Mon Sep 17 00:00:00 2001
From: MalavikaSamak
Date: Wed, 21 May 2025 16:06:44 -0700
Subject: [PATCH 1/7] Place holder message for sizeof operator in loops.
--
https://github.com/andykaylor edited
https://github.com/llvm/llvm-project/pull/144719
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/andykaylor approved this pull request.
Looks good. I just have a couple of minor suggestions.
https://github.com/llvm/llvm-project/pull/144719
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mai
@@ -538,6 +538,104 @@ void CIRGenFunction::emitConstructorBody(FunctionArgList
&args) {
}
}
+/// Emits the body of the current destructor.
+void CIRGenFunction::emitDestructorBody(FunctionArgList &args) {
+ const CXXDestructorDecl *dtor = cast(curGD.getDecl());
+ CXXDtorT
@@ -0,0 +1,50 @@
+// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu
-Wno-unused-value -fclangir -emit-cir -mno-constructor-aliases %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR
+// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu
@@ -538,6 +538,104 @@ void CIRGenFunction::emitConstructorBody(FunctionArgList
&args) {
}
}
+/// Emits the body of the current destructor.
+void CIRGenFunction::emitDestructorBody(FunctionArgList &args) {
+ const CXXDestructorDecl *dtor = cast(curGD.getDecl());
+ CXXDtorT
https://github.com/no92 created https://github.com/llvm/llvm-project/pull/144791
This is a repost of the quickly reverted #139271. The failing buildbot tests
have been fixed and pass on my machine now.
>From 4130e9a16cfea741dd8cba3eb161936e0664cebe Mon Sep 17 00:00:00 2001
From: no92
Date: Fri
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: no92 (no92)
Changes
This is a repost of the quickly reverted #139271. The failing buildbot
tests have been fixed and pass on my machine now.
---
Patch is 43.75 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llv
https://github.com/rkirsling created
https://github.com/llvm/llvm-project/pull/144836
Part of the work for #141911.
Checking `is_assignable` boils down to checking the well-formedness of
`declval() = declval()`; this PR recycles logic from
EvaluateBinaryTypeTrait in order to produce the relev
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Ross Kirsling (rkirsling)
Changes
Part of the work for #141911.
Checking `is_assignable` boils down to checking the well-formedness
of `declval() = declval()`; this PR recycles logic from
EvaluateBinaryTypeTrait in order to p
https://github.com/rkirsling updated
https://github.com/llvm/llvm-project/pull/144836
>From 580750339643b627552a1c726909dd5d12f3c9af Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Wed, 18 Jun 2025 21:54:35 -0700
Subject: [PATCH] [Clang] Diagnose unsatisfied `std::is_assignable`.
Part of th
zwuis wrote:
Copying a comment from #144622:
> Please start a thread on https://discourse.llvm.org/ describing the problem
> you're trying to solve, and your proposed solution.
https://github.com/llvm/llvm-project/pull/144478
___
cfe-commits mailing
https://github.com/sivadeilra updated
https://github.com/llvm/llvm-project/pull/138972
>From 7382ec9923a6ab96cc6c82782dda33ec78c0bc2e Mon Sep 17 00:00:00 2001
From: Arlie Davis
Date: Thu, 3 Apr 2025 16:10:50 -0700
Subject: [PATCH] Windows hotpatching support
move hotpatch tests to X86 subdir
@@ -0,0 +1,21 @@
+// This verifies that hotpatch function attributes are correctly propagated
when compiling directly to OBJ.
+//
+// RUN: echo this_gets_hotpatched > %t.patch-functions.txt
+// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7
-fms-secure-hotpatch-functions
@@ -0,0 +1,38 @@
+; This tests directly annotating a function with
marked_for_windows_hot_patching.
+;
+; RUN: llc -mtriple=x86_64-windows < %s | FileCheck %s
sivadeilra wrote:
Done
https://github.com/llvm/llvm-project/pull/138972
__
@@ -389,6 +389,17 @@ def CoroDestroyOnlyWhenComplete :
EnumAttr<"coro_only_destroy_when_complete", In
/// pipeline to perform elide on the call or invoke instruction.
def CoroElideSafe : EnumAttr<"coro_elide_safe", IntersectPreserve, [FnAttr]>;
+/// Function is marked for Win
@@ -190,6 +192,31 @@ insertWaveSizeFeature(StringRef GPU, const Triple &T,
StringMap &Features);
} // namespace AMDGPU
+
+struct BasicSubtargetFeatureKV {
+ const char *Key; ///< K-V key string
+ unsigned Value; ///< K-V integer value
+
https://github.com/zyn0217 closed
https://github.com/llvm/llvm-project/pull/140680
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -94,10 +94,14 @@ void visualstudio::Linker::ConstructJob(Compilation &C,
const JobAction &JA,
// If the VC environment hasn't been configured (perhaps because the user
// did not run vcvarsall), try to build a consistent link environment. If
// the environment variab
https://github.com/phoebewang closed
https://github.com/llvm/llvm-project/pull/144662
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Phoebe Wang
Date: 2025-06-19T10:30:47+08:00
New Revision: 5875fafdc547889fb089c943a881a9ab6d8a23c0
URL:
https://github.com/llvm/llvm-project/commit/5875fafdc547889fb089c943a881a9ab6d8a23c0
DIFF:
https://github.com/llvm/llvm-project/commit/5875fafdc547889fb089c943a881a9ab6d8a23c0.diff
L
https://github.com/vgvassilev approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/144746
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/linehill commented:
LGTM!
Unfortunately, I don't have access rights to approve PRs nor land them. Maybe
@yxsamliu can help you with that?
https://github.com/llvm/llvm-project/pull/136412
___
cfe-commits mailing list
cfe-commits@lis
scout-zeng wrote:
fixes
[#139033](https://github.com/llvm/llvm-project/issues/139033#issuecomment-2868006401)
https://github.com/llvm/llvm-project/pull/144625
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailm
https://github.com/Steelskin updated
https://github.com/llvm/llvm-project/pull/144805
>From 65576f1cd8a43a0ffbc9b4c9d6636218b3b82097 Mon Sep 17 00:00:00 2001
From: Fabrice de Gans
Date: Wed, 18 Jun 2025 15:04:35 -0700
Subject: [PATCH] Use the Windows SDK arguments over the environment
If any o
@@ -9,7 +9,6 @@ define i32 @foobar() gc "statepoint-example" personality ptr
@__gxx_personality_
; CHECK-NEXT:.seh_endprologue
; CHECK-NEXT:callq bar
; CHECK-NEXT: .Ltmp0:
-; CHECK-NEXT:nop
mstorsjo wrote:
The Windows GNU target does use SEH for
https://github.com/phoebewang created
https://github.com/llvm/llvm-project/pull/144833
Decouple Arrowlake from Sierraforest because the later has CLDEMOTE feature.
>From 8e218d9c4431b021231942e514f175164af35a51 Mon Sep 17 00:00:00 2001
From: "Wang, Phoebe"
Date: Thu, 19 Jun 2025 12:14:54 +0800
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Phoebe Wang (phoebewang)
Changes
Decouple Arrowlake from Sierraforest because the later has CLDEMOTE feature.
---
Patch is 20.92 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/144833.diff
3 F
shiltian wrote:
No test is needed?
https://github.com/llvm/llvm-project/pull/144570
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/phoebewang updated
https://github.com/llvm/llvm-project/pull/144833
>From 8e218d9c4431b021231942e514f175164af35a51 Mon Sep 17 00:00:00 2001
From: "Wang, Phoebe"
Date: Thu, 19 Jun 2025 12:14:54 +0800
Subject: [PATCH 1/2] [X86] Remove CLDEMOTE from Arrowlake and later hybrid
p
@@ -417,3 +417,15 @@ void HIPAMDToolChain::checkTargetID(
getDriver().Diag(clang::diag::err_drv_bad_target_id)
<< *PTID.OptionalTargetID;
}
+
+SPIRVAMDToolChain::SPIRVAMDToolChain(const Driver &D,
+ const llvm::Triple &Triple,
+
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 c,cpp --
clang/test/Preprocessor/predefined-arch-macros.c
l
https://github.com/Steelskin updated
https://github.com/llvm/llvm-project/pull/144805
>From 5b875ae1120a5bd4860244bbbf725f0ef28fc83e Mon Sep 17 00:00:00 2001
From: Fabrice de Gans
Date: Wed, 18 Jun 2025 15:04:35 -0700
Subject: [PATCH] Use the Windows SDK arguments over the environment
If any o
jhuber6 wrote:
> > `llvm.compiler.used` global uses AS(0) which makes SPIR-V unhappy, but with
> > this global it's AS(4) which makes it happy. Either way, this should be
> > fixed.
>
> llvm.used and llvm.compiler.used should universally use addrspace(0) and
> SPIRV should be fixed to not bre
namazso wrote:
While I haven't checked how exactly this PR interacts with SEH, just here
because
https://github.com/llvm/llvm-project/issues/54922#issuecomment-2984928111 , I'd
like to point out that https://clang.llvm.org/docs/MSVCCompatibility.html has
the following snippet for SEH:
> Asy
scout-zeng wrote:
Hi @efriedma-quic , I do not think this workaround can fix this issue. Because
the clang compiler still gives me an error like 'argument to xxx must be a
constant integer", which means the if condition in line 5670 is not true. I am
confused about that. Can you give me some s
https://github.com/vtjnash updated
https://github.com/llvm/llvm-project/pull/143958
>From 450eb079e97f1a20ab2547567d81c176fec06cfb Mon Sep 17 00:00:00 2001
From: Jameson Nash
Date: Thu, 12 Jun 2025 18:48:00 +
Subject: [PATCH 01/12] [instcombine] remove dead loads, such as memcpy from
undef
efriedma-quic wrote:
I think something like your patch solves the original testcase from #139033.
(Actually, it crashes in codegen, but that's an easy fix.) And I thought you
wanted specifically that...?
Your new testcase will never work; the NEON intrinsic is specifically specified
to only
namazso wrote:
Actually, disregard my previous comment. It seems that it's quite a bit more
broken than that already and depends on surrounding code. Making it broken in
different ways probably won't hurt much.
https://github.com/llvm/llvm-project/pull/144745
__
rjmccall wrote:
So, devil's advocate: do we actually care about IR data layout alignments?
Clang should be putting explicit alignments on everything in the IR. And, I
mean, I can certainly imagine that a target might end up in an impossible
situation for terrible historical reasons, because e.
301 - 362 of 362 matches
Mail list logo