aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/TargetInfo
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-02-07 10:16:49 -0800
committerKenny Root <kroot@google.com>2011-02-07 11:13:04 -0800
commitcfb9e3db360f9161eede09766fadb2cb178771cb (patch)
tree72f05f8fa24968a4c6e75edaf2e406b80eab96fe /lib/Target/X86/TargetInfo
parent016557b23a5b9ff66bc033fa60eecf79c85f2ec7 (diff)
downloadexternal_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/TargetInfo')
-rw-r--r--lib/Target/X86/TargetInfo/Android.mk40
1 files changed, 34 insertions, 6 deletions
diff --git a/lib/Target/X86/TargetInfo/Android.mk b/lib/Target/X86/TargetInfo/Android.mk
index 60b64f9..fcbb4e7 100644
--- a/lib/Target/X86/TargetInfo/Android.mk
+++ b/lib/Target/X86/TargetInfo/Android.mk
@@ -1,18 +1,22 @@
LOCAL_PATH := $(call my-dir)
-# For the device only
+x86_target_info_TBLGEN_TABLES := \
+ X86GenRegisterNames.inc \
+ X86GenInstrNames.inc
+
+x86_target_info_SRC_FILES := \
+ X86TargetInfo.cpp
+
+# For the host
# =====================================================
include $(CLEAR_VARS)
include $(CLEAR_TBLGEN_VARS)
-TBLGEN_TABLES := \
- X86GenRegisterNames.inc \
- X86GenInstrNames.inc
+TBLGEN_TABLES := $(x86_target_info_TBLGEN_TABLES)
TBLGEN_TD_DIR := $(LOCAL_PATH)/..
-LOCAL_SRC_FILES := \
- X86TargetInfo.cpp
+LOCAL_SRC_FILES := $(x86_target_info_SRC_FILES)
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/..
@@ -24,3 +28,27 @@ LOCAL_MODULE_TAGS := optional
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
+
+# For the device
+# =====================================================
+ifeq ($(TARGET_ARCH),x86)
+include $(CLEAR_VARS)
+include $(CLEAR_TBLGEN_VARS)
+
+TBLGEN_TABLES := $(x86_target_info_TBLGEN_TABLES)
+
+TBLGEN_TD_DIR := $(LOCAL_PATH)/..
+
+LOCAL_SRC_FILES := $(x86_target_info_SRC_FILES)
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/..
+
+LOCAL_MODULE:= libLLVMARMInfo
+
+LOCAL_MODULE_TAGS := optional
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(LLVM_TBLGEN_RULES_MK)
+include $(BUILD_STATIC_LIBRARY)
+endif