|
LLVM 23.0.0git
|
#include "llvm/Transforms/IPO/Instrumentor.h"
Public Types | |
| enum | ConfigKind { 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::Unreachable > | |
| static constexpr std::array< unsigned, sizeof...(Opcodes)> | OpcodesArray |
Definition at line 752 of file Instrumentor.h.
Definition at line 762 of file Instrumentor.h.
| Enumerator | |
|---|---|
| PassId | |
| NumConfig | |
Definition at line 757 of file Instrumentor.h.
|
inline |
Definition at line 753 of file Instrumentor.h.
References llvm::instrumentor::InstructionIO< Instruction::Unreachable >::InstructionIO().
Referenced by populate().
| void UnreachableIO::init | ( | InstrumentationConfig & | IConf, |
| InstrumentorIRBuilderTy & | IIRB, | ||
| ConfigTy * | UserConfig = nullptr ) |
Definition at line 1064 of file Instrumentor.cpp.
References llvm::instrumentor::InstrumentationConfig::addChoice(), llvm::instrumentor::InstrumentationOpportunity::addCommonArgs(), Config, llvm::instrumentor::InstrumentorIRBuilderTy::Ctx, and PassId.
|
inlinestatic |
Definition at line 769 of file Instrumentor.h.
References llvm::instrumentor::InstrumentationConfig::allocate(), and UnreachableIO().
Referenced by llvm::instrumentor::InstrumentationConfig::populate().
| ConfigTy llvm::instrumentor::UnreachableIO::Config |
Definition at line 763 of file Instrumentor.h.
Referenced by init().