LLVM 22.0.0git
llvm::SanitizerCoveragePass Class Reference

This is the ModuleSanitizerCoverage pass used in the new pass manager. More...

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

Inheritance diagram for llvm::SanitizerCoveragePass:
[legend]

Public Member Functions

LLVM_ABI SanitizerCoveragePass (SanitizerCoverageOptions Options=SanitizerCoverageOptions(), IntrusiveRefCntPtr< vfs::FileSystem > VFS=nullptr, const std::vector< std::string > &AllowlistFiles={}, const std::vector< std::string > &BlocklistFiles={})
LLVM_ABI PreservedAnalyses run (Module &M, ModuleAnalysisManager &AM)
Public Member Functions inherited from llvm::PassInfoMixin< SanitizerCoveragePass >
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< SanitizerCoveragePass >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

This is the ModuleSanitizerCoverage pass used in the new pass manager.

The pass instruments functions for coverage, adds initialization calls to the module for trace PC guards and 8bit counters if they are requested, and appends globals to llvm.compiler.used.

Definition at line 34 of file SanitizerCoverage.h.

Constructor & Destructor Documentation

◆ SanitizerCoveragePass()

SanitizerCoveragePass::SanitizerCoveragePass ( SanitizerCoverageOptions Options = SanitizerCoverageOptions(),
IntrusiveRefCntPtr< vfs::FileSystem > VFS = nullptr,
const std::vector< std::string > & AllowlistFiles = {},
const std::vector< std::string > & BlocklistFiles = {} )
explicit

Definition at line 321 of file SanitizerCoverage.cpp.

References llvm::SpecialCaseList::createOrDie(), if(), and llvm::move().

Member Function Documentation

◆ isRequired()

bool llvm::SanitizerCoveragePass::isRequired ( )
inlinestatic

Definition at line 42 of file SanitizerCoverage.h.

◆ run()


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