LLVM 23.0.0git
llvm::InstrumentorPass Class Reference

The Instrumentor pass. More...

#include "llvm/Transforms/IPO/Instrumentor.h"

Inheritance diagram for llvm::InstrumentorPass:
[legend]

Public Member Functions

 InstrumentorPass (InstrumentationConfig *IC=nullptr, InstrumentorIRBuilderTy *IIRB=nullptr)
 Construct an instrumentor pass that will use the instrumentation configuration IC and the IR builder IIRB.
PreservedAnalyses run (Module &M, ModuleAnalysisManager &MAM)
Public Member Functions inherited from llvm::PassInfoMixin< InstrumentorPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Additional Inherited Members

Static Public Member Functions inherited from llvm::PassInfoMixin< InstrumentorPass >
static bool isRequired ()
Static Public Member Functions inherited from llvm::detail::InfoMixin< InstrumentorPass >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

The Instrumentor pass.

Definition at line 681 of file Instrumentor.h.

Constructor & Destructor Documentation

◆ InstrumentorPass()

llvm::InstrumentorPass::InstrumentorPass ( InstrumentationConfig * IC = nullptr,
InstrumentorIRBuilderTy * IIRB = nullptr )
inline

Construct an instrumentor pass that will use the instrumentation configuration IC and the IR builder IIRB.

If an IR builder is not provided, a default builder is used. When the configuration is not provided, it is read from the config file if available and otherwise a default configuration is used.

Definition at line 698 of file Instrumentor.h.

Member Function Documentation

◆ run()

PreservedAnalyses InstrumentorPass::run ( Module & M,
ModuleAnalysisManager & MAM )

Definition at line 274 of file Instrumentor.cpp.

References assert(), llvm::errs(), MAM, and llvm::verifyModule().


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