[clang] [TySan] Add initial documentation for Type Sanitizer (PR #123595)
Oliver Stöneberg via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 23 07:41:11 PST 2025
================
@@ -0,0 +1,153 @@
+================
+TypeSanitizer
+================
+
+.. contents::
+ :local:
+
+Introduction
+============
+
+TypeSanitizer is a detector for strict type aliasing violations. It consists of a compiler
+instrumentation module and a run-time library. The tool detects violations such as the use
+of an illegally cast pointer, or misuse of a union.
+
+The violations TypeSanitizer catches may cause the compiler to emit incorrect code.
+
+Typical slowdown introduced by TypeSanitizer is about **4x** [[CHECK THIS]]. Typical memory overhead introduced by TypeSanitizer is about **9x**.
----------------
firewave wrote:
It also seems to have a sizable compile-time overhead.
https://github.com/llvm/llvm-project/pull/123595
More information about the cfe-commits
mailing list