In TableGen, can multiclasses inherit from one another? I notice that there's a lot of redundancy in the X86 .td files that could go away with multiclass inheritance. -Dave
On Mar 23, 2009, at 5:14 PM, David Greene wrote:> In TableGen, can multiclasses inherit from one another? I notice > that there's > a lot of redundancy in the X86 .td files that could go away with > multiclass > inheritance.Nope, not currently. That would be a nice feature though! -Chris
Hi, Just wondering, java is supposed to have only single inheritance support, but in the language realization, you can simultaneously realize an abstract interface class, and extend from a base class. Perhaps this may be an intermediate solution? Best regards, Elvis On Mar 24, 2009, at 6:28 PM, Chris Lattner wrote:> On Mar 23, 2009, at 5:14 PM, David Greene wrote: >> In TableGen, can multiclasses inherit from one another? I notice >> that there's >> a lot of redundancy in the X86 .td files that could go away with >> multiclass >> inheritance. > > Nope, not currently. That would be a nice feature though! > > -Chris > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On Tuesday 24 March 2009 10:28, Chris Lattner wrote:> On Mar 23, 2009, at 5:14 PM, David Greene wrote: > > In TableGen, can multiclasses inherit from one another? I notice > > that there's > > a lot of redundancy in the X86 .td files that could go away with > > multiclass > > inheritance. > > Nope, not currently. That would be a nice feature though!I'm going to see if I can do something simple. -Dave