aboutsummaryrefslogtreecommitdiff
path: root/unittests/ExecutionEngine/JIT/JITTest.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-03-04 09:36:50 +0000
committerJohn McCall <rjmccall@apple.com>2010-03-04 09:36:50 +0000
commit7b7b90769ac1b1ed4ac3d506b57866d44130a36e (patch)
tree4f9abd3332426176102df9608b1d198692c93690 /unittests/ExecutionEngine/JIT/JITTest.cpp
parent5bf7f88ea28dae0cad4f311cc5ef708b6ce50e8f (diff)
Teach lit to honor conditional directives. The syntax is:
IF(condition(value)): If the value satisfies the condition, the line is processed by lit; otherwise it is skipped. A test with no unignored directives is resolved as Unsupported. The test suite is responsible for defining conditions; conditions are unary functions over strings. I've defined two conditions in the LLVM test suite, TARGET (with values like those in TARGETS_TO_BUILD) and BINDING (with values like those in llvm_bindings). So for example you can write: IF(BINDING(ocaml)): RUN: %blah %s -o - and the RUN line will only execute if LLVM was configured with the ocaml bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/JIT/JITTest.cpp')
0 files changed, 0 insertions, 0 deletions