summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/lib/CMakeLists.txt
blob: 21b6e34cc7e17739e9fe702f7a3f637b1b80af54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include_directories(${LLVM_MCA_SOURCE_DIR}/include)

add_library(LLVMMCA
  STATIC
  Context.cpp
  HWEventListener.cpp
  HardwareUnits/HardwareUnit.cpp
  HardwareUnits/LSUnit.cpp
  HardwareUnits/RegisterFile.cpp
  HardwareUnits/ResourceManager.cpp
  HardwareUnits/RetireControlUnit.cpp
  HardwareUnits/Scheduler.cpp
  InstrBuilder.cpp
  Instruction.cpp
  Pipeline.cpp
  Stages/DispatchStage.cpp
  Stages/EntryStage.cpp
  Stages/ExecuteStage.cpp
  Stages/InstructionTables.cpp
  Stages/RetireStage.cpp
  Stages/Stage.cpp
  Support.cpp
  )

llvm_update_compile_flags(LLVMMCA)
llvm_map_components_to_libnames(libs
  MC
  Support
  )

target_link_libraries(LLVMMCA ${libs})
set_target_properties(LLVMMCA PROPERTIES FOLDER "Libraries")
OpenPOWER on IntegriCloud