llvm.org GIT mirror llvm / ef4e0c2
simple multiclass example git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30028 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: tblgen %s
1 class C1 {
2 int bar = A;
3 string thestr = B;
4 }
5
6 def T : C1<4, "blah">;
7
8 multiclass t {
9 def S1 : C1 {
10 int foo = 4;
11 let bar = 1;
12 }
13 def S2 : C1;
14 }
15
16 defm FOO : t<42>;