1 // Check that forward_transformed_value works.
2 // The dummy tool and graph are required to silence warnings.
3 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
4 // RUN: FileCheck -input-file %t %s
5 // RUN: %compile_cxx -fexceptions -x c++ %t
7 include "llvm/CompilerDriver/Common.td"
9 def OptList : OptionList<[(parameter_option "a", (extern)),
10 (prefix_list_option "b", (extern))]>;
12 // CHECK: std::string HookA
13 // CHECK: std::string HookB
15 def dummy_tool : Tool<[
16 (cmd_line "dummy_cmd $INFILE"),
17 (in_language "dummy"),
18 (out_language "dummy"),
20 // CHECK: HookA(AutoGeneratedParameter_a
21 (not_empty "a"), (forward_transformed_value "a", "HookA"),
22 // CHECK: HookB(AutoGeneratedList_b
23 (not_empty "b"), (forward_transformed_value "b", "HookB")))
26 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;