[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / lit.site.cfg.py.in
blobc7e5748e867fe6a8cca75658ab26ec9519302c10
1 @LIT_SITE_CFG_IN_HEADER@
3 import sys
5 config.host_triple = "@LLVM_HOST_TRIPLE@"
6 config.target_triple = "@TARGET_TRIPLE@"
7 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
8 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
9 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
10 config.llvm_lib_dir = "@LLVM_LIBRARY_DIR@"
11 config.llvm_shlib_dir = "@SHLIBDIR@"
12 config.llvm_shlib_ext = "@SHLIBEXT@"
13 config.llvm_exe_ext = "@EXEEXT@"
14 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
15 config.python_executable = "@PYTHON_EXECUTABLE@"
16 config.gold_executable = "@GOLD_EXECUTABLE@"
17 config.ld64_executable = "@LD64_EXECUTABLE@"
18 config.ocamlfind_executable = "@OCAMLFIND@"
19 config.have_ocamlopt = @HAVE_OCAMLOPT@
20 config.have_ocaml_ounit = @HAVE_OCAML_OUNIT@
21 config.ocaml_flags = "@OCAMLFLAGS@"
22 config.include_go_tests = @LLVM_INCLUDE_GO_TESTS@
23 config.go_executable = "@GO_EXECUTABLE@"
24 config.enable_shared = @ENABLE_SHARED@
25 config.enable_assertions = @ENABLE_ASSERTIONS@
26 config.targets_to_build = "@TARGETS_TO_BUILD@"
27 config.native_target = "@LLVM_NATIVE_ARCH@"
28 config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
29 config.host_os = "@HOST_OS@"
30 config.host_cc = "@HOST_CC@"
31 config.host_cxx = "@HOST_CXX@"
32 # Note: ldflags can contain double-quoted paths, so must use single quotes here.
33 config.host_ldflags = '@HOST_LDFLAGS@'
34 config.llvm_use_intel_jitevents = @LLVM_USE_INTEL_JITEVENTS@
35 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
36 config.have_zlib = @HAVE_LIBZ@
37 config.have_libxar = @HAVE_LIBXAR@
38 config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@
39 config.enable_ffi = @LLVM_ENABLE_FFI@
40 config.build_examples = @LLVM_BUILD_EXAMPLES@
41 config.enable_threads = @LLVM_ENABLE_THREADS@
42 config.build_shared_libs = @BUILD_SHARED_LIBS@
43 config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@
44 config.llvm_libxml2_enabled = @LLVM_LIBXML2_ENABLED@
45 config.llvm_host_triple = '@LLVM_HOST_TRIPLE@'
46 config.host_arch = "@HOST_ARCH@"
47 config.have_opt_viewer_modules = @LLVM_HAVE_OPT_VIEWER_MODULES@
48 config.libcxx_used = @LLVM_LIBCXX_USED@
49 config.has_plugins = @LLVM_ENABLE_PLUGINS@
51 # Support substitution of the tools_dir with user parameters. This is
52 # used when we can't determine the tool dir at configuration time.
53 try:
54 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
55 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
56 except KeyError:
57 e = sys.exc_info()[1]
58 key, = e.args
59 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
61 import lit.llvm
62 lit.llvm.initialize(lit_config, config)
64 # Let the main config do the real work.
65 lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg.py")