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"
101 /// ThreadSanitizer: instrument the code in module to find races.
103 /// Instantiating ThreadSanitizer inserts the tsan runtime library API function
107 struct ThreadSanitizer {
108 ThreadSanitizer() {
185 ThreadSanitizer TSan;
199 void ThreadSanitizer::initialize(Module &M, const TargetLibraryInfo &TLI) {
381 bool ThreadSanitizer::addrPointsToConstantData(Value *Addr) {
414 void ThreadSanitizer::chooseInstructionsToInstrument(
481 void ThreadSanitizer::InsertRuntimeIgnores(Function &F) {
492 bool ThreadSanitizer::sanitizeFunction(Function &F,
589 bool ThreadSanitizer::instrumentLoadOrStore(const InstructionInfo &II,
688 bool ThreadSanitizer::instrumentMemIntrinsic(Instruction *I) {
710 // Both llvm and ThreadSanitizer atomic operations are based on C++11/C1x
718 bool ThreadSanitizer::instrumentAtomic(Instruction *I, const DataLayout &DL) {
806 int ThreadSanitizer::getMemoryAccessFuncIndex(Type *OrigTy, Value *Addr,