llvm.org GIT mirror llvm / 8aeca44
Reduce verbiage of lit.local.cfg files We can just split targets_to_build in one place and make it immutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210496 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 5 years ago
94 changed file(s) with 98 addition(s) and 186 deletion(s). Raw diff Collapse all Expand all
303303 .. code-block:: python
304304
305305 config.suffixes = ['.ll', '.c', '.cpp', '.test']
306 targets = set(config.root.targets_to_build.split())
307 if not 'ARM' in targets:
306 if not 'ARM' in config.root.targets:
308307 config.unsupported = True
309308
310309 Other platform-specific tests are those that depend on a specific feature
None targets = set(config.root.targets_to_build.split())
1 if not 'AArch64' in targets:
0 if not 'AArch64' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not "X86" in targets:
0 if not "X86" in config.root.targets:
21 config.unsupported = True
3 if not "ARM" in targets:
2 if not "ARM" in config.root.targets:
43 config.unsupported = True
11
22 config.suffixes = ['.ll']
33
4 targets = set(config.root.targets_to_build.split())
5 if not 'AArch64' in targets:
4 if not 'AArch64' in config.root.targets:
65 config.unsupported = True
76
87 # For now we don't test arm64-win32.
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'CppBackend' in targets:
0 if not 'CppBackend' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'Hexagon' in targets:
0 if not 'Hexagon' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'MSP430' in targets:
0 if not 'MSP430' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'Mips' in targets:
0 if not 'Mips' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'NVPTX' in targets:
0 if not 'NVPTX' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'R600' in targets:
0 if not 'R600' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'Sparc' in targets:
0 if not 'Sparc' in config.root.targets:
21 config.unsupported = True
32
44 if config.root.host_arch not in ['SystemZ']:
55 config.unsupported = True
66
7 targets = set(config.root.targets_to_build.split())
8 if not 'SystemZ' in targets:
7 if not 'SystemZ' in config.root.targets:
98 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'SystemZ' in targets:
0 if not 'SystemZ' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
55 # cleanly.
66 config.suffixes = ['.ll', '.test', '.txt']
77
8 targets = set(config.root.targets_to_build.split())
9 if not 'X86' in targets:
8 if not 'X86' in config.root.targets:
109 config.unsupported = True
1110
None targets = set(config.root.targets_to_build.split())
1 if not 'XCore' in targets:
0 if not 'XCore' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'AArch64' in targets:
0 if not 'AArch64' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'Mips' in targets:
0 if not 'Mips' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'Sparc' in targets:
0 if not 'Sparc' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'SystemZ' in targets:
0 if not 'SystemZ' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
0 root = config.root
1 targets = set(root.targets_to_build.split())
1 targets = root.targets
22 if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
33 ('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets):
44 config.unsupported = False
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if 'AArch64' not in targets:
0 if 'AArch64' not in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if 'AArch64' not in targets:
0 if 'AArch64' not in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'Mips' in targets:
0 if not 'Mips' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'Sparc' in targets:
0 if not 'Sparc' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'SystemZ' in targets:
0 if not 'SystemZ' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'XCore' in targets:
0 if not 'XCore' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 # We have to reset config.unsupported here because the parent directory is
21 # predicated on 'X86'.
3 config.unsupported = not 'ARM' in targets
2 config.unsupported = not 'ARM' in config.root.targets
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'AArch64' in targets:
0 if not 'AArch64' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'Mips' in targets:
0 if not 'Mips' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'Sparc' in targets:
0 if not 'Sparc' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'SystemZ' in targets:
0 if not 'SystemZ' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'Mips' in targets:
0 if not 'Mips' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'AArch64' in targets:
0 if not 'AArch64' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'AArch64' in targets:
0 if not 'AArch64' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
0 config.suffixes = ['.ll']
11
2 targets = set(config.root.targets_to_build.split())
3 if not 'AArch64' in targets:
2 if not 'AArch64' in config.root.targets:
43 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
0 config.suffixes = ['.ll']
11
2 targets = set(config.root.targets_to_build.split())
3 if not 'AArch64' in targets:
2 if not 'AArch64' in config.root.targets:
43 config.unsupported = True
54
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'PowerPC' in targets:
0 if not 'PowerPC' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'XCore' in targets:
0 if not 'XCore' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'AArch64' in targets:
0 if not 'AArch64' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'R600' in targets:
0 if not 'R600' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'XCore' in targets:
0 if not 'XCore' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'NVPTX' in targets:
0 if not 'NVPTX' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'Sparc' in targets:
0 if not 'Sparc' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
32
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
264264 tool_path = llvm_tools_dir + '/' + tool_name
265265 config.substitutions.append((pattern, tool_pipe + tool_path))
266266
267 ### Targets
268
269 config.targets = frozenset(config.targets_to_build.split())
270
267271 ### Features
268272
269273 # Shell execution
None targets = set(config.root.targets_to_build.split())
1 if not 'X86' in targets:
0 if not 'X86' in config.root.targets:
21 config.unsupported = True
None targets = set(config.root.targets_to_build.split())
1 if not 'ARM' in targets:
0 if not 'ARM' in config.root.targets:
21 config.unsupported = True
32