#include "llvm/MCA/Instruction.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
namespace llvm {
namespace mca {
void WriteState::writeStartEvent(unsigned IID, MCPhysReg RegID,
unsigned Cycles) { … }
void ReadState::writeStartEvent(unsigned IID, MCPhysReg RegID,
unsigned Cycles) { … }
void WriteState::onInstructionIssued(unsigned IID) { … }
void WriteState::addUser(unsigned IID, ReadState *User, int ReadAdvance) { … }
void WriteState::addUser(unsigned IID, WriteState *User) { … }
void WriteState::cycleEvent() { … }
void ReadState::cycleEvent() { … }
#ifndef NDEBUG
void WriteState::dump() const {
dbgs() << "{ OpIdx=" << WD->OpIndex << ", Lat=" << getLatency() << ", RegID "
<< getRegisterID() << ", Cycles Left=" << getCyclesLeft() << " }";
}
#endif
const CriticalDependency &Instruction::computeCriticalRegDep() { … }
void Instruction::reset() { … }
void Instruction::dispatch(unsigned RCUToken) { … }
void Instruction::execute(unsigned IID) { … }
void Instruction::forceExecuted() { … }
bool Instruction::updatePending() { … }
bool Instruction::updateDispatched() { … }
void Instruction::update() { … }
void Instruction::cycleEvent() { … }
}
}