HighCommander4 wrote:
> unfortunately, LLVM's command-line argument framework doesn't allow us to
> distinguish between "the option's value is `IWYU` because the flag
> `--header-insertion=iwyu` appeared in the command line" and "the option's
> value is `IWYU` because no `--header-insertion` f
jeremyd2019 wrote:
I'm fighting the tests on Windows - the hurd test I started from had `//
UNSUPPORTED: system-windows` at the top, probably because they weren't
interested in messing around with backslashes and .exe extensions. I don't
know if the cross test will work right for the path to
https://github.com/jeremyd2019 updated
https://github.com/llvm/llvm-project/pull/135691
>From 949ec2a683faf53652b21a4c90206befa498bf4e Mon Sep 17 00:00:00 2001
From: Jeremy Drake
Date: Mon, 14 Apr 2025 10:37:59 -0700
Subject: [PATCH 1/2] [Clang] [Driver] add a Cygwin ToolChain
Add a new Cygwin
@@ -477,21 +476,21 @@ When the ``-fmodules-embed-all-files`` flag are enabled,
Clang explicitly emits
code into the BMI file, the contents of the BMI file contain a sufficiently
verbose
representation to reproduce the original source file.
-:sup:`1`` Input files: The source
mstorsjo wrote:
> I'm fighting the tests on Windows - the hurd test I started from had `//
> UNSUPPORTED: system-windows` at the top, probably because they weren't
> interested in messing around with backslashes and .exe extensions. I don't
> know if the cross test will work right for the path
@@ -477,21 +476,21 @@ When the ``-fmodules-embed-all-files`` flag are enabled,
Clang explicitly emits
code into the BMI file, the contents of the BMI file contain a sufficiently
verbose
representation to reproduce the original source file.
-:sup:`1`` Input files: The source
Author: Owen Pan
Date: 2025-04-22T23:49:26-07:00
New Revision: da8f2d52423bb82b5d4e75cff3018704effe044f
URL:
https://github.com/llvm/llvm-project/commit/da8f2d52423bb82b5d4e75cff3018704effe044f
DIFF:
https://github.com/llvm/llvm-project/commit/da8f2d52423bb82b5d4e75cff3018704effe044f.diff
LOG:
https://github.com/necto updated
https://github.com/llvm/llvm-project/pull/136719
>From 095e00202104240797e21c941be7f6256850c534 Mon Sep 17 00:00:00 2001
From: Arseniy Zaostrovnykh
Date: Tue, 22 Apr 2025 15:24:20 +0200
Subject: [PATCH 1/4] [docs] Fix the use of "dependent" and "dependant" in th
necto wrote:
I have no merge access yet, so I'll appreciate if someone click on the "merge"
button
https://github.com/llvm/llvm-project/pull/136719
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo
Author: Arseniy Zaostrovnykh
Date: 2025-04-23T15:34:54+08:00
New Revision: ae47f2533709058d3442a34af783d8cd721b4177
URL:
https://github.com/llvm/llvm-project/commit/ae47f2533709058d3442a34af783d8cd721b4177
DIFF:
https://github.com/llvm/llvm-project/commit/ae47f2533709058d3442a34af783d8cd721b417
@@ -2794,6 +2794,11 @@ void tools::addOpenMPDeviceRTL(const Driver &D,
for (const auto &LibPath : HostTC.getFilePaths())
LibraryPaths.emplace_back(LibPath);
+ // Check the target specific library path for the triple as well.
+ SmallString<128> P(D.Dir);
+ llvm::sys::p
HampusAdolfsson wrote:
@HighCommander4 Thanks, looks good to me! I don't have commit access, so feel
free to merge this if you're happy with it.
https://github.com/llvm/llvm-project/pull/134657
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
h
@@ -136,6 +136,17 @@ int main(void) {
// Cleanup happens automatically -> no warning.
}
+ /// Function pointers
+ {
+int __attribute__((requires_capability(&mu1))) (*function_ptr)(int) =
Foo_fun1;
+
+function_ptr(5); // expected-warning {{calling function 'fun
https://github.com/HampusAdolfsson updated
https://github.com/llvm/llvm-project/pull/134657
>From 162b0535fc2ae745441404231e6b3bf3882b974e Mon Sep 17 00:00:00 2001
From: Hampus Adolfsson
Date: Mon, 7 Apr 2025 14:51:03 +0200
Subject: [PATCH 1/3] [clangd] Strip invalid fromRanges for outgoing cal
llvmbot wrote:
@llvm/pr-subscribers-backend-risc-v
Author: Jim Lin (tclin914)
Changes
Andes A45/AX45 are 32/64bit in-order dual-issue 8-stage pipeline linux-capable
CPU implementing the RV[32|64]IMAFDC_Zba_Zbb_Zbs ISA extensions. They are
developed by Andes Technology https://www.andeste
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/122423
>From 56bacf47c53aca276ae4fa6aa2972b7eda152ddd Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Fri, 10 Jan 2025 09:46:24 +0800
Subject: [PATCH 1/9] Reapply "[Clang] Implement CWG2369 "Ordering between
constra
llvmbot wrote:
@llvm/pr-subscribers-backend-amdgpu
Author: None (blazie2004)
Changes
---
Patch is 75.64 MiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/136829.diff
4551 Files Affected:
- (added) check_remote_class_check.py (+86)
- (added)
SLTozer wrote:
> Any ideas why we might be hitting this issue? This happens during a built
> with `-Og`, and issue does not remove if I remove `-Og` flag.
At a glance that looks like it could be related, we generate (no-op) cleanup as
part of -fextend-variable-liveness. I'll look into this, bu
https://github.com/mgoudar updated
https://github.com/llvm/llvm-project/pull/134985
>From 36a78bb9fe38781fa8ea126aeae5b7ed48140651 Mon Sep 17 00:00:00 2001
From: Mallikarjuna Gouda
Date: Tue, 1 Apr 2025 12:35:27 +0530
Subject: [PATCH 1/6] [MIPS] Add FeatureMSA to i6400 and i6500 cores
i6400 an
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (blazie2004)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/136834.diff
1 Files Affected:
- (modified) clang/lib/AST/ASTConsumer.cpp (+52-8)
``diff
diff --git a/clang/lib/AST/ASTConsumer.cpp b/clang/li
grypp wrote:
Can we please not merge anything without review?
https://github.com/llvm/llvm-project/pull/136768
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/frederick-vs-ja requested changes to this pull request.
IIUC the changes should go to some test file, not
`clang/lib/AST/ASTConsumer.cpp`.
https://github.com/llvm/llvm-project/pull/136834
___
cfe-commits mailing list
cfe-commits@lis
Author: Alex Rønne Petersen
Date: 2025-04-23T11:40:36+02:00
New Revision: 0de2f64e652a1b8c1e051635c98fb2b69c6b2c62
URL:
https://github.com/llvm/llvm-project/commit/0de2f64e652a1b8c1e051635c98fb2b69c6b2c62
DIFF:
https://github.com/llvm/llvm-project/commit/0de2f64e652a1b8c1e051635c98fb2b69c6b2c62
https://github.com/blazie2004 closed
https://github.com/llvm/llvm-project/pull/136834
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/alexrp closed
https://github.com/llvm/llvm-project/pull/136744
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -8374,20 +8376,212 @@ static void HandlePtrAuthQualifier(ASTContext &Ctx,
QualType &T,
IsInvalid |= !S.checkPointerAuthDiscriminatorArg(
ExtraDiscriminatorArg, Sema::PADAK_ExtraDiscPtrAuth, ExtraDiscriminator);
- if (IsInvalid) {
-Attr.setInvalid();
-retur
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
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: cor3ntin (cor3ntin)
Changes
We made chained comparisons an error.
Fold-expressions over a comparison operator produce chained comparisons, so we
should be consistent there too.
We only emit the warning when instantiating the fold expressi
https://github.com/ojhunt created
https://github.com/llvm/llvm-project/pull/136828
This PR adds support for an 'options' parameter for the __ptrauth qualifier.
The initial version only exposes the authehntication modes:
* "strip"
* "sign-and-strip"
* "sign-and-auth"
There are other options
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,c,h --
clang/test/CodeGen/ptrauth-stripping.c
clang/tes
ojhunt wrote:
The tests in this PR are dependent on #136828, and the included tests have
non-sequential numbers as the tests include other options that are not
supported by this PR, to try and limit the complexity of this PR to just the
parsing and existing functionality.
https://github.com/l
@@ -8374,20 +8376,191 @@ static void HandlePtrAuthQualifier(ASTContext &Ctx,
QualType &T,
IsInvalid |= !S.checkPointerAuthDiscriminatorArg(
ExtraDiscriminatorArg, Sema::PADAK_ExtraDiscPtrAuth, ExtraDiscriminator);
- if (IsInvalid) {
-Attr.setInvalid();
-retur
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/blazie2004 created
https://github.com/llvm/llvm-project/pull/136829
None
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-commits
@@ -8374,20 +8376,191 @@ static void HandlePtrAuthQualifier(ASTContext &Ctx,
QualType &T,
IsInvalid |= !S.checkPointerAuthDiscriminatorArg(
ExtraDiscriminatorArg, Sema::PADAK_ExtraDiscPtrAuth, ExtraDiscriminator);
- if (IsInvalid) {
-Attr.setInvalid();
-retur
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (blazie2004)
Changes
---
Patch is 75.64 MiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/136829.diff
4551 Files Affected:
- (added) check_remote_class_check.py (+86)
- (added) check_rem
@@ -0,0 +1,116 @@
+// RUN: %check_clang_tidy -std=c++17 %s
bugprone-invalid-enum-default-initialization %t
+
PiotrZSL wrote:
Add test with enum forward declaration only, and with enum without enumerators.
For those there should be no requirement in initializatio
@@ -8374,20 +8376,191 @@ static void HandlePtrAuthQualifier(ASTContext &Ctx,
QualType &T,
IsInvalid |= !S.checkPointerAuthDiscriminatorArg(
ExtraDiscriminatorArg, Sema::PADAK_ExtraDiscPtrAuth, ExtraDiscriminator);
- if (IsInvalid) {
-Attr.setInvalid();
-retur
https://github.com/mgoudar updated
https://github.com/llvm/llvm-project/pull/134985
>From 36a78bb9fe38781fa8ea126aeae5b7ed48140651 Mon Sep 17 00:00:00 2001
From: Mallikarjuna Gouda
Date: Tue, 1 Apr 2025 12:35:27 +0530
Subject: [PATCH 1/5] [MIPS] Add FeatureMSA to i6400 and i6500 cores
i6400 an
ojhunt wrote:
This PR is a draft as it will need to be updated to merged correctly, and
verify test output (conflicts, unintentional mismatches coming from splitting
out the PR) after #136828
https://github.com/llvm/llvm-project/pull/136828
___
cfe-c
https://github.com/ojhunt updated
https://github.com/llvm/llvm-project/pull/136828
>From b3de41c15edc527154e461e5b0df61642599b45e Mon Sep 17 00:00:00 2001
From: Oliver Hunt
Date: Wed, 23 Apr 2025 01:43:00 -0700
Subject: [PATCH 1/2] [clang][ptrauth] add support for options parameter to
__ptraut
https://github.com/blazie2004 closed
https://github.com/llvm/llvm-project/pull/136829
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tclin914 created
https://github.com/llvm/llvm-project/pull/136832
Andes A45/AX45 are 32/64bit in-order dual-issue 8-stage pipeline linux-capable
CPU implementing the RV[32|64]IMAFDC_Zba_Zbb_Zbs ISA extensions. They are
developed by Andes Technology https://www.andestech.com,
@@ -8350,14 +8350,16 @@ static void HandleNeonVectorTypeAttr(QualType &CurType,
const ParsedAttr &Attr,
/// Handle the __ptrauth qualifier.
static void HandlePtrAuthQualifier(ASTContext &Ctx, QualType &T,
const ParsedAttr &Attr, Sema &S) {
-
@@ -8374,20 +8376,212 @@ static void HandlePtrAuthQualifier(ASTContext &Ctx,
QualType &T,
IsInvalid |= !S.checkPointerAuthDiscriminatorArg(
ExtraDiscriminatorArg, Sema::PADAK_ExtraDiscPtrAuth, ExtraDiscriminator);
- if (IsInvalid) {
-Attr.setInvalid();
-retur
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Henrich Lauko (xlauko)
Changes
Introduce common base class for attributes with single type parameter.
This mirrors incubator changes introduced in
https://github.com/llvm/clangir/pull/1583
---
Full diff: https://github.com/llvm/llvm-proje
@@ -0,0 +1,35 @@
+// libstdc++ uses the non-constexpr function std::__glibcxx_assert_fail()
+// to trigger compilation errors when the __glibcxx_assert(cond) macro
+// is used in a constexpr context.
+// Compilation fails when using code from the libstdc++ (such as std::array) on
llvmbot wrote:
@llvm/pr-subscribers-clangir
Author: Henrich Lauko (xlauko)
Changes
Introduce common base class for attributes with single type parameter.
This mirrors incubator changes introduced in
https://github.com/llvm/clangir/pull/1583
---
Full diff: https://github.com/llvm/llvm-pro
https://github.com/balazs-benics-sonarsource edited
https://github.com/llvm/llvm-project/pull/136720
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,198 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-verify=expected,default %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-analyzer-config legacy-inlining-prevention=false -verify=expected,disabled %s
+
+int get
balazs-benics-sonarsource wrote:
One other note. We should backport this fix to clang-20 once it lands to main.
https://github.com/llvm/llvm-project/pull/136720
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mail
@@ -0,0 +1,198 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-verify=expected,default %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-analyzer-config legacy-inlining-prevention=false -verify=expected,disabled %s
+
+int get
https://github.com/AaronBallman approved this pull request.
LGTM with a minor rewording and reformatting of the diagnostic message.
https://github.com/llvm/llvm-project/pull/136836
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.l
@@ -7138,6 +7138,13 @@ def warn_consecutive_comparison : Warning<
"chained comparison 'X %0 Y %1 Z' does not behave the same as a mathematical
expression">,
InGroup, DefaultError;
+def warn_comparison_in_fold_expression
+: Warning<
+ "comparison in a fold exp
https://github.com/sivan-shani converted_to_draft
https://github.com/llvm/llvm-project/pull/136850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
zmodem wrote:
I too had trouble understanding this change based on the description. Could you
give a concrete example of how mingw and msvc disagree on where to put the
attribute, and explain how this pr changes things?
Taking a step back, how will this simplify libc++'s visibility annotations
@@ -8374,20 +8376,212 @@ static void HandlePtrAuthQualifier(ASTContext &Ctx,
QualType &T,
IsInvalid |= !S.checkPointerAuthDiscriminatorArg(
ExtraDiscriminatorArg, Sema::PADAK_ExtraDiscPtrAuth, ExtraDiscriminator);
- if (IsInvalid) {
-Attr.setInvalid();
-retur
https://github.com/zwuis commented:
LGTM
https://github.com/llvm/llvm-project/pull/136717
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jmmartinez updated
https://github.com/llvm/llvm-project/pull/136133
From b433add1b7c2027b89cdd9be11680c0a9a59e807 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?=
Date: Thu, 17 Apr 2025 13:41:55 +0200
Subject: [PATCH] [CUDA][HIP] Add a __devi
@@ -107,15 +107,28 @@ CXString createCXString(CXStringBuf *buf) {
return Str;
}
-CXStringSet *createSet(const std::vector &Strings) {
+template
+static CXStringSet *createSetImpl(ArrayRef Strings) {
jansvoboda11 wrote:
Nit: If you switched the order of tem
https://github.com/lukel97 approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/136842
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -717,6 +716,15 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool
EnableExperimentalExtension,
} while (!Ext.empty());
}
+ // We add Zicsr/Zifenci as final to allow duplicated "zicsr"/"zifencei".
lukel97 wrote:
Nit, give an example that it's dup
https://github.com/wenju-he edited
https://github.com/llvm/llvm-project/pull/135733
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -122,35 +130,41 @@ else()
get_clang_resource_dir(LIBOMP_HEADERS_INSTALL_PATH SUBDIR include)
endif()
-# Build host runtime library, after LIBOMPTARGET variables are set since they
are needed
-# to enable time profiling support in the OpenMP runtime.
-add_subdirectory(run
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/136771
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,28 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wimplicit-void-ptr-cast %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wc++-compat %s
+// RUN: %clang_cc1 -fsyntax-only -verify=good %s
+// RUN: %clang_cc1 -fsyntax-only -verify=good -Wc++-compat
-Wno-implicit-void-ptr-ca
https://github.com/virginia-cangelosi closed
https://github.com/llvm/llvm-project/pull/130127
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -9197,7 +9197,10 @@ bool LValueExprEvaluator::VisitExtVectorElementExpr(
if (Success) {
Result.setFrom(Info.Ctx, Val);
-const auto *VT = E->getBase()->getType()->castAs();
+QualType BaseType = E->getBase()->getType();
+if (E->isArrow())
er
@@ -2794,6 +2794,11 @@ void tools::addOpenMPDeviceRTL(const Driver &D,
for (const auto &LibPath : HostTC.getFilePaths())
LibraryPaths.emplace_back(LibPath);
+ // Check the target specific library path for the triple as well.
+ SmallString<128> P(D.Dir);
+ llvm::sys::p
Author: Joseph Huber
Date: 2025-04-23T08:20:15-05:00
New Revision: 6d0d50f0ac0cb108a06558cb178a68fb78cfa06f
URL:
https://github.com/llvm/llvm-project/commit/6d0d50f0ac0cb108a06558cb178a68fb78cfa06f
DIFF:
https://github.com/llvm/llvm-project/commit/6d0d50f0ac0cb108a06558cb178a68fb78cfa06f.diff
@@ -167,6 +167,7 @@ Changes to the RISC-V Backend
* Adds assembler support for ``.option exact``, which disables automatic
compression,
and branch and linker relaxation. This can be disabled with ``.option
noexact``,
which is also the default.
+* Support was added for the
@@ -0,0 +1,198 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-verify=expected,default %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-analyzer-config legacy-inlining-prevention=false -verify=expected,disabled %s
+
+int get
@@ -0,0 +1,69 @@
+; Test the MSA intrinsics that are encoded with the SPECIAL instruction format.
mgoudar wrote:
I have enabled MSA feature from driver also when -mcpu i6500/i6400 is
specified. Also I have added codegen test to verify MSA instructions when
i650
jhuber6 wrote:
> I think using the LLVM_ENABLE_RUNTIMES-machanism is a great idea. Regarding
> the move back to `openmp/device`, I don't really have an opinion. However,
> there are some arguments to make:
>
> 1. The same arguments apply to `libomptarget` as well
>
> 2. Definitions su
@@ -0,0 +1,9 @@
+// Check target CPUs are correctly passed.
+
+// RUN: %clang --target=mips64 -### -c %s 2>&1 -mcpu=i6400 -mmsa | FileCheck
-check-prefix=MCPU-I6400 %s
+// MCPU-I6400: "-target-cpu" "i6400"
mgoudar wrote:
I modified test to verify abicalls featur
https://github.com/jhuber6 closed
https://github.com/llvm/llvm-project/pull/136754
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
nikic wrote:
FYI this introduces some overhead:
https://llvm-compile-time-tracker.com/compare.php?from=2a9f77f6bd48d757b2d45aadcb6cf76ef4b4ef32&to=71ce9e26aec00e4af27a69ccfab8ca1773ed7018&stat=instructions:u
About 0.3% on clang files.
https://github.com/llvm/llvm-project/pull/136323
__
https://github.com/qiongsiwu updated
https://github.com/llvm/llvm-project/pull/136773
>From 7f39ebcc34fe3f40c2554ff7fa93baca5b4634a0 Mon Sep 17 00:00:00 2001
From: Qiongsi Wu
Date: Tue, 22 Apr 2025 14:17:15 -0700
Subject: [PATCH 1/5] Adding CXStringSet *createSet that takes a vector of
StringR
@@ -107,15 +107,28 @@ CXString createCXString(CXStringBuf *buf) {
return Str;
}
-CXStringSet *createSet(const std::vector &Strings) {
+template
+static CXStringSet *createSetImpl(ArrayRef Strings) {
CXStringSet *Set = new CXStringSet;
Set->Count = Strings.size();
S
@@ -107,15 +107,28 @@ CXString createCXString(CXStringBuf *buf) {
return Str;
}
-CXStringSet *createSet(const std::vector &Strings) {
+template
+static CXStringSet *createSetImpl(ArrayRef Strings) {
qiongsiwu wrote:
Ah yes this is good to keep in mind. I r
firewave wrote:
There's also a check in UBSAN which detects assignment of invalid values during
run-time. So there's logic is various other places regarding this.
https://github.com/llvm/llvm-project/pull/136823
___
cfe-commits mailing list
cfe-commit
https://github.com/lukel97 edited
https://github.com/llvm/llvm-project/pull/136842
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -429,7 +411,9 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
set( LIBCLC_ARCH_OBJFILE_DIR "${LIBCLC_OBJFILE_DIR}/${arch_suffix}" )
file( MAKE_DIRECTORY ${LIBCLC_ARCH_OBJFILE_DIR} )
-list( APPEND build_flags -cl-std=${opencl_lang_std} )
+# Build for OpenCL 3.0 an
https://github.com/wenju-he edited
https://github.com/llvm/llvm-project/pull/135733
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/sivan-shani created
https://github.com/llvm/llvm-project/pull/136850
The original __gcsss intrinsic was implemented based on:
https://github.com/ARM-software/acle/pull/260
with the signature: const void *__gcsss(const void *)
Per the updated specification in:
https://github.
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: SivanShani-Arm (sivan-shani)
Changes
The original __gcsss intrinsic was implemented based on:
https://github.com/ARM-software/acle/pull/260
with the signature: const void *__gcsss(const void *)
Per the updated specification in:
https://gi
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 h --
clang/lib/Headers/arm_acle.h
``
View the d
https://github.com/balazs-benics-sonarsource requested changes to this pull
request.
Thank you for investigating this. At Sonar, we have not yet started the upgrade
to clang-20. I suppose, you already did then, thus found this regression on
trunk.
Maybe we should also reflect of the quality c
@@ -0,0 +1,198 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-verify=expected,default %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-analyzer-config legacy-inlining-prevention=false -verify=expected,disabled %s
+
+int get
@@ -0,0 +1,198 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-verify=expected,default %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection
-analyzer-config legacy-inlining-prevention=false -verify=expected,disabled %s
+
+int get
@@ -2523,6 +2523,20 @@ bool ExprEngine::replayWithoutInlining(ExplodedNode *N,
return true;
}
+/// Return the innermost location context which is inlined at `Node`, unless
+/// it's the top-level (entry point) location context.
+static const LocationContext *getInlinedLocati
https://github.com/wangpc-pp created
https://github.com/llvm/llvm-project/pull/136842
This matches GCC and we supported it in LLVM 17/18.
Fixes #136803
>From e133a5fc0091ec045a0ea0114d553c72e8f33e51 Mon Sep 17 00:00:00 2001
From: Pengcheng Wang
Date: Wed, 23 Apr 2025 18:19:41 +0800
Subject:
https://github.com/virginia-cangelosi updated
https://github.com/llvm/llvm-project/pull/130127
>From f2a217606537b67a314f9e2b50d7edad5b6ca0cd Mon Sep 17 00:00:00 2001
From: Virginia Cangelosi
Date: Thu, 6 Mar 2025 13:38:19 +
Subject: [PATCH 1/4] [Clang][llvm] Implement fp8 FMOP4A intrinsics
https://github.com/frasercrmck closed
https://github.com/llvm/llvm-project/pull/135733
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -3691,6 +3691,7 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF,
SourceLocation Loc,
DestructorsFlag = 0x8,
PriorityFlag = 0x20,
DetachableFlag = 0x40,
+PoolFlag = 0x80,
Ritanya-B-Bharadwaj wrote:
Not yet, I have not added support for
https://github.com/Ritanya-B-Bharadwaj edited
https://github.com/llvm/llvm-project/pull/134131
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Ritanya-B-Bharadwaj edited
https://github.com/llvm/llvm-project/pull/135807
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -717,6 +716,16 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool
EnableExperimentalExtension,
} while (!Ext.empty());
}
+ // We add Zicsr/Zifenci as final to allow duplicated "zicsr"/"zifencei" like
+ // "rv64g_zicsr_zifencei".
+ if (Baseline == 'g') {
+fo
https://github.com/sivan-shani ready_for_review
https://github.com/llvm/llvm-project/pull/136850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -101,9 +103,11 @@ T tmain(T argc, T *argv) {
a = 2;
#pragma omp task default(none), private(argc, b) firstprivate(argv) shared(d)
if (argc > 0) final(S::TS > 0) priority(argc) affinity(argc, argv[b:argc],
arr[:], ([argc][sizeof(T)])argv)
foo();
+#ifndef OMP60
-
1 - 100 of 452 matches
Mail list logo