class InstructionBase
Declaration
class InstructionBase { /* full declaration omitted */ };
Description
Base class for instructions consumed by the simulation pipeline. This class tracks data dependencies as well as generic properties of the instruction.
Declared at: llvm/include/llvm/MCA/Instruction.h:395
Method Overview
- public InstructionBase(const llvm::mca::InstrDesc & D)
- public SmallVectorImpl<llvm::mca::WriteState> & getDefs()
- public const ArrayRef<llvm::mca::WriteState> getDefs() const
- public const llvm::mca::InstrDesc & getDesc() const
- public unsigned int getLatency() const
- public unsigned int getNumMicroOps() const
- public unsigned int getNumUsers() const
- public SmallVectorImpl<llvm::mca::ReadState> & getUses()
- public const ArrayRef<llvm::mca::ReadState> getUses() const
- public bool hasDependentUsers() const
- public bool isMemOp() const
- public bool isOptimizableMove() const
- public void setOptimizableMove()
Methods
¶InstructionBase(const llvm::mca::InstrDesc& D)
InstructionBase(const llvm::mca::InstrDesc& D)
Declared at: llvm/include/llvm/MCA/Instruction.h:412
Parameters
- const llvm::mca::InstrDesc& D
¶SmallVectorImpl<llvm::mca::WriteState>& getDefs()
SmallVectorImpl<llvm::mca::WriteState>& getDefs()
Declared at: llvm/include/llvm/MCA/Instruction.h:414
¶const ArrayRef<llvm::mca::WriteState> getDefs()
const
const ArrayRef<llvm::mca::WriteState> getDefs()
const
Declared at: llvm/include/llvm/MCA/Instruction.h:415
¶const llvm::mca::InstrDesc& getDesc() const
const llvm::mca::InstrDesc& getDesc() const
Declared at: llvm/include/llvm/MCA/Instruction.h:418
¶unsigned int getLatency() const
unsigned int getLatency() const
Declared at: llvm/include/llvm/MCA/Instruction.h:420
¶unsigned int getNumMicroOps() const
unsigned int getNumMicroOps() const
Declared at: llvm/include/llvm/MCA/Instruction.h:421
¶unsigned int getNumUsers() const
unsigned int getNumUsers() const
Declared at: llvm/include/llvm/MCA/Instruction.h:428
¶SmallVectorImpl<llvm::mca::ReadState>& getUses()
SmallVectorImpl<llvm::mca::ReadState>& getUses()
Declared at: llvm/include/llvm/MCA/Instruction.h:416
¶const ArrayRef<llvm::mca::ReadState> getUses()
const
const ArrayRef<llvm::mca::ReadState> getUses()
const
Declared at: llvm/include/llvm/MCA/Instruction.h:417
¶bool hasDependentUsers() const
bool hasDependentUsers() const
Declared at: llvm/include/llvm/MCA/Instruction.h:423
¶bool isMemOp() const
bool isMemOp() const
Declared at: llvm/include/llvm/MCA/Instruction.h:438
¶bool isOptimizableMove() const
bool isOptimizableMove() const
Declared at: llvm/include/llvm/MCA/Instruction.h:436
¶void setOptimizableMove()
void setOptimizableMove()
Declared at: llvm/include/llvm/MCA/Instruction.h:437