llvm.org GIT mirror llvm / d752593
rename add some comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115741 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 8 years ago
2 changed file(s) with 35 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
0 // RUN: tblgen %s | FileCheck %s
1 // XFAIL: vg_leak
2
3 //===----------------------------------------------------------------------===//
4 // Substitution of an int.
5 def X1;
6
7 class C1 {
8 dag d = (X1 N);
9 }
10
11 def VAL1 : C1<13>;
12
13 // CHECK: def VAL1 {
14 // CHECK-NEXT: dag d = (X1 13)
15
16
17 //===----------------------------------------------------------------------===//
18 // Substitution of a DAG.
19 def X2;
20
21 class yclass;
22 def Y2 : yclass;
23
24 class C2 {
25 dag d = (X2 N);
26 dag e = (N X2);
27 }
28
29 def VAL2 : C2;
30
31 // CHECK: def VAL2 {
32 // CHECK-NEXT: dag d = (X2 Y2)
33 // CHECK-NEXT: dag e = (Y2 X2)
34
+0
-30
test/TableGen/DagIntSubst.td less more
None // RUN: tblgen %s | FileCheck %s
1 // XFAIL: vg_leak
2 def X1;
3
4 class C1 {
5 dag d = (X1 N);
6 }
7
8 def VAL1 : C1<13>;
9
10 // CHECK: def VAL1 {
11 // CHECK-NEXT: dag d = (X1 13)
12
13
14 def X2;
15
16 class yclass;
17 def Y2 : yclass;
18
19 class C2 {
20 dag d = (X2 N);
21 dag e = (N X2);
22 }
23
24 def VAL2 : C2;
25
26 // CHECK: def VAL2 {
27 // CHECK-NEXT: dag d = (X2 Y2)
28 // CHECK-NEXT: dag e = (Y2 X2)
29