LLVM 20.0.0git
|
A module pass for msan instrumentation. More...
#include "llvm/Transforms/Instrumentation/MemorySanitizer.h"
Public Member Functions | |
MemorySanitizerPass (MemorySanitizerOptions Options) | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &AM) |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Public Member Functions inherited from llvm::PassInfoMixin< MemorySanitizerPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Member Functions | |
static bool | isRequired () |
Static Public Member Functions inherited from llvm::PassInfoMixin< MemorySanitizerPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
A module pass for msan instrumentation.
Instruments functions to detect unitialized 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 used.
Definition at line 42 of file MemorySanitizer.h.
|
inline |
Definition at line 43 of file MemorySanitizer.h.
|
inlinestatic |
Definition at line 48 of file MemorySanitizer.h.
void MemorySanitizerPass::printPipeline | ( | raw_ostream & | OS, |
function_ref< StringRef(StringRef)> | MapClassName2PassName | ||
) |
Definition at line 739 of file MemorySanitizer.cpp.
References Options, OS, and printPipeline().
Referenced by printPipeline().
PreservedAnalyses MemorySanitizerPass::run | ( | Module & | M, |
ModuleAnalysisManager & | AM | ||
) |
Definition at line 708 of file MemorySanitizer.cpp.
References llvm::PreservedAnalyses::abandon(), llvm::PreservedAnalyses::all(), llvm::checkIfAlreadyInstrumented(), F, FAM, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), Modified, llvm::PreservedAnalyses::none(), and Options.