class ASanGlobalsMetadataAnalysis

Declaration

class ASanGlobalsMetadataAnalysis : public AnalysisInfoMixin { /* full declaration omitted */ };

Description

The ASanGlobalsMetadataAnalysis initializes and returns a GlobalsMetadata object. More specifically, ASan requires looking at all globals registered in 'llvm.asan.globals' before running, which only depends on reading module level metadata. This analysis is required to run before running the AddressSanitizerPass since it collects that metadata. The legacy pass manager equivalent of this is ASanGlobalsMetadataLegacyPass.

Declared at: llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h:80

Inherits from: AnalysisInfoMixin

Method Overview

  • public llvm::ASanGlobalsMetadataAnalysis::Result run(llvm::Module &, llvm::ModuleAnalysisManager &)

Methods

ΒΆllvm::ASanGlobalsMetadataAnalysis::Result run(
    llvm::Module&,
    llvm::ModuleAnalysisManager&)

Declared at: llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h:85

Parameters

llvm::Module&
llvm::ModuleAnalysisManager&