1// Check that multiple output languages work. 2// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t 3// RUN: FileCheck -input-file %t %s 4// RUN: %compile_cxx %t 5// XFAIL: vg_leak 6 7include "llvm/CompilerDriver/Common.td" 8 9def dummy_tool : Tool<[ 10 (command "dummy_cmd"), 11 (in_language "dummy_lang"), 12 (out_language "another_dummy_lang", "yet_another_dummy_lang") 13]>; 14 15def 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") 24def DummyGraph : CompilationGraph<[ 25 (edge "root", "dummy_tool"), 26 (edge "dummy_tool", "another_dummy_tool") 27]>; 28