1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

[llvm-mca] Move llvm-mca library to llvm/lib/MCA.

Summary: See PR38731.

Reviewers: andreadb

Subscribers: mgorny, javed.absar, tschuett, gbedwell, andreadb, RKSimon, llvm-commits

Differential Revision: https://reviews.llvm.org/D55557

llvm-svn: 349332
This commit is contained in:
Clement Courbet 2018-12-17 08:08:31 +00:00
parent ee8ca8fe5e
commit 9093bbf39e
48 changed files with 145 additions and 152 deletions

View File

@ -71,7 +71,7 @@ D: Loop Strength Reduction, Register allocators
N: Andrea Di Biagio
E: andrea.dibiagio@sony.com
E: andrea.dibiagio@gmail.com
D: llvm-mca
D: MCA, llvm-mca
N: Duncan P. N. Exon Smith
E: dexonsmith@apple.com

View File

@ -15,14 +15,15 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_CONTEXT_H
#define LLVM_TOOLS_LLVM_MCA_CONTEXT_H
#include "HardwareUnits/HardwareUnit.h"
#include "InstrBuilder.h"
#include "Pipeline.h"
#include "SourceMgr.h"
#ifndef LLVM_MCA_CONTEXT_H
#define LLVM_MCA_CONTEXT_H
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MCA/HardwareUnits/HardwareUnit.h"
#include "llvm/MCA/InstrBuilder.h"
#include "llvm/MCA/Pipeline.h"
#include "llvm/MCA/SourceMgr.h"
#include <memory>
namespace llvm {
@ -65,4 +66,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_CONTEXT_H
#endif // LLVM_MCA_CONTEXT_H

View File

@ -12,12 +12,12 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_HWEVENTLISTENER_H
#define LLVM_TOOLS_LLVM_MCA_HWEVENTLISTENER_H
#ifndef LLVM_MCA_HWEVENTLISTENER_H
#define LLVM_MCA_HWEVENTLISTENER_H
#include "Instruction.h"
#include "Support.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/MCA/Support.h"
namespace llvm {
namespace mca {
@ -153,4 +153,4 @@ private:
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_HWEVENTLISTENER_H

View File

@ -13,8 +13,8 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_HARDWAREUNIT_H
#define LLVM_TOOLS_LLVM_MCA_HARDWAREUNIT_H
#ifndef LLVM_MCA_HARDWAREUNIT_H
#define LLVM_MCA_HARDWAREUNIT_H
namespace llvm {
namespace mca {
@ -30,4 +30,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_HARDWAREUNIT_H
#endif // LLVM_MCA_HARDWAREUNIT_H

View File

@ -13,12 +13,12 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_LSUNIT_H
#define LLVM_TOOLS_LLVM_MCA_LSUNIT_H
#ifndef LLVM_MCA_LSUNIT_H
#define LLVM_MCA_LSUNIT_H
#include "HardwareUnits/HardwareUnit.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/MC/MCSchedule.h"
#include "llvm/MCA/HardwareUnits/HardwareUnit.h"
namespace llvm {
namespace mca {
@ -204,4 +204,4 @@ public:
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_LSUNIT_H

View File

@ -14,14 +14,14 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_REGISTER_FILE_H
#define LLVM_TOOLS_LLVM_MCA_REGISTER_FILE_H
#ifndef LLVM_MCA_REGISTER_FILE_H
#define LLVM_MCA_REGISTER_FILE_H
#include "HardwareUnits/HardwareUnit.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSchedule.h"
#include "llvm/MCA/HardwareUnits/HardwareUnit.h"
#include "llvm/Support/Error.h"
namespace llvm {
@ -236,4 +236,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_REGISTER_FILE_H
#endif // LLVM_MCA_REGISTER_FILE_H

View File

@ -13,15 +13,15 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_RESOURCE_MANAGER_H
#define LLVM_TOOLS_LLVM_MCA_RESOURCE_MANAGER_H
#ifndef LLVM_MCA_RESOURCE_MANAGER_H
#define LLVM_MCA_RESOURCE_MANAGER_H
#include "Instruction.h"
#include "Support.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MC/MCSchedule.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/MCA/Support.h"
namespace llvm {
namespace mca {
@ -357,4 +357,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_RESOURCE_MANAGER_H
#endif // LLVM_MCA_RESOURCE_MANAGER_H

View File

@ -12,12 +12,12 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_RETIRE_CONTROL_UNIT_H
#define LLVM_TOOLS_LLVM_MCA_RETIRE_CONTROL_UNIT_H
#ifndef LLVM_MCA_RETIRE_CONTROL_UNIT_H
#define LLVM_MCA_RETIRE_CONTROL_UNIT_H
#include "HardwareUnits/HardwareUnit.h"
#include "Instruction.h"
#include "llvm/MC/MCSchedule.h"
#include "llvm/MCA/HardwareUnits/HardwareUnit.h"
#include "llvm/MCA/Instruction.h"
#include <vector>
namespace llvm {
@ -101,4 +101,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_RETIRE_CONTROL_UNIT_H
#endif // LLVM_MCA_RETIRE_CONTROL_UNIT_H

View File

@ -12,15 +12,15 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_SCHEDULER_H
#define LLVM_TOOLS_LLVM_MCA_SCHEDULER_H
#ifndef LLVM_MCA_SCHEDULER_H
#define LLVM_MCA_SCHEDULER_H
#include "HardwareUnits/HardwareUnit.h"
#include "HardwareUnits/LSUnit.h"
#include "ResourceManager.h"
#include "Support.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MC/MCSchedule.h"
#include "llvm/MCA/HardwareUnits/HardwareUnit.h"
#include "llvm/MCA/HardwareUnits/LSUnit.h"
#include "llvm/MCA/HardwareUnits/ResourceManager.h"
#include "llvm/MCA/Support.h"
namespace llvm {
namespace mca {
@ -211,4 +211,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_SCHEDULER_H
#endif // LLVM_MCA_SCHEDULER_H

View File

@ -12,15 +12,15 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_INSTRBUILDER_H
#define LLVM_TOOLS_LLVM_MCA_INSTRBUILDER_H
#ifndef LLVM_MCA_INSTRBUILDER_H
#define LLVM_MCA_INSTRBUILDER_H
#include "Instruction.h"
#include "Support.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/MCA/Support.h"
#include "llvm/Support/Error.h"
namespace llvm {
@ -74,4 +74,4 @@ public:
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_INSTRBUILDER_H

View File

@ -13,8 +13,8 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
#define LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
#ifndef LLVM_MCA_INSTRUCTION_H
#define LLVM_MCA_INSTRUCTION_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
@ -539,4 +539,4 @@ public:
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_INSTRUCTION_H

View File

@ -13,12 +13,12 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_PIPELINE_H
#define LLVM_TOOLS_LLVM_MCA_PIPELINE_H
#ifndef LLVM_MCA_PIPELINE_H
#define LLVM_MCA_PIPELINE_H
#include "HardwareUnits/Scheduler.h"
#include "Stages/Stage.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MCA/HardwareUnits/Scheduler.h"
#include "llvm/MCA/Stages/Stage.h"
#include "llvm/Support/Error.h"
namespace llvm {
@ -76,4 +76,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_PIPELINE_H
#endif // LLVM_MCA_PIPELINE_H

View File

@ -13,8 +13,8 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_SOURCEMGR_H
#define LLVM_TOOLS_LLVM_MCA_SOURCEMGR_H
#ifndef LLVM_MCA_SOURCEMGR_H
#define LLVM_MCA_SOURCEMGR_H
#include "llvm/ADT/ArrayRef.h"
@ -54,4 +54,4 @@ public:
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_SOURCEMGR_H

View File

@ -16,16 +16,16 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_DISPATCH_STAGE_H
#define LLVM_TOOLS_LLVM_MCA_DISPATCH_STAGE_H
#ifndef LLVM_MCA_DISPATCH_STAGE_H
#define LLVM_MCA_DISPATCH_STAGE_H
#include "HWEventListener.h"
#include "HardwareUnits/RegisterFile.h"
#include "HardwareUnits/RetireControlUnit.h"
#include "Instruction.h"
#include "Stages/Stage.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MCA/HWEventListener.h"
#include "llvm/MCA/HardwareUnits/RegisterFile.h"
#include "llvm/MCA/HardwareUnits/RetireControlUnit.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/MCA/Stages/Stage.h"
namespace llvm {
namespace mca {
@ -90,4 +90,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_DISPATCH_STAGE_H
#endif // LLVM_MCA_DISPATCH_STAGE_H

View File

@ -14,12 +14,12 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_ENTRY_STAGE_H
#define LLVM_TOOLS_LLVM_MCA_ENTRY_STAGE_H
#ifndef LLVM_MCA_ENTRY_STAGE_H
#define LLVM_MCA_ENTRY_STAGE_H
#include "SourceMgr.h"
#include "Stages/Stage.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MCA/SourceMgr.h"
#include "llvm/MCA/Stages/Stage.h"
namespace llvm {
namespace mca {
@ -49,4 +49,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_FETCH_STAGE_H
#endif // LLVM_MCA_FETCH_STAGE_H

View File

@ -15,13 +15,13 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_EXECUTE_STAGE_H
#define LLVM_TOOLS_LLVM_MCA_EXECUTE_STAGE_H
#ifndef LLVM_MCA_EXECUTE_STAGE_H
#define LLVM_MCA_EXECUTE_STAGE_H
#include "HardwareUnits/Scheduler.h"
#include "Instruction.h"
#include "Stages/Stage.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/MCA/HardwareUnits/Scheduler.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/MCA/Stages/Stage.h"
namespace llvm {
namespace mca {
@ -77,4 +77,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_EXECUTE_STAGE_H
#endif // LLVM_MCA_EXECUTE_STAGE_H

View File

@ -14,14 +14,14 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_INSTRUCTIONTABLES_H
#define LLVM_TOOLS_LLVM_MCA_INSTRUCTIONTABLES_H
#ifndef LLVM_MCA_INSTRUCTIONTABLES_H
#define LLVM_MCA_INSTRUCTIONTABLES_H
#include "HardwareUnits/Scheduler.h"
#include "Stages/Stage.h"
#include "Support.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MC/MCSchedule.h"
#include "llvm/MCA/HardwareUnits/Scheduler.h"
#include "llvm/MCA/Stages/Stage.h"
#include "llvm/MCA/Support.h"
namespace llvm {
namespace mca {
@ -42,4 +42,4 @@ public:
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_INSTRUCTIONTABLES_H

View File

@ -14,12 +14,12 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_RETIRE_STAGE_H
#define LLVM_TOOLS_LLVM_MCA_RETIRE_STAGE_H
#ifndef LLVM_MCA_RETIRE_STAGE_H
#define LLVM_MCA_RETIRE_STAGE_H
#include "HardwareUnits/RegisterFile.h"
#include "HardwareUnits/RetireControlUnit.h"
#include "Stages/Stage.h"
#include "llvm/MCA/HardwareUnits/RegisterFile.h"
#include "llvm/MCA/HardwareUnits/RetireControlUnit.h"
#include "llvm/MCA/Stages/Stage.h"
namespace llvm {
namespace mca {
@ -45,4 +45,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_RETIRE_STAGE_H
#endif // LLVM_MCA_RETIRE_STAGE_H

View File

@ -13,10 +13,10 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_STAGE_H
#define LLVM_TOOLS_LLVM_MCA_STAGE_H
#ifndef LLVM_MCA_STAGE_H
#define LLVM_MCA_STAGE_H
#include "HWEventListener.h"
#include "llvm/MCA/HWEventListener.h"
#include "llvm/Support/Error.h"
#include <set>
@ -85,4 +85,4 @@ public:
} // namespace mca
} // namespace llvm
#endif // LLVM_TOOLS_LLVM_MCA_STAGE_H
#endif // LLVM_MCA_STAGE_H

View File

@ -12,8 +12,8 @@
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCA_SUPPORT_H
#define LLVM_TOOLS_LLVM_MCA_SUPPORT_H
#ifndef LLVM_MCA_SUPPORT_H
#define LLVM_MCA_SUPPORT_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
@ -116,4 +116,4 @@ double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth,
} // namespace mca
} // namespace llvm
#endif
#endif // LLVM_MCA_SUPPORT_H

View File

@ -12,6 +12,7 @@ add_subdirectory(Linker)
add_subdirectory(Analysis)
add_subdirectory(LTO)
add_subdirectory(MC)
add_subdirectory(MCA)
add_subdirectory(Object)
add_subdirectory(ObjectYAML)
add_subdirectory(Option)

View File

@ -31,6 +31,7 @@ subdirectories =
IRReader
LTO
MC
MCA
Object
BinaryFormat
ObjectYAML

View File

@ -1,7 +1,4 @@
include_directories(${LLVM_MCA_SOURCE_DIR}/include)
add_library(LLVMMCA
STATIC
add_llvm_library(LLVMMCA
Context.cpp
HWEventListener.cpp
HardwareUnits/HardwareUnit.cpp
@ -20,13 +17,7 @@ add_library(LLVMMCA
Stages/RetireStage.cpp
Stages/Stage.cpp
Support.cpp
)
llvm_update_compile_flags(LLVMMCA)
llvm_map_components_to_libnames(libs
MC
Support
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/MCA
)
target_link_libraries(LLVMMCA ${libs})
set_target_properties(LLVMMCA PROPERTIES FOLDER "Libraries")

View File

@ -15,14 +15,14 @@
///
//===----------------------------------------------------------------------===//
#include "Context.h"
#include "HardwareUnits/RegisterFile.h"
#include "HardwareUnits/RetireControlUnit.h"
#include "HardwareUnits/Scheduler.h"
#include "Stages/DispatchStage.h"
#include "Stages/EntryStage.h"
#include "Stages/ExecuteStage.h"
#include "Stages/RetireStage.h"
#include "llvm/MCA/Context.h"
#include "llvm/MCA/HardwareUnits/RegisterFile.h"
#include "llvm/MCA/HardwareUnits/RetireControlUnit.h"
#include "llvm/MCA/HardwareUnits/Scheduler.h"
#include "llvm/MCA/Stages/DispatchStage.h"
#include "llvm/MCA/Stages/EntryStage.h"
#include "llvm/MCA/Stages/ExecuteStage.h"
#include "llvm/MCA/Stages/RetireStage.h"
namespace llvm {
namespace mca {

View File

@ -12,7 +12,7 @@
///
//===----------------------------------------------------------------------===//
#include "HWEventListener.h"
#include "llvm/MCA/HWEventListener.h"
namespace llvm {
namespace mca {

View File

@ -13,7 +13,7 @@
///
//===----------------------------------------------------------------------===//
#include "HardwareUnits/HardwareUnit.h"
#include "llvm/MCA/HardwareUnits/HardwareUnit.h"
namespace llvm {
namespace mca {

View File

@ -12,8 +12,8 @@
///
//===----------------------------------------------------------------------===//
#include "HardwareUnits/LSUnit.h"
#include "Instruction.h"
#include "llvm/MCA/HardwareUnits/LSUnit.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

View File

@ -14,8 +14,8 @@
///
//===----------------------------------------------------------------------===//
#include "HardwareUnits/RegisterFile.h"
#include "Instruction.h"
#include "llvm/MCA/HardwareUnits/RegisterFile.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "llvm-mca"

View File

@ -13,8 +13,8 @@
///
//===----------------------------------------------------------------------===//
#include "HardwareUnits/ResourceManager.h"
#include "Support.h"
#include "llvm/MCA/HardwareUnits/ResourceManager.h"
#include "llvm/MCA/Support.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
@ -54,7 +54,7 @@ void DefaultResourceStrategy::used(uint64_t Mask) {
RemovedFromNextInSequence |= Mask;
return;
}
NextInSequenceMask &= (~Mask);
if (NextInSequenceMask)
return;

View File

@ -12,7 +12,7 @@
///
//===----------------------------------------------------------------------===//
#include "HardwareUnits/RetireControlUnit.h"
#include "llvm/MCA/HardwareUnits/RetireControlUnit.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "llvm-mca"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "HardwareUnits/Scheduler.h"
#include "llvm/MCA/HardwareUnits/Scheduler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

View File

@ -12,7 +12,7 @@
///
//===----------------------------------------------------------------------===//
#include "InstrBuilder.h"
#include "llvm/MCA/InstrBuilder.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/MC/MCInst.h"

View File

@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
#include "Instruction.h"
#include "llvm/MCA/Instruction.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

View File

@ -13,8 +13,8 @@
///
//===----------------------------------------------------------------------===//
#include "Pipeline.h"
#include "HWEventListener.h"
#include "llvm/MCA/Pipeline.h"
#include "llvm/MCA/HWEventListener.h"
#include "llvm/Support/Debug.h"
namespace llvm {

View File

@ -16,9 +16,9 @@
///
//===----------------------------------------------------------------------===//
#include "Stages/DispatchStage.h"
#include "HWEventListener.h"
#include "HardwareUnits/Scheduler.h"
#include "llvm/MCA/Stages/DispatchStage.h"
#include "llvm/MCA/HWEventListener.h"
#include "llvm/MCA/HardwareUnits/Scheduler.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "llvm-mca"

View File

@ -13,8 +13,8 @@
///
//===----------------------------------------------------------------------===//
#include "Stages/EntryStage.h"
#include "Instruction.h"
#include "llvm/MCA/Stages/EntryStage.h"
#include "llvm/MCA/Instruction.h"
namespace llvm {
namespace mca {

View File

@ -15,7 +15,7 @@
///
//===----------------------------------------------------------------------===//
#include "Stages/ExecuteStage.h"
#include "llvm/MCA/Stages/ExecuteStage.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"

View File

@ -15,7 +15,7 @@
///
//===----------------------------------------------------------------------===//
#include "Stages/InstructionTables.h"
#include "llvm/MCA/Stages/InstructionTables.h"
namespace llvm {
namespace mca {

View File

@ -14,8 +14,8 @@
///
//===----------------------------------------------------------------------===//
#include "Stages/RetireStage.h"
#include "HWEventListener.h"
#include "llvm/MCA/Stages/RetireStage.h"
#include "llvm/MCA/HWEventListener.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "llvm-mca"

View File

@ -13,7 +13,7 @@
///
//===----------------------------------------------------------------------===//
#include "Stages/Stage.h"
#include "llvm/MCA/Stages/Stage.h"
namespace llvm {
namespace mca {

View File

@ -13,7 +13,7 @@
///
//===----------------------------------------------------------------------===//
#include "Support.h"
#include "llvm/MCA/Support.h"
#include "llvm/MC/MCSchedule.h"
namespace llvm {

View File

@ -6,6 +6,7 @@ set(LLVM_LINK_COMPONENTS
AllTargetsDescs
AllTargetsDisassemblers
AllTargetsInfos
MCA
MC
MCParser
Support
@ -28,5 +29,3 @@ add_llvm_tool(llvm-mca
)
set(LLVM_MCA_SOURCE_DIR ${CURRENT_SOURCE_DIR})
add_subdirectory(lib)
target_link_libraries(llvm-mca PRIVATE LLVMMCA)

View File

@ -19,4 +19,4 @@
type = Tool
name = llvm-mca
parent = Tools
required_libraries = MC MCParser Support all-targets
required_libraries = MC MCA MCParser Support all-targets

View File

@ -17,9 +17,9 @@
#ifndef LLVM_TOOLS_LLVM_MCA_PIPELINEPRINTER_H
#define LLVM_TOOLS_LLVM_MCA_PIPELINEPRINTER_H
#include "Pipeline.h"
#include "Views/View.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MCA/Pipeline.h"
#include "llvm/Support/raw_ostream.h"
#define DEBUG_TYPE "llvm-mca"

View File

@ -14,8 +14,8 @@
//===----------------------------------------------------------------------===//
#include "Views/SummaryView.h"
#include "Support.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MCA/Support.h"
#include "llvm/Support/Format.h"
namespace llvm {

View File

@ -16,7 +16,7 @@
#ifndef LLVM_TOOLS_LLVM_MCA_VIEW_H
#define LLVM_TOOLS_LLVM_MCA_VIEW_H
#include "HWEventListener.h"
#include "llvm/MCA/HWEventListener.h"
#include "llvm/Support/raw_ostream.h"
namespace llvm {

View File

@ -24,8 +24,6 @@
#include "CodeRegion.h"
#include "CodeRegionGenerator.h"
#include "PipelinePrinter.h"
#include "Stages/EntryStage.h"
#include "Stages/InstructionTables.h"
#include "Views/DispatchStatistics.h"
#include "Views/InstructionInfoView.h"
#include "Views/RegisterFileStatistics.h"
@ -34,13 +32,15 @@
#include "Views/SchedulerStatistics.h"
#include "Views/SummaryView.h"
#include "Views/TimelineView.h"
#include "include/Context.h"
#include "include/Pipeline.h"
#include "include/Support.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MCA/Context.h"
#include "llvm/MCA/Pipeline.h"
#include "llvm/MCA/Stages/EntryStage.h"
#include "llvm/MCA/Stages/InstructionTables.h"
#include "llvm/MCA/Support.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ErrorOr.h"