add_llvm_component_library(LLVMMCA CodeEmitter.cpp Context.cpp CustomBehaviour.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/InOrderIssueStage.cpp Stages/InstructionTables.cpp Stages/MicroOpQueueStage.cpp Stages/RetireStage.cpp Stages/Stage.cpp Support.cpp ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/MCA LINK_COMPONENTS MC Support )