llvm::instrumentor

Types and helpers for the configurable Instrumentor instrumentation pass.

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 Instrumentation opportunity for base pointers of memory operations.
CastIO The instrumentation opportunity for type cast instructions.
CompareIO Instrumentation opportunity for compare instructions.
FunctionIO The instrumentation opportunity for functions.
GlobalVarIO Instrumentation opportunity for global variables.
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 Common base for instruction instrumentation opportunities.
InstrumentationCaches Caches for instrumentation call argument values.
InstrumentationConfig Configuration for the instrumentor pass.
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 Instrumentation opportunity for modules.
NumericIO Instrumentation opportunity for numeric operations.
StoreIO The instrumentation opportunity for store instructions.
UnreachableIO Instrumentation opportunity for unreachable instructions.

Type Aliases

NameDescription
GetterCallbackTy Callback that obtains an instrumentation argument value from IR.
SetterCallbackTy Callback that consumes a replacement value returned by the runtime.

Functions

NameDescription
evaluateFilter Evaluate a filter expression for an instrumentation opportunity.
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 IConf.
readConfigPathsFile Read the configuration paths from the file with path InputFile into Configs.
writeConfigToJSON Write the configuration in IConf to the file with path OutputFile.