llvm.org GIT mirror llvm / 735ab83
[SystemZ] Add configure bits This patch wires up the SystemZ target in configure, so that it can now be built using --enable-targets=systemz. It is not yet included in the default build (--enable-targets=all); this will be done by a follow-up patch. Patch by Richard Sandiford. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181208 91177308-0d34-0410-b5e6-96231b3b80d8 Ulrich Weigand 6 years ago
7 changed file(s) with 30 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
8888 )
8989
9090 # List of targets with JIT support:
91 set(LLVM_TARGETS_WITH_JIT X86 PowerPC ARM Mips)
91 set(LLVM_TARGETS_WITH_JIT X86 PowerPC ARM Mips SystemZ)
9292
9393 set(LLVM_TARGETS_TO_BUILD "all"
9494 CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
401401 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
402402 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
403403 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
404 s390x-*) llvm_cv_target_arch="SystemZ" ;;
404405 *) llvm_cv_target_arch="Unknown" ;;
405406 esac])
406407
434435 msp430-*) host_arch="MSP430" ;;
435436 hexagon-*) host_arch="Hexagon" ;;
436437 mblaze-*) host_arch="MBlaze" ;;
438 s390x-*) host_arch="SystemZ" ;;
437439 *) host_arch="Unknown" ;;
438440 esac
439441
653655 Hexagon) AC_SUBST(TARGET_HAS_JIT,0) ;;
654656 MBlaze) AC_SUBST(TARGET_HAS_JIT,0) ;;
655657 NVPTX) AC_SUBST(TARGET_HAS_JIT,0) ;;
658 SystemZ) AC_SUBST(TARGET_HAS_JIT,1) ;;
656659 *) AC_SUBST(TARGET_HAS_JIT,0) ;;
657660 esac
658661 fi
794797 AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
795798 [Build specific host targets: all or target1,target2,... Valid targets are:
796799 host, x86, x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
797 xcore, msp430, nvptx, and cpp (default=all)]),,
800 xcore, msp430, nvptx, systemz, and cpp (default=all)]),,
798801 enableval=all)
799802 if test "$enableval" = host-only ; then
800803 enableval=host
819822 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
820823 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
821824 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
825 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
822826 host) case "$llvm_cv_target_arch" in
823827 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
824828 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
832836 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
833837 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
834838 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
839 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
835840 *) AC_MSG_ERROR([Can not set target to build]) ;;
836841 esac ;;
837842 *) AC_MSG_ERROR([Unrecognized target $a_target]) ;;
377377 set(LLVM_NATIVE_ARCH MSP430)
378378 elseif (LLVM_NATIVE_ARCH MATCHES "hexagon")
379379 set(LLVM_NATIVE_ARCH Hexagon)
380 elseif (LLVM_NATIVE_ARCH MATCHES "s390x")
381 set(LLVM_NATIVE_ARCH SystemZ)
380382 else ()
381383 message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}")
382384 endif ()
14441444 --enable-targets Build specific host targets: all or
14451445 target1,target2,... Valid targets are: host, x86,
14461446 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447 xcore, msp430, nvptx, and cpp (default=all)
1447 xcore, msp430, nvptx, systemz, and cpp (default=all)
14481448 --enable-experimental-targets
14491449 Build experimental host targets: disable or
14501450 target1,target2,... (default=disable)
40254025 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
40264026 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
40274027 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4028 s390x-*) llvm_cv_target_arch="SystemZ" ;;
40284029 *) llvm_cv_target_arch="Unknown" ;;
40294030 esac
40304031 fi
40584059 msp430-*) host_arch="MSP430" ;;
40594060 hexagon-*) host_arch="Hexagon" ;;
40604061 mblaze-*) host_arch="MBlaze" ;;
4062 s390x-*) host_arch="SystemZ" ;;
40614063 *) host_arch="Unknown" ;;
40624064 esac
40634065
53985400 ;;
53995401 NVPTX) TARGET_HAS_JIT=0
54005402 ;;
5403 SystemZ) TARGET_HAS_JIT=1
5404 ;;
54015405 *) TARGET_HAS_JIT=0
54025406 ;;
54035407 esac
56505654 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
56515655 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
56525656 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5657 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
56535658 host) case "$llvm_cv_target_arch" in
56545659 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
56555660 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
56635668 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
56645669 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
56655670 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5671 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
56665672 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
56675673 echo "$as_me: error: Can not set target to build" >&2;}
56685674 { (exit 1); exit 1; }; } ;;
1052810534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1052910535 lt_status=$lt_dlunknown
1053010536 cat > conftest.$ac_ext <
10531 #line 10532 "configure"
10537 #line 10538 "configure"
1053210538 #include "confdefs.h"
1053310539
1053410540 #if HAVE_DLFCN_H
758758 case. The current set of targets is:
759759
760760 ``arm, cpp, hexagon, mblaze, mips, mipsel, msp430, powerpc, ptx, sparc, spu,
761 x86, x86_64, xcore``.
761 systemz, x86, x86_64, xcore``.
762762
763763 ``--enable-doxygen``
764764
311311 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
312312 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
313313 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
314 s390x-*) llvm_cv_target_arch="SystemZ" ;;
314315 *) llvm_cv_target_arch="Unknown" ;;
315316 esac])
316317
481482 Hexagon) AC_SUBST(TARGET_HAS_JIT,0) ;;
482483 MBlaze) AC_SUBST(TARGET_HAS_JIT,0) ;;
483484 NVPTX) AC_SUBST(TARGET_HAS_JIT,0) ;;
485 SystemZ) AC_SUBST(TARGET_HAS_JIT,1) ;;
484486 *) AC_SUBST(TARGET_HAS_JIT,0) ;;
485487 esac
486488 fi
591593 AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
592594 [Build specific host targets: all or target1,target2,... Valid targets are:
593595 host, x86, x86_64, sparc, powerpc, arm, mips, spu, hexagon,
594 xcore, msp430, nvptx, and cpp (default=all)]),,
596 xcore, msp430, nvptx, systemz, and cpp (default=all)]),,
595597 enableval=all)
596598 if test "$enableval" = host-only ; then
597599 enableval=host
613615 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
614616 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
615617 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
618 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
616619 host) case "$llvm_cv_target_arch" in
617620 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
618621 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
626629 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
627630 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
628631 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
632 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
629633 *) AC_MSG_ERROR([Can not set target to build]) ;;
630634 esac ;;
631635 *) AC_MSG_ERROR([Unrecognized target $a_target]) ;;
14051405 --enable-targets Build specific host targets: all or
14061406 target1,target2,... Valid targets are: host, x86,
14071407 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1408 xcore, msp430, nvptx, and cpp (default=all)
1408 xcore, msp430, nvptx, systemz, and cpp (default=all)
14091409 --enable-bindings Build specific language bindings:
14101410 all,auto,none,{binding-name} (default=auto)
14111411 --enable-libffi Check for the presence of libffi (default is NO)
38513851 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
38523852 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
38533853 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3854 s390x-*) llvm_cv_target_arch="SystemZ" ;;
38543855 *) llvm_cv_target_arch="Unknown" ;;
38553856 esac
38563857 fi
51155116 ;;
51165117 NVPTX) TARGET_HAS_JIT=0
51175118 ;;
5119 SystemZ) TARGET_HAS_JIT=1
5120 ;;
51185121 *) TARGET_HAS_JIT=0
51195122 ;;
51205123 esac
53155318 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
53165319 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
53175320 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5321 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
53185322 host) case "$llvm_cv_target_arch" in
53195323 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
53205324 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
53285332 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
53295333 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
53305334 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5335 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
53315336 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
53325337 echo "$as_me: error: Can not set target to build" >&2;}
53335338 { (exit 1); exit 1; }; } ;;
1035210357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1035310358 lt_status=$lt_dlunknown
1035410359 cat > conftest.$ac_ext <
10355 #line 10356 "configure"
10360 #line 10361 "configure"
1035610361 #include "confdefs.h"
1035710362
1035810363 #if HAVE_DLFCN_H