llvm/test
Michal Gorny 1159e42199 [cmake] Canonicalize CMake booleans to 0/1 for lit interop
Canonicalize all CMake booleans to 0/1 before passing them to lit, to
ensure that the Python side handles all of them consistently
and correctly. 0/1 is a safe choice of values that trigger the same
boolean interpretation in CMake, Python and C++.

Furthermore, using them without quotes improves the chance Python will
explicitly fail when an incorrect value (such as ON/OFF, TRUE/FALSE,
YES/NO) is accidentally passed, rather than silently misinterpreting
the value.

This replaces a lot of different logics spread around lit site files,
attempting to partially reproduce the boolean logic used in CMake
and usually silently failing when an uncommon value was used instead.
In fact, some of them were never working correctly since different
values were assigned in CMake and checked in Python.

The alternative solution could be to create a common parser for CMake
booleans in lit and use it consistently throughout the site files.
However, it does not seem like the best idea to create redundant
implementation of the same logic and have to follow upstream if it ever
is extended to handle more values.

Differential Revision: https://reviews.llvm.org/D28294

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291284 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-06 21:33:48 +00:00
..
Analysis [CostModel][X86] Add AVX512 and 512-bit vector shift cost tests. 2017-01-06 19:41:26 +00:00
Assembler [DebugInfo] Added support for Checksum debug info feature. 2016-12-25 10:12:09 +00:00
Bindings [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
Bitcode [ThinLTO] Subsume all importing checks into a single flag 2017-01-05 14:32:16 +00:00
BugPoint
CodeGen AMDGPU/R600: Don't use REGISTER_{LOAD,STORE} ISD nodes 2017-01-06 21:00:46 +00:00
DebugInfo [DWARF] Null out the debug locs of (loop invariant) instructions hoisted by LICM in 2017-01-06 18:38:57 +00:00
Examples
ExecutionEngine [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
Feature
FileCheck [FileCheck] Fix --strict-whitespace --match-full-lines -- add test-case 2016-12-18 21:04:47 +00:00
Instrumentation [ASan] Make ASan instrument variable-masked loads and stores 2017-01-06 15:24:51 +00:00
Integer
JitListener [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
LibDriver LibDriver: Allow resource files to be archive members. 2016-12-15 19:37:46 +00:00
Linker Renumber testcase metadata nodes after r290153. 2016-12-22 00:45:21 +00:00
LTO Renumber testcase metadata nodes after r290153. 2016-12-22 00:45:21 +00:00
MC Move test input to directory called Inputs. 2017-01-06 10:22:15 +00:00
Object Object: Make IRObjectFile own multiple modules and enumerate symbols from all modules. 2016-12-13 20:20:17 +00:00
ObjectYAML [ObjectYAML] Support for DWARF debug_info section 2016-12-22 22:44:27 +00:00
Other [PM] Introduce a devirtualization iteration layer for the new PM. 2016-12-28 11:07:33 +00:00
SymbolRewriter
TableGen [tablegen] Delete duplicates from a vector without skipping elements 2016-12-01 19:38:50 +00:00
ThinLTO/X86 ThinLTO: add early "dead-stripping" on the Index 2017-01-05 21:34:18 +00:00
tools Fix x86 gold tests on non-x86 targets. 2017-01-04 14:43:51 +00:00
Transforms [InstSimplify] Optimize away urems in the presence of range metadata 2017-01-06 21:23:51 +00:00
Unit
Verifier [TBAAVerifier] Be stricter around verifying scalar nodes 2016-12-29 15:47:05 +00:00
YAMLParser
.clang-format
CMakeLists.txt [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
lit.cfg [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
lit.site.cfg.in [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
TestRunner.sh