projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
simple multiclass example
[oota-llvm.git]
/
test
/
TableGen
/
MultiClass.td
1
// RUN: tblgen %s
2
class C1<int A, string B> {
3
int bar = A;
4
string thestr = B;
5
}
6
7
def T : C1<4, "blah">;
8
9
multiclass t<int a> {
10
def S1 : C1<a, "foo"> {
11
int foo = 4;
12
let bar = 1;
13
}
14
def S2 : C1<a, "bar">;
15
}
16
17
defm FOO : t<42>;