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:27

Inherits from: PassInfoMixin

Method Overview

  • public static bool isRequired()
  • public llvm::PreservedAnalyses run(llvm::Function & F, llvm::FunctionAnalysisManager & FAM)

Methods

static bool isRequired()

Declared at: llvm/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h:29

llvm::PreservedAnalyses run(
    llvm::Function& F,
    llvm::FunctionAnalysisManager& FAM)

Declared at: llvm/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h:28

Parameters

llvm::Function& F
llvm::FunctionAnalysisManager& FAM