|
LLVM 23.0.0git
|
The instrumentation opportunity for type cast instructions. More...
#include "llvm/Transforms/IPO/Instrumentor.h"
Public Types | |
| enum | ConfigKind { PassInput , PassInputTypeId , PassInputSize , PassResult , ReplaceResult , PassResultTypeId , PassResultSize , PassOpcode , PassId , NumConfig } |
| using | ConfigTy = BaseConfigTy<ConfigKind> |
| 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 | |
| ConfigTy | Config |
| 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 |
Additional Inherited Members | |
| Static Public Attributes inherited from llvm::instrumentor::InstructionIO< Instruction::PtrToInt, Instruction::IntToPtr, Instruction::Trunc, Instruction::ZExt, Instruction::SExt, Instruction::FPToUI, Instruction::FPToSI, Instruction::UIToFP, Instruction::SIToFP, Instruction::FPTrunc, Instruction::FPExt, Instruction::AddrSpaceCast, Instruction::BitCast > | |
| static constexpr std::array< unsigned, sizeof...(Opcodes)> | OpcodesArray |
The instrumentation opportunity for type cast instructions.
This includes PtrToInt, IntToPtr, Trunc, ZExt, SExt, FPToUI, FPToSI, UIToFP, SIToFP, FPTrunc, FPExt, AddrSpaceCast, and BitCast.
Definition at line 1035 of file Instrumentor.h.
Definition at line 1057 of file Instrumentor.h.
| Enumerator | |
|---|---|
| PassInput | |
| PassInputTypeId | |
| PassInputSize | |
| PassResult | |
| ReplaceResult | |
| PassResultTypeId | |
| PassResultSize | |
| PassOpcode | |
| PassId | |
| NumConfig | |
Definition at line 1044 of file Instrumentor.h.
|
inline |
Definition at line 1042 of file Instrumentor.h.
Referenced by populate().
|
static |
|
static |
Definition at line 1672 of file Instrumentor.cpp.
References llvm::cast(), and DL.
Referenced by init().
|
static |
|
inlineoverridevirtual |
Get the name of the instruction.
For single-opcode IOs, this defaults to the opcode name. For multi-opcode IOs, getName() MUST be overridden to provide an explicit name identifying the whole group of opcodes.
Definition at line 1060 of file Instrumentor.h.
|
static |
Definition at line 1685 of file Instrumentor.cpp.
References llvm::cast(), and DL.
Referenced by init().
|
static |
| void CastIO::init | ( | InstrumentationConfig & | IConf, |
| InstrumentorIRBuilderTy & | IIRB, | ||
| ConfigTy * | UserConfig = nullptr ) |
CastIO {.
Definition at line 1622 of file Instrumentor.cpp.
References llvm::instrumentor::InstrumentationConfig::addChoice(), llvm::instrumentor::InstrumentationOpportunity::addCommonArgs(), Config, llvm::instrumentor::InstrumentorIRBuilderTy::Ctx, getInput(), getInputSize(), getInputTypeId(), llvm::instrumentor::InstrumentationOpportunity::getLocationKind(), getOpcode(), getResultSize(), getResultTypeId(), llvm::instrumentor::InstrumentationOpportunity::getValue(), llvm::instrumentor::InstrumentationLocation::INSTRUCTION_PRE, llvm::instrumentor::InstrumentorIRBuilderTy::Int32Ty, llvm::instrumentor::InstrumentorIRBuilderTy::Int64Ty, llvm::instrumentor::InstrumentationOpportunity::IRTArgs, llvm::instrumentor::IRTArg::NONE, PassId, PassInput, PassInputSize, PassInputTypeId, PassOpcode, PassResult, PassResultSize, PassResultTypeId, llvm::instrumentor::IRTArg::POTENTIALLY_INDIRECT, llvm::instrumentor::IRTArg::REPLACABLE, ReplaceResult, and llvm::instrumentor::InstrumentationOpportunity::replaceValue().
|
inlinestatic |
Definition at line 1077 of file Instrumentor.h.
References llvm::instrumentor::InstrumentationConfig::allocate(), CastIO(), llvm::instrumentor::InstrumentationLocation::INSTRUCTION_POST, and llvm::instrumentor::InstrumentationLocation::INSTRUCTION_PRE.
Referenced by llvm::instrumentor::InstrumentationConfig::populate().
| ConfigTy llvm::instrumentor::CastIO::Config |
Definition at line 1058 of file Instrumentor.h.
Referenced by init().