repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
TableGen
/
Tree.td
blob
f9f1f15139d2444c14315aa886ea8509ba97b459
1
// This tests to make sure we can parse tree patterns.
2
// RUN: tblgen %s
3
4
class TreeNode;
5
class RegisterClass;
6
7
def set : TreeNode;
8
def plus : TreeNode;
9
def imm : TreeNode;
10
def R32 : RegisterClass;
11
12
class Inst<dag T> {
13
dag Pattern = T;
14
}
15
16
def ADDrr32 : Inst<(set R32, (plus R32, R32))>; // a = b + c
17
def ADDri32 : Inst<(set R32, (plus R32, imm))>; // a = b + imm
18