repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git]
/
test
/
TableGen
/
MultiClass.td
blob
52ba59c230f1b50d3fdd6f8d374a058f6db2d87b
1
// RUN: tblgen %s | grep {zing = 4} | count 2
2
3
class C1<int A, string B> {
4
int bar = A;
5
string thestr = B;
6
int zing;
7
}
8
9
def T : C1<4, "blah">;
10
11
multiclass t<int a> {
12
def S1 : C1<a, "foo"> {
13
int foo = 4;
14
let bar = 1;
15
}
16
def S2 : C1<a, "bar">;
17
}
18
19
defm FOO : t<42>;
20
21
def T4 : C1<6, "foo">;
22
23
let zing = 4 in
24
defm BAZ : t<3>;
25