Lines Matching defs:ThreadSanitizer
1 //===-- ThreadSanitizer.cpp - race detector -------------------------------===//
9 // This file is a part of ThreadSanitizer, a race detector.
21 #include "llvm/Transforms/Instrumentation/ThreadSanitizer.h"
102 /// ThreadSanitizer: instrument the code in module to find races.
104 /// Instantiating ThreadSanitizer inserts the tsan runtime library API function
108 struct ThreadSanitizer {
109 ThreadSanitizer() {
186 ThreadSanitizer TSan;
197 void ThreadSanitizer::initialize(Module &M, const TargetLibraryInfo &TLI) {
379 bool ThreadSanitizer::addrPointsToConstantData(Value *Addr) {
412 void ThreadSanitizer::chooseInstructionsToInstrument(
479 void ThreadSanitizer::InsertRuntimeIgnores(Function &F) {
489 bool ThreadSanitizer::sanitizeFunction(Function &F,
586 bool ThreadSanitizer::instrumentLoadOrStore(const InstructionInfo &II,
685 bool ThreadSanitizer::instrumentMemIntrinsic(Instruction *I) {
707 // Both llvm and ThreadSanitizer atomic operations are based on C++11/C1x
715 bool ThreadSanitizer::instrumentAtomic(Instruction *I, const DataLayout &DL) {
803 int ThreadSanitizer::getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr,