[llvm] r335697 - [llvm-mca] Add a comment to Stage::execute and fix a spelling error. NFC.
Matt Davis via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 26 17:54:11 PDT 2018
Author: mattd
Date: Tue Jun 26 17:54:11 2018
New Revision: 335697
URL: http://llvm.org/viewvc/llvm-project?rev=335697&view=rev
Log:
[llvm-mca] Add a comment to Stage::execute and fix a spelling error. NFC.
Modified:
llvm/trunk/tools/llvm-mca/Stage.h
Modified: llvm/trunk/tools/llvm-mca/Stage.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Stage.h?rev=335697&r1=335696&r2=335697&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Stage.h (original)
+++ llvm/trunk/tools/llvm-mca/Stage.h Tue Jun 26 17:54:11 2018
@@ -45,9 +45,11 @@ public:
virtual void postExecute(const InstRef &IR) {}
/// The primary action that this stage performs.
+ /// Returning false prevents successor stages from having their 'execute'
+ /// routine called.
virtual bool execute(InstRef &IR) = 0;
- /// Add a listener to receive callbaks during the execution of this stage.
+ /// Add a listener to receive callbacks during the execution of this stage.
void addListener(HWEventListener *Listener);
};
More information about the llvm-commits
mailing list