We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3aa71 commit aa8b54eCopy full SHA for aa8b54e
CustomStages/MCADFetchDelayStage.cpp
@@ -26,6 +26,8 @@ llvm::Error MCADFetchDelayStage::forwardDueInstrs() {
26
}
27
28
llvm::Error MCADFetchDelayStage::execute(llvm::mca::InstRef &IR) {
29
+ // We (ab-)use the LastGenericEventType to create a notification when the instruction first enters this stage.
30
+ // We use this elsewhere to calculate the number of cycles between when an instruction first enters the pipeline and the end of its execution.
31
notifyEvent<llvm::mca::HWInstructionEvent>(llvm::mca::HWInstructionEvent(llvm::mca::HWInstructionEvent::LastGenericEventType, IR));
32
const llvm::mca::Instruction *I = IR.getInstruction();
33
const llvm::mca::InstrDesc &ID = I->getDesc();
0 commit comments