Skip to content

Commit

Permalink
add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Nov 16, 2024
1 parent ca3aa71 commit aa8b54e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CustomStages/MCADFetchDelayStage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ llvm::Error MCADFetchDelayStage::forwardDueInstrs() {
}

llvm::Error MCADFetchDelayStage::execute(llvm::mca::InstRef &IR) {
// We (ab-)use the LastGenericEventType to create a notification when the instruction first enters this stage.
// We use this elsewhere to calculate the number of cycles between when an instruction first enters the pipeline and the end of its execution.
notifyEvent<llvm::mca::HWInstructionEvent>(llvm::mca::HWInstructionEvent(llvm::mca::HWInstructionEvent::LastGenericEventType, IR));
const llvm::mca::Instruction *I = IR.getInstruction();
const llvm::mca::InstrDesc &ID = I->getDesc();
Expand Down

0 comments on commit aa8b54e

Please sign in to comment.