From df72eaef3d863be99fd45f59c59919a8c1261d05 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Oct 2010 22:51:56 +0000 Subject: 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 --- test/TableGen/defmclass.td | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/TableGen') 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 { + def rm; + def mr; +} + +// These multiclasses shouldn't conflict. +defm : SomeAnonymous<1>; +defm : SomeAnonymous<2>; \ No newline at end of file -- cgit v1.2.3