diff options
Diffstat (limited to 'llvm/tools/llvm-mca/lib')
| -rw-r--r-- | llvm/tools/llvm-mca/lib/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | llvm/tools/llvm-mca/lib/Context.cpp | 4 | ||||
| -rw-r--r-- | llvm/tools/llvm-mca/lib/Stages/EntryStage.cpp (renamed from llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp) | 16 | 
3 files changed, 11 insertions, 11 deletions
diff --git a/llvm/tools/llvm-mca/lib/CMakeLists.txt b/llvm/tools/llvm-mca/lib/CMakeLists.txt index 359a7d49d49..21b6e34cc7e 100644 --- a/llvm/tools/llvm-mca/lib/CMakeLists.txt +++ b/llvm/tools/llvm-mca/lib/CMakeLists.txt @@ -14,8 +14,8 @@ add_library(LLVMMCA    Instruction.cpp    Pipeline.cpp    Stages/DispatchStage.cpp +  Stages/EntryStage.cpp    Stages/ExecuteStage.cpp -  Stages/FetchStage.cpp    Stages/InstructionTables.cpp    Stages/RetireStage.cpp    Stages/Stage.cpp diff --git a/llvm/tools/llvm-mca/lib/Context.cpp b/llvm/tools/llvm-mca/lib/Context.cpp index 5b6f52478dd..6774a57d29b 100644 --- a/llvm/tools/llvm-mca/lib/Context.cpp +++ b/llvm/tools/llvm-mca/lib/Context.cpp @@ -20,8 +20,8 @@  #include "HardwareUnits/RetireControlUnit.h"  #include "HardwareUnits/Scheduler.h"  #include "Stages/DispatchStage.h" +#include "Stages/EntryStage.h"  #include "Stages/ExecuteStage.h" -#include "Stages/FetchStage.h"  #include "Stages/RetireStage.h"  namespace llvm { @@ -40,7 +40,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,    auto HWS = llvm::make_unique<Scheduler>(SM, LSU.get());    // Create the pipeline stages. -  auto Fetch = llvm::make_unique<FetchStage>(SrcMgr); +  auto Fetch = llvm::make_unique<EntryStage>(SrcMgr);    auto Dispatch = llvm::make_unique<DispatchStage>(STI, MRI, Opts.DispatchWidth,                                                     *RCU, *PRF);    auto Execute = llvm::make_unique<ExecuteStage>(*HWS); diff --git a/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp b/llvm/tools/llvm-mca/lib/Stages/EntryStage.cpp index 6e91dd6121d..929d51e824c 100644 --- a/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp +++ b/llvm/tools/llvm-mca/lib/Stages/EntryStage.cpp @@ -1,4 +1,4 @@ -//===---------------------- FetchStage.cpp ----------------------*- C++ -*-===// +//===---------------------- EntryStage.cpp ----------------------*- C++ -*-===//  //  //                     The LLVM Compiler Infrastructure  // @@ -13,21 +13,21 @@  ///  //===----------------------------------------------------------------------===// -#include "Stages/FetchStage.h" +#include "Stages/EntryStage.h"  #include "Instruction.h"  namespace llvm {  namespace mca { -bool FetchStage::hasWorkToComplete() const { return CurrentInstruction; } +bool EntryStage::hasWorkToComplete() const { return CurrentInstruction; } -bool FetchStage::isAvailable(const InstRef & /* unused */) const { +bool EntryStage::isAvailable(const InstRef & /* unused */) const {    if (CurrentInstruction)      return checkNextStage(CurrentInstruction);    return false;  } -void FetchStage::getNextInstruction() { +void EntryStage::getNextInstruction() {    assert(!CurrentInstruction && "There is already an instruction to process!");    if (!SM.hasNext())      return; @@ -38,7 +38,7 @@ void FetchStage::getNextInstruction() {    SM.updateNext();  } -llvm::Error FetchStage::execute(InstRef & /*unused */) { +llvm::Error EntryStage::execute(InstRef & /*unused */) {    assert(CurrentInstruction && "There is no instruction to process!");    if (llvm::Error Val = moveToTheNextStage(CurrentInstruction))      return Val; @@ -49,13 +49,13 @@ llvm::Error FetchStage::execute(InstRef & /*unused */) {    return llvm::ErrorSuccess();  } -llvm::Error FetchStage::cycleStart() { +llvm::Error EntryStage::cycleStart() {    if (!CurrentInstruction)      getNextInstruction();    return llvm::ErrorSuccess();  } -llvm::Error FetchStage::cycleEnd() { +llvm::Error EntryStage::cycleEnd() {    // Find the first instruction which hasn't been retired.    const InstMap::iterator It =        llvm::find_if(Instructions, [](const InstMap::value_type &KeyValuePair) {  | 

