Remove the code which constant-folded ptrtoint(inttoptr(x)+c) to
[oota-llvm.git] / test / LLVMC / ForwardTransformedValue.td
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
6
7 include "llvm/CompilerDriver/Common.td"
8
9 def OptList : OptionList<[(parameter_option "a", (extern)),
10                           (prefix_list_option "b", (extern))]>;
11
12 // CHECK: std::string HookA
13 // CHECK: std::string HookB
14
15 def dummy_tool : Tool<[
16 (command "dummy_cmd"),
17 (in_language "dummy"),
18 (out_language "dummy"),
19 (actions (case
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")))
24 ]>;
25
26 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;