Generalize tblgen's dag parsing logic to handle arbitrary expressions
[oota-llvm.git] / test / LLVMC / MultipleOutputLanguages.td
1 // Check that multiple output languages work.
2 // RUN: tblgen -I %p/../../include -llvmc-temp-hack --gen-llvmc %s -o %t
3 // RUN: FileCheck -input-file %t %s
4 // RUN: %compile_cxx %t
5 // XFAIL: vg_leak
6
7 include "llvm/CompilerDriver/Common.td"
8
9 def dummy_tool : Tool<[
10     (command "dummy_cmd"),
11     (in_language "dummy_lang"),
12     (out_language ["another_dummy_lang", "yet_another_dummy_lang"])
13 ]>;
14
15 def another_dummy_tool : Tool<[
16     (command "another_dummy_cmd"),
17     (in_language ["another_dummy_lang", "some_other_dummy_lang"]),
18     (out_language "executable"),
19     (join)
20 ]>;
21
22 // CHECK: new SimpleEdge("dummy_tool")
23 // CHECK: new SimpleEdge("another_dummy_tool")
24 def DummyGraph : CompilationGraph<[
25     (edge "root", "dummy_tool"),
26     (edge "dummy_tool", "another_dummy_tool")
27 ]>;