1 // RUN: llvm-tblgen %s | FileCheck %s
3 class Type<string name, int length, int width> {
9 multiclass OT1<string ss, int l, int w> {
10 def _#NAME# : Type<ss, l, w>;
12 multiclass OT2<string ss, int w> {
13 defm v1#NAME# : OT1<!strconcat( "v1", ss), 1, w>;
14 defm v2#NAME# : OT1<!strconcat( "v2", ss), 2, w>;
15 defm v3#NAME# : OT1<!strconcat( "v3", ss), 3, w>;
16 defm v4#NAME# : OT1<!strconcat( "v4", ss), 4, w>;
17 defm v8#NAME# : OT1<!strconcat( "v8", ss), 8, w>;
18 defm v16#NAME# : OT1<!strconcat("v16", ss), 16, w>;
21 defm i8 : OT2<"i8", 8>;