Validate the generated C++ code in llvmc tests.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 15 Dec 2009 03:04:52 +0000 (03:04 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 15 Dec 2009 03:04:52 +0000 (03:04 +0000)
commite4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4
tree6f53530e91bde17f4c0d73fbc6b249d15c273847
parentb5fab402d02671f92ea7fc6166ba80e00d6a8388
Validate the generated C++ code in llvmc tests.

Checks that the code generated by 'tblgen --emit-llvmc' can be actually
compiled. Also fixes two bugs found in this way:

- forward_transformed_value didn't work with non-list arguments
- cl::ZeroOrOne is now called cl::Optional

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91404 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
include/llvm/CompilerDriver/Common.td
test/LLVMC/EmptyCompilationGraph.td
test/LLVMC/EnvParentheses.td
test/LLVMC/ExternOptions.td
test/LLVMC/ForwardAs.td
test/LLVMC/ForwardTransformedValue.td
test/LLVMC/ForwardValue.td
test/LLVMC/HookWithArguments.td
test/LLVMC/HookWithInFile.td
test/LLVMC/Init.td
test/LLVMC/MultiValuedOption.td
test/LLVMC/MultipleCompilationGraphs.td
test/LLVMC/NoActions.td
test/LLVMC/NoCompilationGraph.td
test/LLVMC/OneOrMore.td
test/LLVMC/OptionPreprocessor.td
test/LLVMC/TestWarnings.td
tools/llvmc/doc/LLVMC-Reference.rst
utils/TableGen/LLVMCConfigurationEmitter.cpp