diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-05 22:51:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-05 22:51:56 +0000 |
commit | df72eaef3d863be99fd45f59c59919a8c1261d05 (patch) | |
tree | e2b580f3db0e10d50a79b911f420f6cbfd8bda3b /test/TableGen | |
parent | 286997c7450040dcebf7c85a357af2416c2c1393 (diff) |
enhance tblgen to support anonymous defm's, use this to
simplify the X86 CMOVmr's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/defmclass.td | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/TableGen/defmclass.td b/test/TableGen/defmclass.td index 55482da4d0..57972b6dae 100644 --- a/test/TableGen/defmclass.td +++ b/test/TableGen/defmclass.td @@ -36,3 +36,15 @@ multiclass Y { // CHECK: int check = 0; defm Instr : Y, VEX; + + +// Anonymous defm. + +multiclass SomeAnonymous<int x> { + def rm; + def mr; +} + +// These multiclasses shouldn't conflict. +defm : SomeAnonymous<1>; +defm : SomeAnonymous<2>;
\ No newline at end of file |