mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
a73e586495
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117197 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
762 B
TableGen
28 lines
762 B
TableGen
// Check that multiple output languages work.
|
|
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
|
|
// 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"),
|
|
(out_language "another_dummy_lang", "yet_another_dummy_lang")
|
|
]>;
|
|
|
|
def another_dummy_tool : Tool<[
|
|
(command "another_dummy_cmd"),
|
|
(in_language "another_dummy_lang", "some_other_dummy_lang"),
|
|
(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")
|
|
]>;
|