LLVM 22.0.0git
|
A function pass for tsan instrumentation. More...
#include "llvm/Transforms/Instrumentation/ThreadSanitizer.h"
Public Member Functions | |
LLVM_ABI PreservedAnalyses | run (Function &F, FunctionAnalysisManager &FAM) |
![]() | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Member Functions | |
static bool | isRequired () |
![]() | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
A function pass for tsan instrumentation.
Instruments functions to detect race conditions reads. This function pass inserts calls to runtime library functions. If the functions aren't declared yet, the pass inserts the declarations. Otherwise the existing globals are
Definition at line 28 of file ThreadSanitizer.h.
|
inlinestatic |
Definition at line 30 of file ThreadSanitizer.h.
PreservedAnalyses ThreadSanitizerPass::run | ( | Function & | F, |
FunctionAnalysisManager & | FAM | ||
) |
Definition at line 187 of file ThreadSanitizer.cpp.
References llvm::PreservedAnalyses::all(), F, FAM, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), and llvm::PreservedAnalyses::none().