[clang] [llvm] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-19 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166170 >From 3c695df1dfd1c042c18f14e0465afb49e595eb2a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH 1/5] [TySan][Clang] Add clang flag to use tysan outlined instrumentati

[clang] [llvm] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-19 Thread Matthew Nagy via cfe-commits
gbMattN wrote: Sorry, it appears I have two local copies of llvm on my computer and pushed the wrong one. All changes should be restored now 😅 https://github.com/llvm/llvm-project/pull/166170 ___ cfe-commits mailing list [email protected] htt

[clang] [llvm] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-19 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166170 >From 3c695df1dfd1c042c18f14e0465afb49e595eb2a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH 1/4] [TySan][Clang] Add clang flag to use tysan outlined instrumentati

[clang] [llvm] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-13 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166170 >From 95c5ff34c043680cbf85d7baf3e73ef7680e5854 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH 1/4] [TySan][Clang] Add clang flag to use tysan outlined instrumentati

[clang] [compiler-rt] Ubsan minimum assumed alignment (PR #166755)

2025-11-06 Thread Matthew Nagy via cfe-commits
gbMattN wrote: This is the diff from the last patch ``` index f2dd22e9bed3..fe561fc66655 100644 --- a/clang/lib/CodeGen/CGExprCXX.cpp +++ b/clang/lib/CodeGen/CGExprCXX.cpp @@ -17,10 +17,9 @@ #include "CodeGenFunction.h" #include "ConstantEmitter.h" #include "TargetInfo.h" +#include "clang/AST/

[clang] [compiler-rt] Ubsan minimum assumed alignment (PR #166755)

2025-11-06 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166755 >From 337b0d0d8d517a056eea440ae30cf9edab4f3a6a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 17 Oct 2025 13:49:55 +0100 Subject: [PATCH 1/9] [UBSan] Report more detailed alignment report when overloaded glo

[clang] [compiler-rt] Ubsan minimum assumed alignment (PR #166755)

2025-11-06 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166755 >From 337b0d0d8d517a056eea440ae30cf9edab4f3a6a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 17 Oct 2025 13:49:55 +0100 Subject: [PATCH 1/8] [UBSan] Report more detailed alignment report when overloaded glo

[clang] [compiler-rt] Ubsan minimum assumed alignment (PR #166755)

2025-11-06 Thread Matthew Nagy via cfe-commits
@@ -85,7 +85,7 @@ S3 *func_08() { // CHECK-LABEL: define {{.*}} @_Z7func_08v // CHECK: and i64 %{{.*}}, 31, !nosanitize // CHECK: icmp eq i64 %{{.*}}, 0, !nosanitize - // CHECK: and i64 %{{.*}}, 3, !nosanitize + // CHECK: and i64 %{{.*}}, 15, !no

[clang] [compiler-rt] Ubsan minimum assumed alignment (PR #166755)

2025-11-06 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166755 >From 337b0d0d8d517a056eea440ae30cf9edab4f3a6a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 17 Oct 2025 13:49:55 +0100 Subject: [PATCH 1/7] [UBSan] Report more detailed alignment report when overloaded glo

[clang] [compiler-rt] Ubsan minimum assumed alignment (PR #166755)

2025-11-06 Thread Matthew Nagy via cfe-commits
@@ -85,7 +85,7 @@ S3 *func_08() { // CHECK-LABEL: define {{.*}} @_Z7func_08v // CHECK: and i64 %{{.*}}, 31, !nosanitize // CHECK: icmp eq i64 %{{.*}}, 0, !nosanitize - // CHECK: and i64 %{{.*}}, 3, !nosanitize + // CHECK: and i64 %{{.*}}, 15, !no

[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)

2025-11-05 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN edited https://github.com/llvm/llvm-project/pull/166542 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)

2025-11-05 Thread Matthew Nagy via cfe-commits
@@ -1769,3 +1769,5 @@ def ExplicitSpecializationStorageClass : DiagGroup<"explicit-specialization-stor // A warning for options that enable a feature that is not yet complete def ExperimentalOption : DiagGroup<"experimental-option">; + +def TSan : DiagGroup<"tsan">; -

[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)

2025-11-05 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN requested changes to this pull request. https://github.com/llvm/llvm-project/pull/166542 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)

2025-11-05 Thread Matthew Nagy via cfe-commits
@@ -1769,3 +1769,5 @@ def ExplicitSpecializationStorageClass : DiagGroup<"explicit-specialization-stor // A warning for options that enable a feature that is not yet complete def ExperimentalOption : DiagGroup<"experimental-option">; + +def TSan : DiagGroup<"tsan">; -

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-04 Thread Matthew Nagy via cfe-commits
gbMattN wrote: I'm not aware of any cases where the outlined instrumentation gives you worse diagnostics than the inlined one, but I think before being comfortable changing the default I will want to do a little more testing. What I've done is a little more "ad-hoc" than exhaustive https://gi

[clang] [compiler-rt] [llvm] [TySan] User-friendly (C style) pointer type names for error reports (PR #166381)

2025-11-04 Thread Matthew Nagy via cfe-commits
@@ -119,8 +119,6 @@ brief dictionary of these terms. * ``omnipotent char``: This is a special type which can alias with anything. Its name comes from the C/C++ type ``char``. -* ``type p[x]``: This signifies pointers to the type. ``x`` is the number of indirections to rea

[clang] [compiler-rt] [llvm] [TySan] User-friendly (C style) pointer type names for error reports (PR #166381)

2025-11-04 Thread Matthew Nagy via cfe-commits
@@ -119,8 +119,6 @@ brief dictionary of these terms. * ``omnipotent char``: This is a special type which can alias with anything. Its name comes from the C/C++ type ``char``. -* ``type p[x]``: This signifies pointers to the type. ``x`` is the number of indirections to rea

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-11-04 Thread Matthew Nagy via cfe-commits
gbMattN wrote: There is also issue when tests pass in -m32, that breaks some, and while examining the tests to try and fix this I've become unconvinced that the correct value is always printed in the new error message. There appeared to be two passing tests claiming minimum alignment were two

[clang] [compiler-rt] Revert "[UBSan] Improve error message when a misalignment is due to t… (PR #166197)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN closed https://github.com/llvm/llvm-project/pull/166197 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[UBSan] Improve error message when a misalignment is due to t… (PR #166197)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN auto_merge_disabled https://github.com/llvm/llvm-project/pull/166197 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[UBSan] Improve error message when a misalignment is due to t… (PR #166197)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN auto_merge_enabled https://github.com/llvm/llvm-project/pull/166197 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[UBSan] Improve error message when a misalignment is due to t… (PR #166197)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN created https://github.com/llvm/llvm-project/pull/166197 …arget de…" This reverts commit 47c54d55c9fac5ea7c87881e00f96e8c12b18174. >From dfd74b8397d5ddd9a723e4dd0d2de6da77581312 Mon Sep 17 00:00:00 2001 From: Matthew Nagy Date: Mon, 3 Nov 2025 16:28:26 + Subject

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN closed https://github.com/llvm/llvm-project/pull/152532 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166170 >From 3c695df1dfd1c042c18f14e0465afb49e595eb2a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH 1/3] [TySan][Clang] Add clang flag to use tysan outlined instrumentati

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-03 Thread Matthew Nagy via cfe-commits
@@ -0,0 +1,23 @@ +// RUN: %clang -S -fsanitize=type -emit-llvm -o - -fsanitize=type %s \ +// RUN: | FileCheck %s --check-prefixes=CHECK-NO-OUTLINE +// RUN: %clang -S -fsanitize=type -emit-llvm -o - -fsanitize=type %s \ +// RUN: -fsanitize-type-outline-instrumentation \ +//

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/166170 >From 3c695df1dfd1c042c18f14e0465afb49e595eb2a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH 1/2] [TySan][Clang] Add clang flag to use tysan outlined instrumentati

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #166170)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN created https://github.com/llvm/llvm-project/pull/166170 …nd update docs >From 3c695df1dfd1c042c18f14e0465afb49e595eb2a Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH] [TySan][Clang] Add clang flag to use tysan outlined

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-11-03 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/152532 >From 47142640181a1c882429a2ba7b83d87d18cfd7d1 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 17 Oct 2025 13:49:55 +0100 Subject: [PATCH 1/5] [UBSan] Report more detailed alignment report when overloaded glo

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #165920)

2025-10-31 Thread Matthew Nagy via cfe-commits
gbMattN wrote: Oops, wrong branch sorry! https://github.com/llvm/llvm-project/pull/165920 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #165920)

2025-10-31 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN closed https://github.com/llvm/llvm-project/pull/165920 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TySan][Clang] Add clang flag to use tysan outlined instrumentation a… (PR #165920)

2025-10-31 Thread Matthew Nagy via cfe-commits
https://github.com/gbMattN created https://github.com/llvm/llvm-project/pull/165920 …nd update docs >From 04adbddcde3c22320e286027b3621cb91c43a3b9 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 31 Oct 2025 21:02:34 + Subject: [PATCH] [TySan][Clang] Add clang flag to use tysan outlined