Home | History | Annotate | Download | only in X86
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 x86_codegen_TBLGEN_TABLES := \
      4   X86GenAsmMatcher.inc \
      5   X86GenAsmWriter.inc \
      6   X86GenAsmWriter1.inc \
      7   X86GenDisassemblerTables.inc \
      8   X86GenRegisterInfo.inc \
      9   X86GenInstrInfo.inc \
     10   X86GenDAGISel.inc \
     11   X86GenFastISel.inc \
     12   X86GenSubtargetInfo.inc \
     13   X86GenCallingConv.inc
     14 
     15 x86_codegen_SRC_FILES := \
     16   X86AsmPrinter.cpp \
     17   X86CallFrameOptimization.cpp \
     18   X86FastISel.cpp \
     19   X86FixupLEAs.cpp \
     20   X86FloatingPoint.cpp \
     21   X86FrameLowering.cpp \
     22   X86ISelDAGToDAG.cpp \
     23   X86ISelLowering.cpp \
     24   X86InstrInfo.cpp \
     25   X86MachineFunctionInfo.cpp \
     26   X86MCInstLower.cpp \
     27   X86PadShortFunction.cpp \
     28   X86RegisterInfo.cpp \
     29   X86SelectionDAGInfo.cpp \
     30   X86Subtarget.cpp \
     31   X86TargetMachine.cpp \
     32   X86TargetObjectFile.cpp \
     33   X86TargetTransformInfo.cpp \
     34   X86VZeroUpper.cpp
     35 
     36 # For the host
     37 # =====================================================
     38 include $(CLEAR_VARS)
     39 include $(CLEAR_TBLGEN_VARS)
     40 
     41 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES)
     42 
     43 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES)
     44 
     45 LOCAL_MODULE:= libLLVMX86CodeGen
     46 
     47 LOCAL_MODULE_TAGS := optional
     48 
     49 include $(LLVM_HOST_BUILD_MK)
     50 include $(LLVM_TBLGEN_RULES_MK)
     51 include $(LLVM_GEN_INTRINSICS_MK)
     52 include $(BUILD_HOST_STATIC_LIBRARY)
     53 
     54 # For the device only
     55 # =====================================================
     56 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     57 include $(CLEAR_VARS)
     58 include $(CLEAR_TBLGEN_VARS)
     59 
     60 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES)
     61 
     62 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES)
     63 
     64 LOCAL_MODULE:= libLLVMX86CodeGen
     65 
     66 LOCAL_MODULE_TAGS := optional
     67 
     68 include $(LLVM_DEVICE_BUILD_MK)
     69 include $(LLVM_TBLGEN_RULES_MK)
     70 include $(LLVM_GEN_INTRINSICS_MK)
     71 include $(BUILD_STATIC_LIBRARY)
     72 endif
     73