[compiler-rt] [llvm] [TySan] Add option to outline instrumentation (PR #120582)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 02:21:10 PDT 2025
================
@@ -62,6 +62,18 @@ static cl::opt<bool>
cl::desc("Writes always set the type"), cl::Hidden,
cl::init(false));
+static cl::opt<bool> ClOutlineInstrumentation(
+ "tysan-outline-instrumentation",
+ cl::desc("Uses function calls for all TySan instrumentation, reducing "
+ "ELF size"),
+ cl::Hidden, cl::init(false));
+
+static cl::opt<bool> ClVerifyOutlinedInstrumentation(
+ "tysan-verify-outlined-instrumentation",
+ cl::desc("Check types twice with both inlined instrumentation and "
+ "function calls. This verifies that they behave the same."),
+ cl::Hidden, cl::init(false));
+
----------------
fhahn wrote:
Could you also add an IR test for the option?
And runtime tests for both options?
https://github.com/llvm/llvm-project/pull/120582
More information about the llvm-commits
mailing list