llvm.org GIT mirror llvm / e5d5cdf
Add a Multidef Test Add a simple test for multidefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141234 91177308-0d34-0410-b5e6-96231b3b80d8 David Greene 7 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: tblgen %s | FileCheck %s
1 // RUN: tblgen %s | FileCheck %s
2
3 class Base {
4 int value = i;
5 }
6
7 multiclass Multi values> {
8 def ONE : Base;
9 def TWO : Base;
10
11 multidef COUNT : Base;
12 }
13
14 defm List : Multi<[1, 2, 3, 4, 5, 6]>;
15
16 // CHECK: MD4.ListCOUNT
17 // CHECK: int value = 6