#include "llvm/MCA/HardwareUnits/RetireControlUnit.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE …
namespace llvm {
namespace mca {
RetireControlUnit::RetireControlUnit(const MCSchedModel &SM)
: … { … }
unsigned RetireControlUnit::dispatch(const InstRef &IR) { … }
const RetireControlUnit::RUToken &RetireControlUnit::getCurrentToken() const { … }
unsigned RetireControlUnit::computeNextSlotIdx() const { … }
const RetireControlUnit::RUToken &RetireControlUnit::peekNextToken() const { … }
void RetireControlUnit::consumeCurrentToken() { … }
void RetireControlUnit::onInstructionExecuted(unsigned TokenID) { … }
#ifndef NDEBUG
void RetireControlUnit::dump() const {
dbgs() << "Retire Unit: { Total ROB Entries =" << NumROBEntries
<< ", Available ROB entries=" << AvailableEntries << " }\n";
}
#endif
}
}