[clang] [compiler-rt] [llvm] [tsan] Add simulation to TSAN (PR #183200)
Chris Cotter via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 22:48:17 PST 2026
================
@@ -84,6 +84,15 @@ inline bool MustIgnoreInterceptor(ThreadState *thr) {
if (MustIgnoreInterceptor(thr)) \
return REAL(func)(__VA_ARGS__);
+// Mark an interceptor as unsupported during simulation. If simulation is
+// active, reports an error but continues with normal TSAN instrumentation.
+// The simulation will return an error at the end of the current iteration.
+#define SIMULATE_CHECK_UNSUPPORTED(func) \
+ if (UNLIKELY(SimulateIsActive())) { \
+ SimulateReportUnsupported(#func); \
+ return {}; \
----------------
ccotter wrote:
Unsupported functions now Die(); I would like to use subsequent PRs to extend support for more functions.
https://github.com/llvm/llvm-project/pull/183200
More information about the cfe-commits
mailing list