Mercurial > hg > CbC > CbC_llvm
comparison polly/test/lit.site.cfg.in @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 ## Autogenerated by LLVM/Polly configuration. | 1 @LIT_SITE_CFG_IN_HEADER@ |
2 # Do not edit! | 2 |
3 config.llvm_src_root = "@LLVM_SOURCE_DIR@" | 3 config.llvm_src_root = "@LLVM_SOURCE_DIR@" |
4 config.llvm_obj_root = "@LLVM_BINARY_DIR@" | 4 config.llvm_obj_root = "@LLVM_BINARY_DIR@" |
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" | 5 config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@") |
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@" | 6 config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@") |
7 config.polly_obj_root = "@POLLY_BINARY_DIR@" | 7 config.polly_obj_root = "@POLLY_BINARY_DIR@" |
8 config.polly_lib_dir = "@POLLY_LIB_DIR@" | 8 config.polly_lib_dir = "@POLLY_LIB_DIR@" |
9 config.target_triple = "@TARGET_TRIPLE@" | 9 config.target_triple = "@LLVM_TARGET_TRIPLE@" |
10 config.enable_gpgpu_codegen = "@GPU_CODEGEN@" | 10 config.enable_gpgpu_codegen = "@GPU_CODEGEN@" |
11 config.llvm_polly_link_into_tools = "@LLVM_POLLY_LINK_INTO_TOOLS@" | 11 config.llvm_polly_link_into_tools = "@LLVM_POLLY_LINK_INTO_TOOLS@" |
12 config.targets_to_build = "@TARGETS_TO_BUILD@" | 12 config.targets_to_build = "@TARGETS_TO_BUILD@" |
13 config.extra_paths = "@POLLY_TEST_EXTRA_PATHS@".split(";") | 13 config.extra_paths = "@POLLY_TEST_EXTRA_PATHS@".split(";") |
14 | 14 |
15 ## Check the current platform with regex | 15 ## Check the current platform with regex |
16 import re | 16 import re |
17 EAT_ERR_ON_X86 = ' ' | 17 EAT_ERR_ON_X86 = ' ' |
18 if (re.match(r'^x86_64*', '@TARGET_TRIPLE@') == None) : | 18 if (re.match(r'^x86_64*', '@LLVM_TARGET_TRIPLE@') == None) : |
19 EAT_ERR_ON_X86 = '|| echo \"error is eaten\"' | 19 EAT_ERR_ON_X86 = '|| echo \"error is eaten\"' |
20 | 20 |
21 for arch in config.targets_to_build.split(): | 21 for arch in config.targets_to_build.split(): |
22 config.available_features.add(arch.lower() + '-registered-target') | 22 config.available_features.add(arch.lower() + '-registered-target') |
23 | |
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)) | |
33 | 23 |
34 # excludes: A list of directories to exclude from the testsuite. The 'Inputs' | 24 # excludes: A list of directories to exclude from the testsuite. The 'Inputs' |
35 # subdirectories contain auxiliary inputs for various tests in their parent | 25 # subdirectories contain auxiliary inputs for various tests in their parent |
36 # directories. | 26 # directories. |
37 config.excludes = ['Inputs'] | 27 config.excludes = ['Inputs'] |
38 | 28 |
29 commonOpts = ' -polly-process-unprofitable ' \ | |
30 + ' -polly-remarks-minimal ' \ | |
31 + ' -polly-use-llvm-names ' \ | |
32 + ' -polly-import-jscop-dir=%S ' \ | |
33 + ' -polly-codegen-verify ' | |
39 if config.llvm_polly_link_into_tools == '' or \ | 34 if config.llvm_polly_link_into_tools == '' or \ |
40 config.llvm_polly_link_into_tools.lower() == '0' or \ | 35 config.llvm_polly_link_into_tools.lower() == '0' or \ |
41 config.llvm_polly_link_into_tools.lower() == 'n' or \ | 36 config.llvm_polly_link_into_tools.lower() == 'n' or \ |
42 config.llvm_polly_link_into_tools.lower() == 'no' or \ | 37 config.llvm_polly_link_into_tools.lower() == 'no' or \ |
43 config.llvm_polly_link_into_tools.lower() == 'off' or \ | 38 config.llvm_polly_link_into_tools.lower() == 'off' or \ |
44 config.llvm_polly_link_into_tools.lower() == 'false' or \ | 39 config.llvm_polly_link_into_tools.lower() == 'false' or \ |
45 config.llvm_polly_link_into_tools.lower() == 'notfound' or \ | 40 config.llvm_polly_link_into_tools.lower() == 'notfound' or \ |
46 config.llvm_polly_link_into_tools.lower() == 'llvm_polly_link_into_tools-notfound': | 41 config.llvm_polly_link_into_tools.lower() == 'llvm_polly_link_into_tools-notfound': |
47 config.substitutions.append(('%loadPolly', '-load ' | 42 config.substitutions.append(('%loadPolly', '-load ' |
48 + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@' | 43 + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@' |
49 + ' -load-pass-plugin ' | 44 + commonOpts )) |
45 config.substitutions.append(('%loadNPMPolly', '-load-pass-plugin ' | |
50 + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@' | 46 + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@' |
51 + ' -polly-process-unprofitable ' | 47 + commonOpts )) |
52 + ' -polly-remarks-minimal ' | |
53 + ' -polly-use-llvm-names ' | |
54 + ' -polly-import-jscop-dir=%S ' | |
55 + ' -polly-codegen-verify ' | |
56 )) | |
57 else: | 48 else: |
58 config.substitutions.append(('%loadPolly', '' | 49 config.substitutions.append(('%loadPolly', commonOpts )) |
59 + ' -polly-process-unprofitable ' | 50 config.substitutions.append(('%loadNPMPolly', commonOpts )) |
60 + ' -polly-remarks-minimal ' | 51 |
61 + ' -polly-use-llvm-names ' | |
62 + ' -polly-import-jscop-dir=%S ' | |
63 + ' -polly-codegen-verify ' | |
64 )) | |
65 | 52 |
66 if config.enable_gpgpu_codegen == 'TRUE' : | 53 if config.enable_gpgpu_codegen == 'TRUE' : |
67 config.available_features.add('pollyacc') | 54 config.available_features.add('pollyacc') |
68 | 55 |
56 import lit.llvm | |
57 lit.llvm.initialize(lit_config, config) | |
58 | |
69 # Let the main config do the real work. | 59 # Let the main config do the real work. |
70 lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg") | 60 lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg") |