annotate polly/test/lit.site.cfg.in @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ## Autogenerated by LLVM/Polly configuration.
anatofuz
parents:
diff changeset
2 # Do not edit!
anatofuz
parents:
diff changeset
3 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
anatofuz
parents:
diff changeset
4 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
anatofuz
parents:
diff changeset
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
anatofuz
parents:
diff changeset
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
anatofuz
parents:
diff changeset
7 config.polly_obj_root = "@POLLY_BINARY_DIR@"
anatofuz
parents:
diff changeset
8 config.polly_lib_dir = "@POLLY_LIB_DIR@"
anatofuz
parents:
diff changeset
9 config.target_triple = "@TARGET_TRIPLE@"
anatofuz
parents:
diff changeset
10 config.enable_gpgpu_codegen = "@GPU_CODEGEN@"
anatofuz
parents:
diff changeset
11 config.llvm_polly_link_into_tools = "@LLVM_POLLY_LINK_INTO_TOOLS@"
anatofuz
parents:
diff changeset
12 config.targets_to_build = "@TARGETS_TO_BUILD@"
anatofuz
parents:
diff changeset
13 config.extra_paths = "@POLLY_TEST_EXTRA_PATHS@".split(";")
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 ## Check the current platform with regex
anatofuz
parents:
diff changeset
16 import re
anatofuz
parents:
diff changeset
17 EAT_ERR_ON_X86 = ' '
anatofuz
parents:
diff changeset
18 if (re.match(r'^x86_64*', '@TARGET_TRIPLE@') == None) :
anatofuz
parents:
diff changeset
19 EAT_ERR_ON_X86 = '|| echo \"error is eaten\"'
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 for arch in config.targets_to_build.split():
anatofuz
parents:
diff changeset
22 config.available_features.add(arch.lower() + '-registered-target')
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 # Support substitution of the tools and libs dirs with user parameters. This is
anatofuz
parents:
diff changeset
25 # used when we can't determine the tool dir at configuration time.
anatofuz
parents:
diff changeset
26 try:
anatofuz
parents:
diff changeset
27 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
anatofuz
parents:
diff changeset
28 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
anatofuz
parents:
diff changeset
29 except KeyError:
anatofuz
parents:
diff changeset
30 e = sys.exc_info()[1]
anatofuz
parents:
diff changeset
31 key, = e.args
anatofuz
parents:
diff changeset
32 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 # excludes: A list of directories to exclude from the testsuite. The 'Inputs'
anatofuz
parents:
diff changeset
35 # subdirectories contain auxiliary inputs for various tests in their parent
anatofuz
parents:
diff changeset
36 # directories.
anatofuz
parents:
diff changeset
37 config.excludes = ['Inputs']
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 if config.llvm_polly_link_into_tools == '' or \
anatofuz
parents:
diff changeset
40 config.llvm_polly_link_into_tools.lower() == '0' or \
anatofuz
parents:
diff changeset
41 config.llvm_polly_link_into_tools.lower() == 'n' or \
anatofuz
parents:
diff changeset
42 config.llvm_polly_link_into_tools.lower() == 'no' or \
anatofuz
parents:
diff changeset
43 config.llvm_polly_link_into_tools.lower() == 'off' or \
anatofuz
parents:
diff changeset
44 config.llvm_polly_link_into_tools.lower() == 'false' or \
anatofuz
parents:
diff changeset
45 config.llvm_polly_link_into_tools.lower() == 'notfound' or \
anatofuz
parents:
diff changeset
46 config.llvm_polly_link_into_tools.lower() == 'llvm_polly_link_into_tools-notfound':
anatofuz
parents:
diff changeset
47 config.substitutions.append(('%loadPolly', '-load '
anatofuz
parents:
diff changeset
48 + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'
anatofuz
parents:
diff changeset
49 + ' -load-pass-plugin '
anatofuz
parents:
diff changeset
50 + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'
anatofuz
parents:
diff changeset
51 + ' -polly-process-unprofitable '
anatofuz
parents:
diff changeset
52 + ' -polly-remarks-minimal '
anatofuz
parents:
diff changeset
53 + ' -polly-use-llvm-names '
anatofuz
parents:
diff changeset
54 + ' -polly-import-jscop-dir=%S '
anatofuz
parents:
diff changeset
55 + ' -polly-codegen-verify '
anatofuz
parents:
diff changeset
56 ))
anatofuz
parents:
diff changeset
57 else:
anatofuz
parents:
diff changeset
58 config.substitutions.append(('%loadPolly', ''
anatofuz
parents:
diff changeset
59 + ' -polly-process-unprofitable '
anatofuz
parents:
diff changeset
60 + ' -polly-remarks-minimal '
anatofuz
parents:
diff changeset
61 + ' -polly-use-llvm-names '
anatofuz
parents:
diff changeset
62 + ' -polly-import-jscop-dir=%S '
anatofuz
parents:
diff changeset
63 + ' -polly-codegen-verify '
anatofuz
parents:
diff changeset
64 ))
anatofuz
parents:
diff changeset
65
anatofuz
parents:
diff changeset
66 if config.enable_gpgpu_codegen == 'TRUE' :
anatofuz
parents:
diff changeset
67 config.available_features.add('pollyacc')
anatofuz
parents:
diff changeset
68
anatofuz
parents:
diff changeset
69 # Let the main config do the real work.
anatofuz
parents:
diff changeset
70 lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg")