summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-mca/lib/Pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/lib/Pipeline.cpp')
-rw-r--r--llvm/tools/llvm-mca/lib/Pipeline.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-mca/lib/Pipeline.cpp b/llvm/tools/llvm-mca/lib/Pipeline.cpp
index 28696cae9aa..2d9aa6b2a31 100644
--- a/llvm/tools/llvm-mca/lib/Pipeline.cpp
+++ b/llvm/tools/llvm-mca/lib/Pipeline.cpp
@@ -31,26 +31,26 @@ void Pipeline::addEventListener(HWEventListener *Listener) {
}
bool Pipeline::hasWorkToProcess() {
- return llvm::any_of(Stages, [](const std::unique_ptr<Stage> &S) {
+ return any_of(Stages, [](const std::unique_ptr<Stage> &S) {
return S->hasWorkToComplete();
});
}
-llvm::Error Pipeline::run() {
+Error Pipeline::run() {
assert(!Stages.empty() && "Unexpected empty pipeline found!");
while (hasWorkToProcess()) {
notifyCycleBegin();
- if (llvm::Error Err = runCycle())
+ if (Error Err = runCycle())
return Err;
notifyCycleEnd();
++Cycles;
}
- return llvm::ErrorSuccess();
+ return ErrorSuccess();
}
-llvm::Error Pipeline::runCycle() {
- llvm::Error Err = llvm::ErrorSuccess();
+Error Pipeline::runCycle() {
+ Error Err = ErrorSuccess();
// Update stages before we start processing new instructions.
for (auto I = Stages.rbegin(), E = Stages.rend(); I != E && !Err; ++I) {
const std::unique_ptr<Stage> &S = *I;