|
LLVM 23.0.0git
|
The base class that implements basic logic for any instruction instrumentation opportunity that inherits from InstructionIO. More...
#include "llvm/Transforms/IPO/Instrumentor.h"
Public Member Functions | |
| virtual | ~BaseInstructionIO () |
| BaseInstructionIO (InstrumentationLocation::KindTy Kind) | |
| Public Member Functions inherited from llvm::instrumentor::InstrumentationOpportunity | |
| virtual | ~InstrumentationOpportunity () |
| InstrumentationOpportunity (const InstrumentationLocation IP) | |
Construct an opportunity with location IP. | |
| virtual Value * | instrument (Value *&V, bool &Changed, InstrumentationConfig &IConf, InstrumentorIRBuilderTy &IIRB, InstrumentationCaches &ICaches) |
| } | |
| virtual Type * | getRetTy (LLVMContext &Ctx) const |
| Get the return type for the instrumentation runtime function. | |
| virtual StringRef | getName () const =0 |
| Get the name of the instrumentation opportunity. | |
| virtual ArrayRef< unsigned > | getAllOpcodes () const |
| Get all opcodes for this instrumentation opportunity. | |
| InstrumentationLocation::KindTy | getLocationKind () const |
| Get the location kind of the instrumentation opportunity. | |
| void | addCommonArgs (InstrumentationConfig &IConf, LLVMContext &Ctx, bool PassId) |
| } | |
Additional Inherited Members | |
| Public Types inherited from llvm::instrumentor::InstrumentationOpportunity | |
| using | CallbackTy = std::function<bool(Value &)> |
| An optional callback that takes the value that is about to be instrumented and can return false if it should be skipped. | |
| Public Attributes inherited from llvm::instrumentor::InstrumentationOpportunity | |
| InstrumentationLocation | IP |
| The instrumentation location of the opportunity. | |
| SmallVector< IRTArg > | IRTArgs |
| The list of possible arguments for the instrumentation runtime function. | |
| bool | Enabled = true |
| Whether the opportunity is enabled. | |
| StringRef | Filter |
| A filter expression to be matched against runtime property values. | |
| CallbackTy | CB = nullptr |
The base class that implements basic logic for any instruction instrumentation opportunity that inherits from InstructionIO.
Definition at line 588 of file Instrumentor.h.
|
inlinevirtual |
Definition at line 589 of file Instrumentor.h.
|
inline |
Definition at line 591 of file Instrumentor.h.
References llvm::instrumentor::InstrumentationOpportunity::InstrumentationOpportunity().
Referenced by llvm::instrumentor::InstructionIO< Opcodes >::InstructionIO().
|
static |
Definition at line 923 of file Instrumentor.cpp.
References llvm::cast(), and I.
Referenced by llvm::instrumentor::CompareIO::init(), and llvm::instrumentor::NumericIO::init().
|
static |
Definition at line 908 of file Instrumentor.cpp.
References llvm::cast(), and I.
Referenced by llvm::instrumentor::CastIO::init(), llvm::instrumentor::CompareIO::init(), and llvm::instrumentor::NumericIO::init().
|
static |
Definition at line 930 of file Instrumentor.cpp.
References llvm::cast(), llvm::PoisonValue::get(), and I.
Referenced by llvm::instrumentor::CompareIO::init(), and llvm::instrumentor::NumericIO::init().
|
static |
Definition at line 940 of file Instrumentor.cpp.
Referenced by llvm::instrumentor::CompareIO::init(), and llvm::instrumentor::NumericIO::init().
|
static |
Definition at line 915 of file Instrumentor.cpp.
References llvm::cast(), DL, and I.
Referenced by llvm::instrumentor::CompareIO::init(), and llvm::instrumentor::NumericIO::init().