class ModuleSanitizerCoveragePass

Declaration

class ModuleSanitizerCoveragePass : public PassInfoMixin { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h:29

Inherits from: PassInfoMixin

Method Overview

  • public ModuleSanitizerCoveragePass(llvm::SanitizerCoverageOptions Options = llvm::SanitizerCoverageOptions())
  • public llvm::PreservedAnalyses run(llvm::Module & M, llvm::ModuleAnalysisManager & AM)

Methods

ModuleSanitizerCoveragePass(
    llvm::SanitizerCoverageOptions Options =
        llvm::SanitizerCoverageOptions())

Declared at: llvm/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h:32

Parameters

llvm::SanitizerCoverageOptions Options = llvm::SanitizerCoverageOptions()

llvm::PreservedAnalyses run(
    llvm::Module& M,
    llvm::ModuleAnalysisManager& AM)

Declared at: llvm/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h:35

Parameters

llvm::Module& M
llvm::ModuleAnalysisManager& AM