diff options
author | Kenny Root <kroot@google.com> | 2011-02-07 10:16:49 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-02-07 11:13:04 -0800 |
commit | cfb9e3db360f9161eede09766fadb2cb178771cb (patch) | |
tree | 72f05f8fa24968a4c6e75edaf2e406b80eab96fe /lib/Target/X86/Android.mk | |
parent | 016557b23a5b9ff66bc033fa60eecf79c85f2ec7 (diff) | |
download | external_llvm-cfb9e3db360f9161eede09766fadb2cb178771cb.zip external_llvm-cfb9e3db360f9161eede09766fadb2cb178771cb.tar.gz external_llvm-cfb9e3db360f9161eede09766fadb2cb178771cb.tar.bz2 |
Initial pass at adding X86 target support
Add some Makefile support for using X86 as a target as in "full_x86-eng"
However, this is not enough. More changes will be coming in future
changelists.
Change-Id: Id2765c9ba15404ebce09168738cebf5d00a2e15d
Diffstat (limited to 'lib/Target/X86/Android.mk')
-rw-r--r-- | lib/Target/X86/Android.mk | 91 |
1 files changed, 56 insertions, 35 deletions
diff --git a/lib/Target/X86/Android.mk b/lib/Target/X86/Android.mk index f2604cd..8dbca01 100644 --- a/lib/Target/X86/Android.mk +++ b/lib/Target/X86/Android.mk @@ -1,44 +1,45 @@ LOCAL_PATH := $(call my-dir) -# For the host only +x86_codegen_TBLGEN_TABLES := \ + X86GenRegisterInfo.h.inc \ + X86GenRegisterNames.inc \ + X86GenRegisterInfo.inc \ + X86GenInstrNames.inc \ + X86GenInstrInfo.inc \ + X86GenDAGISel.inc \ + X86GenFastISel.inc \ + X86GenSubtarget.inc \ + X86GenCallingConv.inc + +x86_codegen_SRC_FILES := \ + SSEDomainFix.cpp \ + X86AsmBackend.cpp \ + X86COFFMachineModuleInfo.cpp \ + X86CodeEmitter.cpp \ + X86ELFWriterInfo.cpp \ + X86FastISel.cpp \ + X86FloatingPoint.cpp \ + X86ISelDAGToDAG.cpp \ + X86ISelLowering.cpp \ + X86InstrInfo.cpp \ + X86JITInfo.cpp \ + X86MCAsmInfo.cpp \ + X86MCCodeEmitter.cpp \ + X86MCInstLower.cpp \ + X86RegisterInfo.cpp \ + X86SelectionDAGInfo.cpp \ + X86Subtarget.cpp \ + X86TargetMachine.cpp \ + X86TargetObjectFile.cpp + +# For the host # ===================================================== include $(CLEAR_VARS) include $(CLEAR_TBLGEN_VARS) -TBLGEN_TABLES := \ - X86GenRegisterInfo.h.inc \ - X86GenRegisterNames.inc \ - X86GenRegisterInfo.inc \ - X86GenInstrNames.inc \ - X86GenInstrInfo.inc \ - X86GenAsmMatcher.inc \ - X86GenDAGISel.inc \ - X86GenDisassemblerTables.inc \ - X86GenFastISel.inc \ - X86GenCallingConv.inc \ - X86GenSubtarget.inc \ - X86GenEDInfo.inc - -LOCAL_SRC_FILES := \ - SSEDomainFix.cpp \ - X86AsmBackend.cpp \ - X86COFFMachineModuleInfo.cpp \ - X86CodeEmitter.cpp \ - X86ELFWriterInfo.cpp \ - X86FastISel.cpp \ - X86FloatingPoint.cpp \ - X86ISelDAGToDAG.cpp \ - X86ISelLowering.cpp \ - X86InstrInfo.cpp \ - X86JITInfo.cpp \ - X86MCAsmInfo.cpp \ - X86MCCodeEmitter.cpp \ - X86MCInstLower.cpp \ - X86RegisterInfo.cpp \ - X86SelectionDAGInfo.cpp \ - X86Subtarget.cpp \ - X86TargetMachine.cpp \ - X86TargetObjectFile.cpp +TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) + +LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) LOCAL_MODULE:= libLLVMX86CodeGen @@ -48,3 +49,23 @@ include $(LLVM_HOST_BUILD_MK) include $(LLVM_TBLGEN_RULES_MK) include $(LLVM_GEN_INTRINSICS_MK) include $(BUILD_HOST_STATIC_LIBRARY) + +# For the device only +# ===================================================== +ifeq ($(TARGET_ARCH),x86) +include $(CLEAR_VARS) +include $(CLEAR_TBLGEN_VARS) + +TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) + +LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) + +LOCAL_MODULE:= libLLVMX86CodeGen + +LOCAL_MODULE_TAGS := optional + +include $(LLVM_DEVICE_BUILD_MK) +include $(LLVM_TBLGEN_RULES_MK) +include $(LLVM_GEN_INTRINSICS_MK) +include $(BUILD_STATIC_LIBRARY) +endif |