[DeLICM] Export Known and Written to DeLICMTests. NFC.
[polly-mirror.git] / test / lit.site.cfg.in
blob71ec8ef46c39824094c2be71e25c3c68f11f38a5
1 ## Autogenerated by LLVM/Polly configuration.
2 # Do not edit!
3 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7 config.polly_obj_root = "@POLLY_BINARY_DIR@"
8 config.polly_lib_dir = "@POLLY_LIB_DIR@"
9 config.target_triple = "@TARGET_TRIPLE@"
10 config.enable_gpgpu_codegen = "@GPU_CODEGEN@"
11 config.link_polly_into_tools = "@LINK_POLLY_INTO_TOOLS@"
12 config.targets_to_build = "@TARGETS_TO_BUILD@"
14 ## Check the current platform with regex
15 import re
16 EAT_ERR_ON_X86 = ' '
17 if (re.match(r'^x86_64*', '@TARGET_TRIPLE@') == None) :
18   EAT_ERR_ON_X86 = '|| echo \"error is eaten\"'
20 for arch in config.targets_to_build.split():
21     config.available_features.add(arch.lower() + '-registered-target')
23 # Support substitution of the tools and libs dirs with user parameters. This is
24 # used when we can't determine the tool dir at configuration time.
25 try:
26     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
27     config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
28 except KeyError:
29     e = sys.exc_info()[1]
30     key, = e.args
31     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
33 if config.link_polly_into_tools == '' or \
34    config.link_polly_into_tools.lower() == '0' or \
35    config.link_polly_into_tools.lower() == 'n' or \
36    config.link_polly_into_tools.lower() == 'no' or \
37    config.link_polly_into_tools.lower() == 'off' or \
38    config.link_polly_into_tools.lower() == 'false' or \
39    config.link_polly_into_tools.lower() == 'notfound' or \
40    config.link_polly_into_tools.lower() == 'link_polly_into_tools-notfound':
41     config.substitutions.append(('%loadPolly', '-load '
42                                  + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'
43                                  + ' -polly-process-unprofitable '
44                                  + ' -polly-remarks-minimal '
45                                  ))
46 else:
47     config.substitutions.append(('%loadPolly', ''
48                                  + ' -polly-process-unprofitable '
49                                  + ' -polly-remarks-minimal '
50                                  ))
52 if config.enable_gpgpu_codegen == 'TRUE' :
53     config.available_features.add('pollyacc')
55 # Let the main config do the real work.
56 lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg")