[clang] [compiler-rt] [asan][windows] Eliminate the static asan runtime on windows (PR #81677)

2024-02-13 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Added know some folks who may know how Asan in used by Chromium on Windows. https://github.com/llvm/llvm-project/pull/81677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [compiler-rt] [asan][windows] Eliminate the static asan runtime on windows (PR #81677)

2024-02-13 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka commented: This is long description, but it does not explain WHY. Could you please add some explanation there? https://github.com/llvm/llvm-project/pull/81677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [compiler-rt] [asan][windows] Eliminate the static asan runtime on windows (PR #81677)

2024-03-05 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > @vitalybuka Here's a more detailed explination on the motivations behind this > change from @amyw-msft, who is the original author of these changes on our > side. (And who I'll add as a co-author using fixup commits) > > https://devblogs.microsoft.com/cppblog/msvc-address-s

[clang] [UBSAN] Preserve ubsan code with ubsan-unique-traps (PR #83470)

2024-03-05 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > If you are going to remove this feature, I would rather you simply revert the > old commit. There is no point leaving the flag in at this point. > > I had explored earlier dealing with the optimization at a later time in the > compilation pipeline, but got nowhere and this

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/84214 With #83470 it reduces UBSAN overhead from 52.5% to 12.6%. Measured as "Geomean difference" on "test-suite/MultiSource/Benchmarks" with PGO+ThinLTO build. On real server apps we see 95% of code instrumented, w

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From f915a90962986cf20a9903ac9995cfee3b8ba990 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From f915a90962986cf20a9903ac9995cfee3b8ba990 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-06 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Please ignore buildkite for now, as the patch depends on #83471 which I uploaded without stacked review. https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-07 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-07 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > is there a long term plan to add a driver flag for this? yes, but I'd like to that after we collect feedback from first users https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-07 Thread Vitaly Buka via cfe-commits
@@ -744,6 +750,21 @@ static void addSanitizers(const Triple &TargetTriple, // LastEP does not need GlobalsAA. PB.registerOptimizerLastEPCallback(SanitizersCallback); } + + if (ClRemoveTraps) { +// We can optimize after inliner, and PGO profile matching. The hook

[clang] [DFSan] Add missing documentation for -dfsan-reaches-function-callbacks. (PR #84218)

2024-03-07 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/84218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-07 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-07 Thread Vitaly Buka via cfe-commits
@@ -744,6 +750,21 @@ static void addSanitizers(const Triple &TargetTriple, // LastEP does not need GlobalsAA. PB.registerOptimizerLastEPCallback(SanitizersCallback); } + + if (ClRemoveTraps) { +// We can optimize after inliner, and PGO profile matching. The hook

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/4] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
@@ -744,6 +750,21 @@ static void addSanitizers(const Triple &TargetTriple, // LastEP does not need GlobalsAA. PB.registerOptimizerLastEPCallback(SanitizersCallback); } + + if (ClRemoveTraps) { +// We can optimize after inliner, and PGO profile matching. The hook

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/6] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/7] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] Revert "[clang] Fix crash when declaring invalid lambda member" (PR #84615)

2024-03-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/84615 Reverts llvm/llvm-project#74110 Fails on many bots: https://lab.llvm.org/buildbot/#/builders/5/builds/41633 >From 780ee1d80aa1b8cf54bd642e7c2a7e59c2dc9e11 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Sat

[clang] Revert "[clang] Fix crash when declaring invalid lambda member" (PR #84615)

2024-03-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/84615 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/7] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/7] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/7] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > yes, but I'd like to that after we collect feedback from first users They are introduced by earlier transformations Note: I'd like to have special intrinsic for this optimization. When we have it, we likely don't need this SimplifyCFG. https://github.com/llvm/llvm-project/

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-11 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/84214 >From feb5bfa786d1660a7fe0b6c48ec9048cdd315800 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Mar 2024 10:03:46 -0800 Subject: [PATCH 1/7] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-11 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/84214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add optional pass to remove UBSAN traps using PGO (PR #84214)

2024-03-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > @vitalybuka the test you added `remote-traps.c` seems to be failing on a few > buildbots, can you take a look? > > * https://lab.llvm.org/buildbot/#/builders/231/builds/21492 > * https://lab.llvm.org/buildbot/#/builders/280/builds/6 looking https://github.com/llvm/llvm-pro

[clang] 6397f22 - [clang] Fix test after #84214

2024-03-11 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2024-03-11T15:33:32-07:00 New Revision: 6397f223c456ce5a0cc246cd81673794a4860fd1 URL: https://github.com/llvm/llvm-project/commit/6397f223c456ce5a0cc246cd81673794a4860fd1 DIFF: https://github.com/llvm/llvm-project/commit/6397f223c456ce5a0cc246cd81673794a4860fd1.diff L

[clang] [llvm] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2024-03-12 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka requested changes to this pull request. Removing from my pending reviews https://github.com/llvm/llvm-project/pull/76127 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2024-03-12 Thread Vitaly Buka via cfe-commits
@@ -1094,6 +1114,27 @@ void ScalarExprEmitter::EmitIntegerTruncationCheck(Value *Src, QualType SrcType, {Src, Dst}); } +static llvm::Value *EmitIsNegativeTestHelper(Value *V, QualType VType, vitalybuka wrote: I still see it here, does it need

[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2024-03-12 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/75481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Modify BoundsSan to improve debuggability (PR #65972)

2024-02-27 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: oskarwirga@ I'd like to use this feature but without counter, preserving ubsan IDs Also I think in the current the counter has limited use: in optimized code, after inlining, it will have a lot of same ids, like 0, 1 from different functions. So I propose to undo that part

[clang] [UBSAN] Preserve ubsan code with ubsan-unique-traps (PR #83470)

2024-02-29 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/83470 Removing `TrapBB->getParent()->size()` added with #65972. Counter as-is is not very unique after inlining https://godbolt.org/z/4KfEKq7zb (see m()). >From e44df1c386d96472614939658e496cf2a9643e05 Mon Sep 17 0

[clang] [llvm] Modify BoundsSan to improve debuggability (PR #65972)

2024-02-29 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > So long as the debuggability is preserved so that it is possible to attribute > crashes to specific lines of code, I am fine! Do you have an alternate > solution? In IR these traps are not de-duplicated with -ubsan-unique-traps It happens later, in LLVM backend, it needs t

[clang] [UBSAN] Preserve ubsan code with ubsan-unique-traps (PR #83470)

2024-03-04 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > > It happens later, in LLVM backend, it needs to be fixed. > > From [#65972 > (comment)](https://github.com/llvm/llvm-project/pull/65972#issuecomment-1971855638) > > Is this something you have planned to fix? If not would replacing the .size() > counter with perhaps a seed

[llvm] [lldb] [lld] [libc] [libcxx] [flang] [libcxxabi] [clang] [msan] Unpoison indirect outputs for userspace using llvm.memset.* (PR #79924)

2024-01-30 Thread Vitaly Buka via cfe-commits
@@ -4552,16 +4552,22 @@ struct MemorySanitizerVisitor : public InstVisitor { } if (!ElemTy->isSized()) return; -Value *SizeVal = - IRB.CreateTypeSize(MS.IntptrTy, DL.getTypeStoreSize(ElemTy)); +auto Size = DL.getTypeStoreSize(ElemTy); +Value *Siz

[llvm] [lldb] [lld] [libc] [libcxx] [flang] [libcxxabi] [clang] [msan] Unpoison indirect outputs for userspace using llvm.memset.* (PR #79924)

2024-01-30 Thread Vitaly Buka via cfe-commits
@@ -4552,16 +4552,22 @@ struct MemorySanitizerVisitor : public InstVisitor { } if (!ElemTy->isSized()) return; -Value *SizeVal = - IRB.CreateTypeSize(MS.IntptrTy, DL.getTypeStoreSize(ElemTy)); +auto Size = DL.getTypeStoreSize(ElemTy); +Value *Siz

[llvm] [lldb] [lld] [libc] [libcxx] [flang] [libcxxabi] [clang] [msan] Unpoison indirect outputs for userspace using llvm.memset.* (PR #79924)

2024-01-30 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/79924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxxabi] [lldb] [flang] [lld] [llvm] [libcxx] [libc] [msan] Unpoison indirect outputs for userspace using memset for large operands (PR #79924)

2024-02-02 Thread Vitaly Buka via cfe-commits
@@ -4552,16 +4552,22 @@ struct MemorySanitizerVisitor : public InstVisitor { } if (!ElemTy->isSized()) return; -Value *SizeVal = - IRB.CreateTypeSize(MS.IntptrTy, DL.getTypeStoreSize(ElemTy)); +auto Size = DL.getTypeStoreSize(ElemTy); +Value *Siz

[clang] Try on bot patch from #76218 (PR #78813)

2024-01-23 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/78813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Try on bot patch from #76218 (PR #78813)

2024-01-23 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Not needed https://github.com/llvm/llvm-project/pull/78813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Extend life of variables in `DiagComparison` in `ExprConstant` (PR #79522)

2024-01-26 Thread Vitaly Buka via cfe-commits
@@ -13288,9 +13288,23 @@ EvaluateComparisonBinaryOperator(EvalInfo &Info, const BinaryOperator *E, // Reject differing bases from the normal codepath; we special-case // comparisons to null. if (!HasSameBase(LHSValue, RHSValue)) { - auto DiagComparison = [&] (

[compiler-rt] [libcxx] [mlir] [llvm] [clang] [openmp] [lld] [libcxxabi] [runtimes] Use LLVM libunwind from libc++abi by default (PR #77687)

2024-01-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > @vitalybuka This seems to have broken the ASAN and HWASAN builds here: > https://lab.llvm.org/buildbot/#/builders/236/builds/8629/steps/8/logs/stdio > https://lab.llvm.org/buildbot/#/builders/168/builds/17965/steps/8/logs/stdio > > My understanding is that we'd now need to

[compiler-rt] [lld] [llvm] [openmp] [libcxx] [libcxxabi] [mlir] [clang] [runtimes] Use LLVM libunwind from libc++abi by default (PR #77687)

2024-01-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @ldionne @MaskRay Any ideas what does this mean https://lab.llvm.org/buildbot/#/builders/85/builds/21530 https://github.com/llvm/llvm-project/pull/77687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [llvm] [LLVM][DWARF] Fix accelerator table switching between CU and TU (PR #77511)

2024-01-12 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Could this be caused by the patch https://lab.llvm.org/buildbot/#/builders/236/builds/8673 ? https://github.com/llvm/llvm-project/pull/77511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[libcxx] [llvm] [openmp] [clang] [compiler-rt] [lld] [libcxxabi] [mlir] [runtimes] Use LLVM libunwind from libc++abi by default (PR #77687)

2024-01-12 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @petrhosek @ldionne would it be better detect libunwind in LLVM_ENABLE_RUNTIMES? We have similar thing for lld in compiler-rt. There are trade offs: 1. checking LLVM_ENABLE_RUNTIMES simplify out of the end user experience, 1. forcing default ON simplifies cmake files and avoi

[compiler-rt] [clang] [llvm] [sanitizer] Skip /include/c++/ from summary (PR #78534)

2024-01-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/78534 >From 642d00771072386cbcc2426e749df9a40f3fb745 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 17 Jan 2024 17:57:31 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?U

[compiler-rt] [clang] [llvm] [CI] Add lld as compiler-rt dependecy (PR #78536)

2024-01-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/78536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[mlir] [llvm] [libcxx] [compiler-rt] [clang] [CI] Add lld as compiler-rt dependecy (PR #78536)

2024-01-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/78536 >From cbdd94e111df298caa38b007b1f46a82a7bac73a Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 17 Jan 2024 18:13:57 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20change?= =?U

[llvm] [mlir] [compiler-rt] [clang] [libcxx] [CI] Add lld as compiler-rt dependecy (PR #78536)

2024-01-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/78536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[mlir] [llvm] [libcxx] [compiler-rt] [clang] [CI] Add lld as compiler-rt dependecy (PR #78536)

2024-01-17 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @XinWang10 Sorry, you accidentally pulled in here by `spr diff` after rebase. https://github.com/llvm/llvm-project/pull/78536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[mlir] [llvm] [libcxx] [compiler-rt] [clang] [sanitizer] Skip /include/c++/ from summary (PR #78534)

2024-01-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/78534 >From 642d00771072386cbcc2426e749df9a40f3fb745 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 17 Jan 2024 17:57:31 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?U

[clang] [clang] Add size filter for stack auto init (PR #74777)

2024-01-18 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: I guess buildkite/github-pull-requests is stuck https://github.com/llvm/llvm-project/pull/74777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add size filter for stack auto init (PR #74777)

2024-01-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/74777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [libcxx] [clang] [compiler-rt] [mlir] [sanitizer] Skip /include/c++/ from summary (PR #78534)

2024-01-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/78534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [libcxx] [compiler-rt] [mlir] [sanitizer] Skip /include/c++/ from summary (PR #78534)

2024-01-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/78534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Add a interpreter-specific overload of operator new for C++ (PR #76218)

2024-01-18 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Looks like after this patch https://lab.llvm.org/buildbot/#/builders/236/builds/8819 https://github.com/llvm/llvm-project/pull/76218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] 160a750 - [clang-repl][test] Suppress memory lease after #76218

2024-01-18 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2024-01-18T13:09:13-08:00 New Revision: 160a750e63256e58fc171f1b6cccf8b61bb05f42 URL: https://github.com/llvm/llvm-project/commit/160a750e63256e58fc171f1b6cccf8b61bb05f42 DIFF: https://github.com/llvm/llvm-project/commit/160a750e63256e58fc171f1b6cccf8b61bb05f42.diff L

[clang] [clang-repl] Add a interpreter-specific overload of operator new for C++ (PR #76218)

2024-01-18 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @vgvassilev I end up with suppression, please check, when you have time, if this can be done better way, or just remove FIXME. https://github.com/llvm/llvm-project/pull/76218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [llvm] [clang-tools-extra] [msan] Unpoison indirect outputs for userspace when -msan-handle-asm-conservative is specified (PR #77393)

2024-01-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/77393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Add a interpreter-specific overload of operator new for C++ (PR #76218)

2024-01-19 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: I suspect asan may complain on new/free mismatch https://github.com/llvm/llvm-project/pull/76218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Try patch from #76218 (PR #78813)

2024-01-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/78813 None >From b2c13350471c50f75d7a32d118faf7b04a5fbede Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 19 Jan 2024 16:07:34 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?

[clang] Try patch from #76218 (PR #78813)

2024-01-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/78813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Try on bot patch from #76218 (PR #78813)

2024-01-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/78813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Try on bot patch from #76218 (PR #78813)

2024-01-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka converted_to_draft https://github.com/llvm/llvm-project/pull/78813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Add a interpreter-specific overload of operator new for C++ (PR #76218)

2024-01-19 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Yes, it fixes the leak but on asan bot it's mismatch https://lab.llvm.org/buildbot/#/builders/168/builds/18159/steps/10/logs/stdio https://github.com/llvm/llvm-project/pull/76218 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[llvm] [clang] [libcxx] [mlir] [compiler-rt] [sanitizer] Skip /include/c++/ from summary (PR #78534)

2024-01-19 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Thanks, I guess symbolizer on Darwin somehow strip inlude/c++ path https://github.com/llvm/llvm-project/pull/78534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] We do not need to call new in the object allocation. (PR #78843)

2024-01-20 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/78843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] We do not need to call new in the object allocation. (PR #78843)

2024-01-20 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/78843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [llvm] [mlir] [compiler-rt] [sanitizer] Skip /include/c++/ from summary (PR #78534)

2024-01-22 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > Note that on Gentoo, this isn't right either, we have e.g.: > > ``` > /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/new_allocator.h > /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/new_allocator.h > ``` I guess it's fine to expand the FrameIsInternal to c

[clang] [CodeGen] -fsanitize=alignment: add cl::opt sanitize-alignment-builtin to disable memcpy instrumentation (PR #69240)

2023-10-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/69240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] -fsanitize=alignment: add cl::opt sanitize-alignment-builtin to disable memcpy instrumentation (PR #69240)

2023-10-18 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Either way seems fine, but ignore list looks more usually to me. https://github.com/llvm/llvm-project/pull/69240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP] For Asan instrumented global, emit two symbols, one with actual size and other with instrumented size. (PR #70166)

2023-10-24 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Would it be possible to create an issue, or RFC explain in one place what it the problem you are trying to solve and how? https://github.com/llvm/llvm-project/pull/70166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] Bfi precision (PR #66285)

2023-10-26 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: FYI @ldionne This patch causing test_vector2.pass.cpp trigger memory leak https://lab.llvm.org/buildbot/#/builders/168/builds/16422 Not sure if this was leaking but lsan didn't see, it's possible. Or some regression in lsan. https://github.com/llvm/llvm-project/pull/66285 _

r369830 - NFC: Rename some sanitizer related lifetime checks

2019-08-23 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Fri Aug 23 18:31:38 2019 New Revision: 369830 URL: http://llvm.org/viewvc/llvm-project?rev=369830&view=rev Log: NFC: Rename some sanitizer related lifetime checks Added: cfe/trunk/test/CodeGen/lifetime-sanitizer.c cfe/trunk/test/CodeGenCXX/lifetime-sanitizer.cpp R

Re: r369830 - NFC: Rename some sanitizer related lifetime checks

2019-08-26 Thread Vitaly Buka via cfe-commits
r: CHECK-LABEL: expected string not found in input > > // CHECK-LABEL: cond.true: > > ^ > > :21:8: note: scanning from here > > br i1 %7, label %8, label %10 > > ^ > > :25:6: note: possible intended match here > > store i1 true, i1* %4

r369971 - Revert r369843 "[Testing] Unbreak r369830"

2019-08-26 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Mon Aug 26 14:29:06 2019 New Revision: 369971 URL: http://llvm.org/viewvc/llvm-project?rev=369971&view=rev Log: Revert r369843 "[Testing] Unbreak r369830" That was not the fix. This reverts commit 8bcf690ae03db85608b2ea22eac7a91c84df4dc. Modified: cfe/trunk/test/Cod

r369979 - msan, codegen, instcombine: Keep more lifetime markers used for msan

2019-08-26 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Mon Aug 26 15:15:50 2019 New Revision: 369979 URL: http://llvm.org/viewvc/llvm-project?rev=369979&view=rev Log: msan, codegen, instcombine: Keep more lifetime markers used for msan Reviewers: eugenis Subscribers: hiraditya, cfe-commits, #sanitizers, llvm-commits Tags: #

r369980 - hwasan, codegen: Keep more lifetime markers used for hwasan

2019-08-26 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Mon Aug 26 15:16:05 2019 New Revision: 369980 URL: http://llvm.org/viewvc/llvm-project?rev=369980&view=rev Log: hwasan, codegen: Keep more lifetime markers used for hwasan Reviewers: eugenis Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.l

r369992 - NFC: Make test work with or without assertions

2019-08-26 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Mon Aug 26 17:11:33 2019 New Revision: 369992 URL: http://llvm.org/viewvc/llvm-project?rev=369992&view=rev Log: NFC: Make test work with or without assertions Modified: cfe/trunk/test/CodeGenCXX/lifetime-sanitizer.cpp Modified: cfe/trunk/test/CodeGenCXX/lifetime-sani

Re: r369830 - NFC: Rename some sanitizer related lifetime checks

2019-08-26 Thread Vitaly Buka via cfe-commits
p >> -check-prefixes=CHECK,LIFETIME >> > -- >> > Exit Code: 1 >> > >> > Command Output (stderr): >> > -- >> > /home/dave/s/lp/clang/test/CodeGenCXX/lifetime-sanitizer.cpp:30:18: >> error: CHECK-LABEL: expected string not found in input

Re: r369971 - Revert r369843 "[Testing] Unbreak r369830"

2019-08-26 Thread Vitaly Buka via cfe-commits
fixed with r369992 On Mon, Aug 26, 2019 at 2:27 PM Vitaly Buka via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: vitalybuka > Date: Mon Aug 26 14:29:06 2019 > New Revision: 369971 > > URL: http://llvm.org/viewvc/llvm-project?rev=369971&view=rev > Log

r370141 - Fix "commas at the end of enumerator lists are a C99-specific"

2019-08-27 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Tue Aug 27 18:04:50 2019 New Revision: 370141 URL: http://llvm.org/viewvc/llvm-project?rev=370141&view=rev Log: Fix "commas at the end of enumerator lists are a C99-specific" Modified: cfe/trunk/include/clang-c/Index.h Modified: cfe/trunk/include/clang-c/Index.h URL:

Re: r370083 - Change the X86 datalayout to add three address spaces for 32 bit signed,

2019-08-27 Thread Vitaly Buka via cfe-commits
llvm-project/lld/test/ELF/lto/Inputs/drop-debug-info.bc needs to be updated http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/34675/steps/check-lld%20msan/logs/stdio /usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld -shared /usr/local/google/home/vitalybuka/slow/

Re: r310057 - Revert r304953 for release 5.0.0

2017-08-04 Thread Vitaly Buka via cfe-commits
Looks like it's causing http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/1969/steps/build%20clang%2Fmsan/logs/stdio FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MIRPrinter.cpp.o /mnt/b/sanitizer-buildbot2/sanitizer-x86_64-linux-bootstrap/build/llvm_build0/bin/clang++ -

Re: r310057 - Revert r304953 for release 5.0.0

2017-08-04 Thread Vitaly Buka via cfe-commits
Probably not, r310056 fails as well On Fri, Aug 4, 2017 at 3:19 PM, Vitaly Buka wrote: > Looks like it's causing > http://lab.llvm.org:8011/builders/sanitizer-x86_64- > linux-bootstrap/builds/1969/steps/build%20clang%2Fmsan/logs/stdio > > FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MIRPrinter

r310441 - [clang-fuzzer] Resolve proto dependencies

2017-08-08 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Tue Aug 8 21:45:00 2017 New Revision: 310441 URL: http://llvm.org/viewvc/llvm-project?rev=310441&view=rev Log: [clang-fuzzer] Resolve proto dependencies Modified: cfe/trunk/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt Modified: cfe/trunk/tools/clang-fuzzer/proto-t

r311428 - Update libprotobuf-mutator revision

2017-08-21 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Mon Aug 21 22:18:28 2017 New Revision: 311428 URL: http://llvm.org/viewvc/llvm-project?rev=311428&view=rev Log: Update libprotobuf-mutator revision Modified: cfe/trunk/cmake/modules/ProtobufMutator.cmake Modified: cfe/trunk/cmake/modules/ProtobufMutator.cmake URL: h

[clang] a8503b8 - [NFC] Remove unused static function

2020-09-11 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2020-09-11T16:50:30-07:00 New Revision: a8503b87f739776cc9d5738f69aa0990db952340 URL: https://github.com/llvm/llvm-project/commit/a8503b87f739776cc9d5738f69aa0990db952340 DIFF: https://github.com/llvm/llvm-project/commit/a8503b87f739776cc9d5738f69aa0990db952340.diff L

Re: [clang] a8503b8 - [NFC] Remove unused static function

2020-09-12 Thread Vitaly Buka via cfe-commits
as "static" it was hitting a compiler warning/error & not >> actually being emitted into the resulting binary for use by an interactive >> debugger?) >> >> +Kristof for comments/thoughts >> >> On Fri, Sep 11, 2020 at 4:50 PM Vitaly Buka via cfe-commits

[clang] 03358be - [NFC][Lsan] Fix zero-sized array compilation error

2020-09-17 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2020-09-17T17:59:52-07:00 New Revision: 03358becbf22a221d6d965ec8f3f7068668f7d29 URL: https://github.com/llvm/llvm-project/commit/03358becbf22a221d6d965ec8f3f7068668f7d29 DIFF: https://github.com/llvm/llvm-project/commit/03358becbf22a221d6d965ec8f3f7068668f7d29.diff L

[clang] 55edf70 - [NFC] clang-format one line

2020-09-17 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2020-09-17T18:03:55-07:00 New Revision: 55edf7039e22312790ac950305746262d2856d97 URL: https://github.com/llvm/llvm-project/commit/55edf7039e22312790ac950305746262d2856d97 DIFF: https://github.com/llvm/llvm-project/commit/55edf7039e22312790ac950305746262d2856d97.diff L

Re: [Diffusion] rG03358becbf22: [NFC][Lsan] Fix zero-sized array compilation error

2020-09-17 Thread Vitaly Buka via cfe-commits
On Thu, 17 Sep 2020 at 18:00, Vitaly Buka via Phabricator < revi...@reviews.llvm.org> wrote: > vitalybuka committed rG03358becbf22: [NFC][Lsan] Fix zero-sized array > compilation error (authored by vitalybuka). > > [NFC][Lsan] Fix zero-sized array compilation error > > > BRANCHES > master > > Fi

<    1   2   3   4   5   6   7   8   9   10   >