LLVM  15.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 (const AddressSanitizerOptions &Options, 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 41 of file AddressSanitizer.h.

Constructor & Destructor Documentation

◆ ModuleAddressSanitizerPass()

ModuleAddressSanitizerPass::ModuleAddressSanitizerPass ( const AddressSanitizerOptions Options,
bool  UseGlobalGC = true,
bool  UseOdrIndicator = false,
AsanDtorKind  DestructorKind = AsanDtorKind::Global 
)

Definition at line 1116 of file AddressSanitizer.cpp.

Member Function Documentation

◆ isRequired()

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

Definition at line 51 of file AddressSanitizer.h.

◆ printPipeline()

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

◆ run()

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

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