[X86] Add xrstors/xsavec/xsaves/clflushopt/clwb/pcommit instructions
[oota-llvm.git] / lib / Target / CMakeLists.txt
index 4d02d1e4a5b9e24beeb13e92aaa7176319c277e1..d0f10a19a0f4de4cf78c9a8aa952a722af5d823e 100644 (file)
@@ -1,16 +1,15 @@
+list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
+
 add_llvm_library(LLVMTarget
-  Mangler.cpp
-  SubtargetFeature.cpp
   Target.cpp
-  TargetAsmInfo.cpp
-  TargetAsmLexer.cpp
-  TargetData.cpp
-  TargetELFWriterInfo.cpp
-  TargetFrameLowering.cpp
-  TargetInstrInfo.cpp
   TargetIntrinsicInfo.cpp
   TargetLoweringObjectFile.cpp
   TargetMachine.cpp
-  TargetRegisterInfo.cpp
-  TargetSubtarget.cpp
+  TargetMachineC.cpp
+  TargetSubtargetInfo.cpp
   )
+
+foreach(t ${LLVM_TARGETS_TO_BUILD})
+  message(STATUS "Targeting ${t}")
+  add_subdirectory(${t})
+endforeach()