LLVM 22.0.0git
|
Public interface to the address sanitizer module pass for instrumenting code to check for various memory errors. More...
#include "llvm/Transforms/Instrumentation/AddressSanitizer.h"
Public Member Functions | |
LLVM_ABI | AddressSanitizerPass (const AddressSanitizerOptions &Options, bool UseGlobalGC=true, bool UseOdrIndicator=true, AsanDtorKind DestructorKind=AsanDtorKind::Global, AsanCtorKind ConstructorKind=AsanCtorKind::Global) |
LLVM_ABI PreservedAnalyses | run (Module &M, ModuleAnalysisManager &AM) |
LLVM_ABI void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Public Member Functions inherited from llvm::PassInfoMixin< AddressSanitizerPass > | |
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< AddressSanitizerPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. |
Public interface to the address sanitizer module pass for instrumenting code to check for various memory errors.
This adds 'asan.module_ctor' to 'llvm.global_ctors'. This pass may also run intependently of the function address sanitizer.
Definition at line 40 of file AddressSanitizer.h.
AddressSanitizerPass::AddressSanitizerPass | ( | const AddressSanitizerOptions & | Options, |
bool | UseGlobalGC = true, | ||
bool | UseOdrIndicator = true, | ||
AsanDtorKind | DestructorKind = AsanDtorKind::Global, | ||
AsanCtorKind | ConstructorKind = AsanCtorKind::Global ) |
Definition at line 1282 of file AddressSanitizer.cpp.
|
inlinestatic |
Definition at line 51 of file AddressSanitizer.h.
void AddressSanitizerPass::printPipeline | ( | raw_ostream & | OS, |
function_ref< StringRef(StringRef)> | MapClassName2PassName ) |
Definition at line 1270 of file AddressSanitizer.cpp.
References printPipeline().
Referenced by printPipeline().
PreservedAnalyses AddressSanitizerPass::run | ( | Module & | M, |
ModuleAnalysisManager & | AM ) |
Definition at line 1290 of file AddressSanitizer.cpp.
References llvm::PreservedAnalyses::abandon(), llvm::PreservedAnalyses::all(), llvm::GlobalValue::AvailableExternallyLinkage, llvm::checkIfAlreadyInstrumented(), ClDebugFunc, ClUseStackSafety, F, FAM, MAM, Modified, and llvm::PreservedAnalyses::none().