2010-09-21 14:59:42 +00:00
|
|
|
// Check that multiple output languages work.
|
2010-10-23 07:32:53 +00:00
|
|
|
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
|
2010-09-21 14:59:42 +00:00
|
|
|
// RUN: FileCheck -input-file %t %s
|
|
|
|
// RUN: %compile_cxx %t
|
|
|
|
// XFAIL: vg_leak
|
|
|
|
|
|
|
|
include "llvm/CompilerDriver/Common.td"
|
|
|
|
|
|
|
|
def dummy_tool : Tool<[
|
|
|
|
(command "dummy_cmd"),
|
|
|
|
(in_language "dummy_lang"),
|
2010-10-23 07:32:53 +00:00
|
|
|
(out_language "another_dummy_lang", "yet_another_dummy_lang")
|
2010-09-21 14:59:42 +00:00
|
|
|
]>;
|
|
|
|
|
|
|
|
def another_dummy_tool : Tool<[
|
|
|
|
(command "another_dummy_cmd"),
|
2010-10-23 07:32:53 +00:00
|
|
|
(in_language "another_dummy_lang", "some_other_dummy_lang"),
|
2010-09-21 14:59:42 +00:00
|
|
|
(out_language "executable"),
|
|
|
|
(join)
|
|
|
|
]>;
|
|
|
|
|
|
|
|
// CHECK: new SimpleEdge("dummy_tool")
|
|
|
|
// CHECK: new SimpleEdge("another_dummy_tool")
|
|
|
|
def DummyGraph : CompilationGraph<[
|
|
|
|
(edge "root", "dummy_tool"),
|
|
|
|
(edge "dummy_tool", "another_dummy_tool")
|
|
|
|
]>;
|