LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::ModuleAddressSanitizerPass Class Reference

Public interface to the address sanitizer module pass for instrumenting code to check for various memory errors. More...

#include "llvm/Transforms/Instrumentation/AddressSanitizer.h"

Inheritance diagram for llvm::ModuleAddressSanitizerPass:
Inheritance graph
[legend]
Collaboration diagram for llvm::ModuleAddressSanitizerPass:
Collaboration graph
[legend]

Public Member Functions

 ModuleAddressSanitizerPass (bool CompileKernel=false, bool Recover=false, bool UseGlobalGC=true, bool UseOdrIndicator=false, AsanDtorKind DestructorKind=AsanDtorKind::Global)
 
PreservedAnalyses run (Module &M, ModuleAnalysisManager &AM)
 
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
 
- Public Member Functions inherited from llvm::PassInfoMixin< ModuleAddressSanitizerPass >
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< ModuleAddressSanitizerPass >
static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

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 131 of file AddressSanitizer.h.

Constructor & Destructor Documentation

◆ ModuleAddressSanitizerPass()

ModuleAddressSanitizerPass::ModuleAddressSanitizerPass ( bool  CompileKernel = false,
bool  Recover = false,
bool  UseGlobalGC = true,
bool  UseOdrIndicator = false,
AsanDtorKind  DestructorKind = AsanDtorKind::Global 
)
explicit

Definition at line 1296 of file AddressSanitizer.cpp.

Member Function Documentation

◆ isRequired()

static bool llvm::ModuleAddressSanitizerPass::isRequired ( )
inlinestatic

Definition at line 141 of file AddressSanitizer.h.

◆ printPipeline()

void ModuleAddressSanitizerPass::printPipeline ( raw_ostream OS,
function_ref< StringRef(StringRef)>  MapClassName2PassName 
)

Definition at line 1286 of file AddressSanitizer.cpp.

◆ run()

PreservedAnalyses ModuleAddressSanitizerPass::run ( Module M,
ModuleAnalysisManager AM 
)

The documentation for this class was generated from the following files: