Alpha has JIT
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 22 Jul 2005 20:54:01 +0000 (20:54 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 22 Jul 2005 20:54:01 +0000 (20:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22501 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules
autoconf/configure.ac
configure

index ae4e65247fb9827f19adb246f05efade8fe0f99c..f6e3467e787418812efb6f188d1a6797dd3d0df9 100644 (file)
@@ -602,6 +602,18 @@ ifdef ENABLE_PPC_JIT
   JIT_LIBS += LLVMPowerPC LLVMSelectionDAG
 endif
 
+# You can enable the Alpha JIT on a non-Alpha host by setting the flag
+# ENABLE_ALPHA_JIT on the make command line. If not, it will still be
+# enabled automagically on an PowerPC host.
+ifeq ($(ARCH), Alpha)
+  ENABLE_ALPHA_JIT = 1
+endif
+
+# What the PowerPC JIT requires
+ifdef ENABLE_ALPHA_JIT
+  JIT_LIBS += LLVMAlpha LLVMSelectionDAG
+endif
+
 LLVMLIBS := $(JIT_LIBS) LLVMScalarOpts LLVMAnalysis.a LLVMTransformUtils.a \
             LLVMBCReader LLVMCore LLVMSupport.a LLVMTarget.a LLVMbzip2 \
             LLVMSystem.a $(PLATFORMLIBDL)
index 153ddfe439d9bef3ee871b9f16a072da30fc2d12..42775d33493a58771e990f5823d374c9f069f5a7 100644 (file)
@@ -212,7 +212,7 @@ else
     Sparc)   AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
     PowerPC) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
     x86_64)  AC_SUBST(JIT,[[]]) ;;
-    Alpha)   AC_SUBST(JIT,[[]]) ;;
+    Alpha)   AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
     IA64)    AC_SUBST(JIT,[[]]) ;;
     *)       AC_SUBST(JIT,[[]]) ;;
   esac
index c6b05f057ff4437863fc7b26f42aa3023756ea3d..d93b4d81bd1a4125c2aa479bb696e3630b7c593b 100755 (executable)
--- a/configure
+++ b/configure
@@ -2997,7 +2997,7 @@ else
  ;;
     x86_64)  JIT=
  ;;
-    Alpha)   JIT=
+    Alpha)   JIT=TARGET_HAS_JIT=1
  ;;
     IA64)    JIT=
  ;;