1 // RUN: llvm-tblgen %s | FileCheck %s
13 // CHECK: def yyy_B0A0
14 // CHECK: def yyy_B0A1
15 // CHECK: def yyy_C0B0A0
16 // CHECK: def yyy_C0B0A1
17 // CHECK: def yyy_C0B1A0
18 // CHECK: def yyy_C0B1A1
19 // CHECK-NOT: def zzz_A0
20 // CHECK: def zzz_B0A0
21 // CHECK: def zzz_B0A1
22 // CHECK: def zzz_C0B0A0
23 // CHECK: def zzz_C0B0A1
24 // CHECK: def zzz_C0B1A0
25 // CHECK: def zzz_C0B1A1
32 def A0 : A<!add(10, b)>;
33 def A1 : A<!add(20, b)>;
37 defm B0 : B<!add(100, c)>;
38 defm B1 : B<!add(200, c)>;
43 foreach i = 1...2 in {
44 def A#i : A<!add(i, 1)>;
46 defset list<A> SubAs = {
53 int x = !foldl(0, As, a, b, !add(a, b.Num));
57 def yyy_ # !cast<string>(a);
60 foreach a = SubAs in {
61 def zzz_ # !cast<string>(a);