A builder class that knows how to construct Instruction objects.
Declared in <llvm/MCA/InstrBuilder.h>
class InstrBuilder;
Every llvm-mca Instruction is described by an object of class InstrDesc. An InstrDesc describes which registers are read/written by the instruction, as well as the instruction latency and hardware resources consumed.
This class is used by the tool to construct Instructions and instruction descriptors (i.e. InstrDesc objects). Information from the machine scheduling model is used to identify processor resources that are consumed by an instruction.
| Name | Description |
|---|---|
InstrBuilder [constructor] | Construct an instruction builder for the given target and call model. |
clear | Clear cached instruction descriptors and first-call/return tracking. |
createInstruction | Create an mca::Instruction for MCI using instruments in IVec. |
setInstRecycleCallback | Set a callback which is invoked to retrieve a recycled mca::Instruction or null if there isn't any. |