[Simplify] Remove unused instructions and accesses.
[polly-mirror.git] / test / lit.site.cfg.in
blob2ffef28a0194c356934bba1a18b65302e46b642a
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@"
13 config.extra_paths = "@POLLY_TEST_EXTRA_PATHS@".split(";")
15 ## Check the current platform with regex
16 import re
17 EAT_ERR_ON_X86 = ' '
18 if (re.match(r'^x86_64*', '@TARGET_TRIPLE@') == None) :
19   EAT_ERR_ON_X86 = '|| echo \"error is eaten\"'
21 for arch in config.targets_to_build.split():
22     config.available_features.add(arch.lower() + '-registered-target')
24 # Support substitution of the tools and libs dirs with user parameters. This is
25 # used when we can't determine the tool dir at configuration time.
26 try:
27     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
28     config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
29 except KeyError:
30     e = sys.exc_info()[1]
31     key, = e.args
32     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
34 if config.link_polly_into_tools == '' or \
35    config.link_polly_into_tools.lower() == '0' or \
36    config.link_polly_into_tools.lower() == 'n' or \
37    config.link_polly_into_tools.lower() == 'no' or \
38    config.link_polly_into_tools.lower() == 'off' or \
39    config.link_polly_into_tools.lower() == 'false' or \
40    config.link_polly_into_tools.lower() == 'notfound' or \
41    config.link_polly_into_tools.lower() == 'link_polly_into_tools-notfound':
42     config.substitutions.append(('%loadPolly', '-load '
43                                  + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'
44                                  + ' -polly-process-unprofitable '
45                                  + ' -polly-remarks-minimal '
46                                  + ' -polly-use-llvm-names '
47                                  + ' -polly-import-jscop-dir=%S '
48                                  ))
49 else:
50     config.substitutions.append(('%loadPolly', ''
51                                  + ' -polly-process-unprofitable '
52                                  + ' -polly-remarks-minimal '
53                                  + ' -polly-use-llvm-names '
54                                  + ' -polly-import-jscop-dir=%S '
55                                  ))
57 if config.enable_gpgpu_codegen == 'TRUE' :
58     config.available_features.add('pollyacc')
60 # Let the main config do the real work.
61 lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg")