struct ThreadSanitizerPass
Declaration
struct ThreadSanitizerPass : public PassInfoMixin { /* full declaration omitted */ };
Description
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
Declared at: llvm/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h:28
Inherits from: PassInfoMixin
Method Overview
- public llvm::PreservedAnalyses run(llvm::Function & F, llvm::FunctionAnalysisManager & FAM)
- public llvm::PreservedAnalyses run(llvm::Module & M, llvm::ModuleAnalysisManager & AM)
Methods
¶llvm::PreservedAnalyses run(
llvm::Function& F,
llvm::FunctionAnalysisManager& FAM)
llvm::PreservedAnalyses run(
llvm::Function& F,
llvm::FunctionAnalysisManager& FAM)
Declared at: llvm/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h:29
Parameters
¶llvm::PreservedAnalyses run(
llvm::Module& M,
llvm::ModuleAnalysisManager& AM)
llvm::PreservedAnalyses run(
llvm::Module& M,
llvm::ModuleAnalysisManager& AM)
Declared at: llvm/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h:30