summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-07-22 20:54:01 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-07-22 20:54:01 +0000
commitc7fe0f510f01c1f9b6876beb6a738d4e40499eb4 (patch)
tree3afdbdf46dd03122530650db2cf512cd7f182f64 /llvm
parent55d045190ee188455fa340bf61dc7bc4f06d1994 (diff)
downloadbcm5719-llvm-c7fe0f510f01c1f9b6876beb6a738d4e40499eb4.tar.gz
bcm5719-llvm-c7fe0f510f01c1f9b6876beb6a738d4e40499eb4.zip
Alpha has JIT
llvm-svn: 22501
Diffstat (limited to 'llvm')
-rw-r--r--llvm/Makefile.rules12
-rw-r--r--llvm/autoconf/configure.ac2
-rwxr-xr-xllvm/configure2
3 files changed, 14 insertions, 2 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index ae4e65247fb..f6e3467e787 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -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)
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index 153ddfe439d..42775d33493 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -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
diff --git a/llvm/configure b/llvm/configure
index c6b05f057ff..d93b4d81bd1 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -2997,7 +2997,7 @@ else
;;
x86_64) JIT=
;;
- Alpha) JIT=
+ Alpha) JIT=TARGET_HAS_JIT=1
;;
IA64) JIT=
;;
OpenPOWER on IntegriCloud