LLVM 20.0.0git
|
This is a public interface to the hardware address sanitizer pass for instrumenting code to check for various memory errors at runtime, similar to AddressSanitizer but based on partial hardware assistance. More...
#include "llvm/Transforms/Instrumentation/HWAddressSanitizer.h"
Public Member Functions | |
HWAddressSanitizerPass (HWAddressSanitizerOptions Options) | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &MAM) |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Public Member Functions inherited from llvm::PassInfoMixin< HWAddressSanitizerPass > | |
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< HWAddressSanitizerPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
This is a public interface to the hardware address sanitizer pass for instrumenting code to check for various memory errors at runtime, similar to AddressSanitizer but based on partial hardware assistance.
Definition at line 39 of file HWAddressSanitizer.h.
|
inlineexplicit |
Definition at line 41 of file HWAddressSanitizer.h.
|
inlinestatic |
Definition at line 44 of file HWAddressSanitizer.h.
void HWAddressSanitizerPass::printPipeline | ( | raw_ostream & | OS, |
function_ref< StringRef(StringRef)> | MapClassName2PassName | ||
) |
Definition at line 485 of file HWAddressSanitizer.cpp.
References llvm::HWAddressSanitizerOptions::CompileKernel, OS, printPipeline(), and llvm::HWAddressSanitizerOptions::Recover.
Referenced by printPipeline().
PreservedAnalyses HWAddressSanitizerPass::run | ( | Module & | M, |
ModuleAnalysisManager & | MAM | ||
) |
Definition at line 457 of file HWAddressSanitizer.cpp.
References llvm::PreservedAnalyses::abandon(), llvm::PreservedAnalyses::all(), llvm::checkIfAlreadyInstrumented(), llvm::HWAddressSanitizerOptions::CompileKernel, llvm::HWAddressSanitizerOptions::DisableOptimization, F, FAM, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), MAM, llvm::PreservedAnalyses::none(), llvm::PreservedAnalyses::preserve(), and llvm::HWAddressSanitizerOptions::Recover.