/3rd_party/llvm/lib/Target/X86/CMakeLists.txt

https://code.google.com/p/softart/ · CMake · 63 lines · 55 code · 6 blank · 2 comment · 2 complexity · 8f9951de096fda19ebdcdd71ef69b109 MD5 · raw file

  1. set(LLVM_TARGET_DEFINITIONS X86.td)
  2. tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info)
  3. tablegen(LLVM X86GenDisassemblerTables.inc -gen-disassembler)
  4. tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info)
  5. tablegen(LLVM X86GenAsmWriter.inc -gen-asm-writer)
  6. tablegen(LLVM X86GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1)
  7. tablegen(LLVM X86GenAsmMatcher.inc -gen-asm-matcher)
  8. tablegen(LLVM X86GenDAGISel.inc -gen-dag-isel)
  9. tablegen(LLVM X86GenFastISel.inc -gen-fast-isel)
  10. tablegen(LLVM X86GenCallingConv.inc -gen-callingconv)
  11. tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget)
  12. add_public_tablegen_target(X86CommonTableGen)
  13. set(sources
  14. X86AsmPrinter.cpp
  15. X86COFFMachineModuleInfo.cpp
  16. X86CodeEmitter.cpp
  17. X86FastISel.cpp
  18. X86FloatingPoint.cpp
  19. X86FrameLowering.cpp
  20. X86ISelDAGToDAG.cpp
  21. X86ISelLowering.cpp
  22. X86InstrInfo.cpp
  23. X86JITInfo.cpp
  24. X86MCInstLower.cpp
  25. X86MachineFunctionInfo.cpp
  26. X86PadShortFunction.cpp
  27. X86RegisterInfo.cpp
  28. X86SelectionDAGInfo.cpp
  29. X86Subtarget.cpp
  30. X86TargetMachine.cpp
  31. X86TargetObjectFile.cpp
  32. X86TargetTransformInfo.cpp
  33. X86VZeroUpper.cpp
  34. X86FixupLEAs.cpp
  35. )
  36. if( CMAKE_CL_64 )
  37. # A workaround for a bug in cmake 2.8.3. See PR 8885.
  38. if( CMAKE_VERSION STREQUAL "2.8.3" )
  39. include(CMakeDetermineCompilerId)
  40. endif()
  41. # end of workaround.
  42. enable_language(ASM_MASM)
  43. ADD_CUSTOM_COMMAND(
  44. OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj
  45. MAIN_DEPENDENCY X86CompilationCallback_Win64.asm
  46. COMMAND ${CMAKE_ASM_MASM_COMPILER} /Fo ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj /c ${CMAKE_CURRENT_SOURCE_DIR}/X86CompilationCallback_Win64.asm
  47. )
  48. set(sources ${sources} ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj)
  49. endif()
  50. add_llvm_target(X86CodeGen ${sources})
  51. add_dependencies(LLVMX86CodeGen X86CommonTableGen intrinsics_gen)
  52. add_subdirectory(AsmParser)
  53. add_subdirectory(Disassembler)
  54. add_subdirectory(InstPrinter)
  55. add_subdirectory(MCTargetDesc)
  56. add_subdirectory(TargetInfo)
  57. add_subdirectory(Utils)