mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 20:06:46 +00:00
9595159451
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30036 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
266 B
TableGen
20 lines
266 B
TableGen
// RUN: tblgen %s
|
|
class C1<int A, string B> {
|
|
int bar = A;
|
|
string thestr = B;
|
|
}
|
|
|
|
def T : C1<4, "blah">;
|
|
|
|
multiclass t<int a> {
|
|
def S1 : C1<a, "foo"> {
|
|
int foo = 4;
|
|
let bar = 1;
|
|
}
|
|
def S2 : C1<a, "bar">;
|
|
}
|
|
|
|
defm FOO : t<42>;
|
|
|
|
def T4 : C1<6, "foo">;
|