Module pass that instruments functions for SanitizerCoverage.

Synopsis

Declared in <llvm/Transforms/Instrumentation/SanitizerCoverage.h>

class SanitizerCoveragePass
    : public RequiredPassInfoMixin<SanitizerCoveragePass>

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.

Base Classes

Name

Description

RequiredPassInfoMixin<SanitizerCoveragePass>

A CRTP mix‐in for passes that should not be skipped.

Member Functions

Name

Description

SanitizerCoveragePass [constructor]

Construct a SanitizerCoverage pass with the given options and lists.

run

Run SanitizerCoverage instrumentation over the module.

Static Member Functions

Name

Description

isRequired

Return true; required passes cannot be skipped.

Created with MrDocs