llvm::instrumentor

Types

NameDescription
AllocaIO The instrumentation opportunity for alloca instructions.
BaseConfigTy Boolean option bitset with a compile-time number of bits to.
BaseConfigurationOption An option for the base configuration.
BaseInstructionIO The base class that implements basic logic for any instruction instrumentation opportunity that inherits from InstructionIO.
BasePointerIO
CastIO The instrumentation opportunity for type cast instructions.
CompareIO
FunctionIO The instrumentation opportunity for functions.
GlobalVarIO
IRTArg Helper to represent an argument to an instrumentation runtime function.
IRTCallDescription Helper to represent an instrumentation runtime function that is related to an instrumentation opportunity.
InstructionIO The common instrumentation opportunity class for instruction opportunities. Each instruction opportunity should inherit from this class and implement the virtual class members. If multiple opcodes are provided, all of them are instrumented using the same logic, and a name must be explicitly provided by overriding getName().
InstrumentationCaches Helper that represent the caches for instrumentation call arguments. The value of an argument may not need to be recomputed between the pre and post instrumentation calls.
InstrumentationConfig The class that contains the configuration for the instrumentor. It holds the information for each instrumented opportunity, including the base configuration options. Another class may inherit from this one to modify the default behavior.
InstrumentationLocation Helper to represent an instrumentation location, which is composed of an instrumentation opportunity type and a position.
InstrumentationOpportunity Base class for instrumentation opportunities. All opportunities should inherit from this class and implement the virtual class members.
InstrumentorIRBuilderTy An IR builder augmented with extra information for the instrumentor pass.
LoadIO The instrumentation opportunity for load instructions.
ModuleIO
NumericIO Instrumentation opportunity for numeric operations.
StoreIO The instrumentation opportunity for store instructions.
UnreachableIO

Type Aliases

NameDescription
GetterCallbackTy Callback type for getting/setting a value for a instrumented opportunity.{
SetterCallbackTy

Functions

NameDescription
evaluateFilter Evaluate the filter expression against the current instrumentation opportunity. Returns true if the filter passes (or is empty), false otherwise. Dynamic values (non-constants) are assumed to pass.
printRuntimeHeader Print the runtime header file that provides helper structures and functions for reading data generated by the Instrumentor pass.
printRuntimeStub Print a runtime stub file with the implementation of the instrumentation runtime functions corresponding to the instrumentation opportunities enabled.
readConfigFromJSON Read the configuration from the file with path InputFile into /p IConf.
readConfigPathsFile Read the configuration paths from the file with path InputFile into Configs.
writeConfigToJSON Write the configuration in /p IConf to the file with path OutputFile.