16 #ifndef LLVM_MCA_MICRO_OP_QUEUE_STAGE_H 17 #define LLVM_MCA_MICRO_OP_QUEUE_STAGE_H 28 unsigned NextAvailableSlotIdx;
29 unsigned CurrentInstructionSlotIdx;
34 const unsigned MaxIPC;
38 unsigned AvailableEntries;
43 bool IsZeroLatencyStage;
54 unsigned getNormalizedOpcodes(
const InstRef &
IR)
const {
55 unsigned NormalizedOpcodes =
56 std::min(static_cast<unsigned>(Buffer.
size()),
58 return NormalizedOpcodes ? NormalizedOpcodes : 1U;
61 Error moveInstructions();
65 bool ZeroLatencyStage =
true);
68 if (MaxIPC && CurrentIPC == MaxIPC)
70 unsigned NormalizedOpcodes = getNormalizedOpcodes(IR);
71 if (NormalizedOpcodes > AvailableEntries)
77 return AvailableEntries != Buffer.
size();
88 #endif // LLVM_MCA_MICRO_OP_QUEUE_STAGE_H Instruction * getInstruction()
This class represents lattice values for constants.
Error cycleEnd() override
Called once at the end of each cycle.
Optional< std::vector< StOtherPiece > > Other
Error execute(InstRef &IR) override
The primary action that this stage performs on instruction IR.
An InstRef contains both a SourceMgr index and Instruction pair.
bool isAvailable(const InstRef &IR) const override
Returns true if it can execute IR during this cycle.
const InstrDesc & getDesc() const
This file defines a stage.
A stage that simulates a queue of instruction opcodes.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Error cycleStart() override
Called once at the start of each cycle.
Lightweight error class with error context and mandatory checking.
bool hasWorkToComplete() const override
Returns true if some instructions are still executing this stage.
Statically lint checks LLVM IR