llvmbot wrote:
@llvm/pr-subscribers-clang-format
Author: Owen Pan (owenca)
Changes
Uncovered in #124891.
---
Full diff: https://github.com/llvm/llvm-project/pull/125038.diff
2 Files Affected:
- (modified) clang/lib/Format/TokenAnnotator.cpp (+5)
- (modified) clang/unittests/Format/Tok
https://github.com/owenca created
https://github.com/llvm/llvm-project/pull/125038
Uncovered in #124891.
>From e5e706b332864ab8b90e0aac9b4f57096675c5fd Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Wed, 29 Jan 2025 23:28:13 -0800
Subject: [PATCH] [clang-format] Fix annotation of Java/JavaScrip
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 dd3edc8365112c47ea01cc942c8223749d007608
e5a73c1e0d7fb4661b3111f247a2cfb433cd18e8 --e
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Thurston Dang (thurstond)
Changes
This reverts commit 928cad49beec0120686478f502899222e836b545 i.e., relands
dccd27112722109d2e2f03e8da9ce8690f06e11b, with a fix to avoid use-after-scope
by changing the lambda to capture by value.
https://github.com/thurstond created
https://github.com/llvm/llvm-project/pull/125037
This reverts commit 928cad49beec0120686478f502899222e836b545 i.e., relands
dccd27112722109d2e2f03e8da9ce8690f06e11b, with a fix to avoid use-after-scope
by changing the lambda to capture by value.
https://github.com/zyn0217 approved this pull request.
Neat!
https://github.com/llvm/llvm-project/pull/124888
___
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: Nathan Ridge (HighCommander4)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/124888.diff
2 Files Affected:
- (modified) clang/lib/Sema/SemaCodeComplete.cpp (+4-17)
- (modified) clang/test/CodeCompletion/member-access
https://github.com/HighCommander4 ready_for_review
https://github.com/llvm/llvm-project/pull/124888
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/HighCommander4 updated
https://github.com/llvm/llvm-project/pull/124888
>From a28c3b66cfe3d12b05c45fdf9dc40ee961439c2e Mon Sep 17 00:00:00 2001
From: Nathan Ridge
Date: Sun, 26 Jan 2025 01:30:28 -0500
Subject: [PATCH] [clang][CodeComplete] Use HeuristicResolver to resolve
CX
https://github.com/HighCommander4 edited
https://github.com/llvm/llvm-project/pull/124888
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/HighCommander4 closed
https://github.com/llvm/llvm-project/pull/124451
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Nathan Ridge
Date: 2025-01-30T01:54:30-05:00
New Revision: 7fd84264eda6546950883a20c2f948eb1a560f4f
URL:
https://github.com/llvm/llvm-project/commit/7fd84264eda6546950883a20c2f948eb1a560f4f
DIFF:
https://github.com/llvm/llvm-project/commit/7fd84264eda6546950883a20c2f948eb1a560f4f.diff
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
This happens e.g. when a vector element type is not primitive.
---
Full diff: https://github.com/llvm/llvm-project/pull/125033.diff
2 Files Affected:
- (modified) clang/lib/AST/ByteCode/Compiler.cpp (+28-1
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: Urvi Rav (ravurvi20)
Changes
This PR replaces the `default` clause with the `otherwise` clause for the
`metadirective` in OpenMP. The `otherwise` clause serves as a fallback
condition when no directive from the `when` clauses is selected.
https://github.com/ravurvi20 created
https://github.com/llvm/llvm-project/pull/125035
This PR replaces the `default` clause with the `otherwise` clause for the
`metadirective` in OpenMP. The `otherwise` clause serves as a fallback
condition when no directive from the `when` clauses is selected
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building
`clang` at step 7 "Add check check-offload".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/73/builds/12715
Here is the r
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot11`
while building `clang` at step 2 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/55/builds/6340
Here is the rel
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Thurston Dang (thurstond)
Changes
Reverts llvm/llvm-project#124857 due to buildbot breakage
(https://lab.llvm.org/buildbot/#/builders/46/builds/11310)
---
Patch is 25.21 KiB, truncated to 20.00 KiB below, full version:
https://github.co
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/125033
This happens e.g. when a vector element type is not primitive.
>From c63d51e21ccef8dd5be008ffedb3f7d4748811f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 30 Jan 2025 06:41:28 +0100
https://github.com/ravurvi20 closed
https://github.com/llvm/llvm-project/pull/124550
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/thurstond closed
https://github.com/llvm/llvm-project/pull/125032
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Thurston Dang
Date: 2025-01-29T22:03:05-08:00
New Revision: 928cad49beec0120686478f502899222e836b545
URL:
https://github.com/llvm/llvm-project/commit/928cad49beec0120686478f502899222e836b545
DIFF:
https://github.com/llvm/llvm-project/commit/928cad49beec0120686478f502899222e836b545.diff
https://github.com/ravurvi20 reopened
https://github.com/llvm/llvm-project/pull/124550
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/thurstond created
https://github.com/llvm/llvm-project/pull/125032
Reverts llvm/llvm-project#124857 due to buildbot breakage
(https://lab.llvm.org/buildbot/#/builders/46/builds/11310)
>From ce5e19e3a1ac6ecbf39a702a4cb55d12ac1b0849 Mon Sep 17 00:00:00 2001
From: Thurston Dang
https://github.com/junlarsen updated
https://github.com/llvm/llvm-project/pull/124782
>From bc77542fe58bdc94566a9a589039856de50617b0 Mon Sep 17 00:00:00 2001
From: Mats Jun Larsen
Date: Wed, 29 Jan 2025 01:29:01 +0900
Subject: [PATCH] [Clang][TableGen] Use PointerType::get(Context) in MVE
Tabl
@@ -22,7 +22,7 @@ config.host_cxx = "@CMAKE_CXX_COMPILER@"
config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
config.have_zlib = @LLVM_ENABLE_ZLIB@
config.have_zstd = @LLVM_ENABLE_ZSTD@
-config.clang_arcmt = @CLANG_ENABLE_ARCMT@
+config.clang_objc_rewriter = "@CLANG_ENABLE_OBJC
@@ -22,7 +22,7 @@ config.host_cxx = "@CMAKE_CXX_COMPILER@"
config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
config.have_zlib = @LLVM_ENABLE_ZLIB@
config.have_zstd = @LLVM_ENABLE_ZSTD@
-config.clang_arcmt = @CLANG_ENABLE_ARCMT@
+config.clang_objc_rewriter = "@CLANG_ENABLE_OBJC
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib`
running on `linaro-flang-aarch64-dylib` while building `clang,flang,llvm,utils`
at step 5 "build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/50/builds/9611
Her
@@ -0,0 +1,21 @@
+// 1) test on platforms that (do or do not) require runtime relocation
+//
+// RUN: %clang -target x86_64-darwin -fprofile-generate -fprofile-continuous
-### -c %s 2>&1 | FileCheck %s --check-prefix=NO_RELOC
+// NO_RELOC: "-cc1" {{.*}} "-fprofile-continuous"
+//
@@ -785,6 +786,34 @@ static void addPGOAndCoverageFlags(const ToolChain &TC,
Compilation &C,
D.Diag(diag::err_drv_unsupported_option_argument)
<< A->getSpelling() << Val;
}
+ if (const auto *A = Args.getLastArg(options::OPT_fprofile_continuous)) {
+if (!
Author: Thurston Dang
Date: 2025-01-29T21:03:26-08:00
New Revision: dccd27112722109d2e2f03e8da9ce8690f06e11b
URL:
https://github.com/llvm/llvm-project/commit/dccd27112722109d2e2f03e8da9ce8690f06e11b
DIFF:
https://github.com/llvm/llvm-project/commit/dccd27112722109d2e2f03e8da9ce8690f06e11b.diff
https://github.com/thurstond closed
https://github.com/llvm/llvm-project/pull/124857
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/thurstond updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/16] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAllo
https://github.com/Sirraide closed
https://github.com/llvm/llvm-project/pull/119269
___
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: Kazu Hirata (kazutakahirata)
Changes
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Litera
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/125024
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Kazu Hirata (kazutakahirata)
Changes
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Litera
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/125023
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/125020
___
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: Kazu Hirata (kazutakahirata)
Changes
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Litera
llvmbot wrote:
@llvm/pr-subscribers-clang-format
Author: Owen Pan (owenca)
Changes
Fixes #124921.
---
Full diff: https://github.com/llvm/llvm-project/pull/125021.diff
2 Files Affected:
- (modified) clang/lib/Format/UnwrappedLineParser.cpp (+1-1)
- (modified) clang/unittests/Format/For
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/125022
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/owenca created
https://github.com/llvm/llvm-project/pull/125021
Fixes #124921.
>From 1ca8ed5646429368412eba2e856d8215e3ded1a2 Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Wed, 29 Jan 2025 20:08:17 -0800
Subject: [PATCH] [clang-format] Fix a crash on parsing requires clause
vitalybuka wrote:
It does not look nice for memory usage, but I don't know how critical it's here.
It's it's unacceptable, then `__attribute__((no_sanitize("memory")))` is an
option.
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mai
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Vitaly Buka (vitalybuka)
Changes
We can't guaranty that underlying string is
0-terminated and [String.size()] is even in the
same allocation.
---
Full diff: https://github.com/llvm/llvm-project/pull/125020.diff
1 Files Affected:
- (mod
thebrandre wrote:
@shafik @Sirraide Thanks for the feedback! I'll get to it as soon as I can.
It's been a busy week at work.
https://github.com/llvm/llvm-project/pull/124409
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.o
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/125020
We can't guaranty that underlying string is
0-terminated and [String.size()] is even in the
same allocation.
>From 10af91096eda7eb2b7f07cf239f53ac3af456566 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: W
llvmbot wrote:
@llvm/pr-subscribers-clang-format
Author: Owen Pan (owenca)
Changes
Uncovered in #124891.
---
Full diff: https://github.com/llvm/llvm-project/pull/125019.diff
2 Files Affected:
- (modified) clang/lib/Format/TokenAnnotator.cpp (+2-1)
- (modified) clang/unittests/Format/T
https://github.com/owenca created
https://github.com/llvm/llvm-project/pull/125019
Uncovered in #124891.
>From 1d65fda8b49f44d14511a5a6ea6ee8e45e9ff49c Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Wed, 29 Jan 2025 19:42:11 -0800
Subject: [PATCH] [clang-format] Fix annotation of class name aft
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/124857
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/15] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAll
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/14] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAll
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/13] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAll
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/12] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAll
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/11] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAll
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 01/10] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAll
https://github.com/w2yehia edited
https://github.com/llvm/llvm-project/pull/124353
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik commented:
Please add a summary to your PR something like `Enables continuous PGO mode
where profile counter updates are continuously synced to a file.` seems ok.
This is what will show up in the git log and it useful to have more than a
title in the log.
https://gi
https://github.com/shafik commented:
Definitely makes sense. Definitely we need a test, I think the right test to
add an example to is `ast-dump-decl.cpp`.
Could you also put a few more details in the summary, basically explain you are
modifying `TextNodeDumper::VisitEnumDecl` to be more consi
Author: Lang Hames
Date: 2025-01-30T13:42:10+11:00
New Revision: d6524c8dfa37634257050ca71d16e117b802181c
URL:
https://github.com/llvm/llvm-project/commit/d6524c8dfa37634257050ca71d16e117b802181c
DIFF:
https://github.com/llvm/llvm-project/commit/d6524c8dfa37634257050ca71d16e117b802181c.diff
LO
e-kud wrote:
> Let me know whether you are happy with this solution or not.
Yes, thanks, I agree, this is better. Since we disable AVX10 version completely
with any of options 256 or 512 (some kind of duplication), it means that we
can't partially disable it, so these options doesn't make much
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building
`clang` at step 7 "Add check check-offload".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/73/builds/12697
Here is the r
Endilll wrote:
During offline discussion with Corentin he pointed out that [over.match.best]/4
talks about multiple declarations that are _found_, and not simply reachable,
like my implementation currently assumes. I'll update it to take the results of
name lookup into account.
https://github
https://github.com/mizvekov closed
https://github.com/llvm/llvm-project/pull/125001
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Matheus Izvekov
Date: 2025-01-29T21:58:55-03:00
New Revision: 00c096e604ad3a5244af06602556f8de867e36c4
URL:
https://github.com/llvm/llvm-project/commit/00c096e604ad3a5244af06602556f8de867e36c4
DIFF:
https://github.com/llvm/llvm-project/commit/00c096e604ad3a5244af06602556f8de867e36c4.dif
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
@@ -43,6 +44,23 @@ std::optional
SanitizerMaskCutoffs::operator[](unsigned Kind) const {
void SanitizerMaskCutoffs::clear(SanitizerMask K) { set(K, 0); }
+std::optional>
+SanitizerMaskCutoffs::getAllScaled(int ScalingFactor) const {
+ std::vector scaledCutoffs;
+
+ bool an
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
https://github.com/thurstond edited
https://github.com/llvm/llvm-project/pull/124857
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -43,6 +44,23 @@ std::optional
SanitizerMaskCutoffs::operator[](unsigned Kind) const {
void SanitizerMaskCutoffs::clear(SanitizerMask K) { set(K, 0); }
+std::optional>
+SanitizerMaskCutoffs::getAllScaled(int ScalingFactor) const {
+ std::vector scaledCutoffs;
+
+ bool an
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
@@ -43,6 +44,23 @@ std::optional
SanitizerMaskCutoffs::operator[](unsigned Kind) const {
void SanitizerMaskCutoffs::clear(SanitizerMask K) { set(K, 0); }
+std::optional>
+SanitizerMaskCutoffs::getAllScaled(int ScalingFactor) const {
+ std::vector scaledCutoffs;
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
@@ -43,6 +44,23 @@ std::optional
SanitizerMaskCutoffs::operator[](unsigned Kind) const {
void SanitizerMaskCutoffs::clear(SanitizerMask K) { set(K, 0); }
+std::optional>
+SanitizerMaskCutoffs::getAllScaled(int ScalingFactor) const {
+ std::vector scaledCutoffs;
+
+ bool an
https://github.com/thurstond updated
https://github.com/llvm/llvm-project/pull/124857
>From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Wed, 22 Jan 2025 18:59:07 +
Subject: [PATCH 1/9] [ubsan] Connect -fsanitize-skip-hot-cutoff to
LowerAllowC
https://github.com/mizvekov updated
https://github.com/llvm/llvm-project/pull/124997
>From 087997a38f4c64f7c305142ca630777d35b6a126 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov
Date: Wed, 29 Jan 2025 19:34:24 -0300
Subject: [PATCH] [clang] C++20 Modules: document how to perform automated
red
@@ -43,6 +44,23 @@ std::optional
SanitizerMaskCutoffs::operator[](unsigned Kind) const {
void SanitizerMaskCutoffs::clear(SanitizerMask K) { set(K, 0); }
+std::optional>
+SanitizerMaskCutoffs::getAllScaled(int ScalingFactor) const {
+ std::vector scaledCutoffs;
+
+ bool an
https://github.com/slackito approved this pull request.
I'm not very familiar with any of this code, but this looks like a
straightforward workaround to me. I'll leave to you and the other reviewer the
decision about what should be done to make the Analyzer do the right thing in
the long-term
https://github.com/mizvekov updated
https://github.com/llvm/llvm-project/pull/125001
>From 7e687ef989c8eceba8060e95bd7c19dfdb6af19b Mon Sep 17 00:00:00 2001
From: Matheus Izvekov
Date: Wed, 29 Jan 2025 21:07:15 -0300
Subject: [PATCH] [clang] StmtPrinter: Handle DeclRefExpr to a Decomposition
A
@@ -74,7 +74,7 @@ static CCMangling getCallingConvMangling(const ASTContext
&Context,
if (FD->isMain() && FD->getNumParams() == 2)
return CCM_WasmMainArgcArgv;
- if (!Triple.isOSWindows() || !Triple.isX86())
+ if (!Triple.isOSWindowsOrUEFI() || !Triple.isX86()
@@ -5193,12 +5193,12 @@ bool Sema::CheckCallingConvAttr(const ParsedAttr
&Attrs, CallingConv &CC,
CC = CC_X86RegCall;
break;
case ParsedAttr::AT_MSABI:
-CC = Context.getTargetInfo().getTriple().isOSWindows() ? CC_C :
-
@@ -1257,28 +1257,48 @@ void StmtPrinter::VisitConstantExpr(ConstantExpr *Node)
{
}
void StmtPrinter::VisitDeclRefExpr(DeclRefExpr *Node) {
- if (const auto *OCED = dyn_cast(Node->getDecl())) {
+ ValueDecl *VD = Node->getDecl();
+ if (const auto *OCED = dyn_cast(VD)) {
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Matheus Izvekov (mizvekov)
Changes
A DeclRefExpr could never refer to a Decomposition in valid C++ code, but
somehow the Analyzer creates these entities and then it tries to print them.
There is no sensible answer here, so we print 'decom
https://github.com/mizvekov created
https://github.com/llvm/llvm-project/pull/125001
A DeclRefExpr could never refer to a Decomposition in valid C++ code, but
somehow the Analyzer creates these entities and then it tries to print them.
There is no sensible answer here, so we print 'decompositi
https://github.com/to268 updated https://github.com/llvm/llvm-project/pull/79845
>From 6b4ac6b0dc8bafa19521d47856d7dee341439fbc Mon Sep 17 00:00:00 2001
From: Guillot Tony
Date: Thu, 30 Jan 2025 01:12:13 +0100
Subject: [PATCH] N3006 base
---
clang/docs/ReleaseNotes.rst | 2 +
@@ -710,7 +710,7 @@ Before Clang 19, a change in BMI of any (transitive)
dependency would cause the
outputs of the BMI to change. Starting with Clang 19, changes to non-direct
dependencies should not directly affect the output BMI, unless they affect the
results of the compila
https://github.com/Endilll commented:
I find the doc somewhat hand-wavy, but that's fine.
https://github.com/llvm/llvm-project/pull/124997
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/124997
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
@@ -1257,28 +1257,48 @@ void StmtPrinter::VisitConstantExpr(ConstantExpr *Node)
{
}
void StmtPrinter::VisitDeclRefExpr(DeclRefExpr *Node) {
- if (const auto *OCED = dyn_cast(Node->getDecl())) {
+ ValueDecl *VD = Node->getDecl();
+ if (const auto *OCED = dyn_cast(VD)) {
https://github.com/vitalybuka approved this pull request.
With nits
https://github.com/llvm/llvm-project/pull/124857
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
@@ -795,12 +795,30 @@ static void addSanitizers(const Triple &TargetTriple,
PB.registerOptimizerLastEPCallback(SanitizersCallback);
}
- if (LowerAllowCheckPass::IsRequested()) {
+ // SanitizeSkipHotCutoffs: doubles with range [0, 1]
+ // Opts.cutoffs: ints with range
1 - 100 of 454 matches
Mail list logo