[LLVMdev] Reducing .td redundancy

Chris Lattner clattner at apple.com
Tue Mar 24 19:07:23 PDT 2009


On Mar 24, 2009, at 10:04 AM, David Greene wrote:

> On Tuesday 24 March 2009 10:43, Chris Lattner wrote:
>> On Mar 23, 2009, at 5:56 PM, David Greene wrote:
>>> Is it legal to do something like a !strconcat on a non-string
>>> entity?  That
>>> is, is there some operation that will let me do this (replace
>>> SOME_CONCAT with
>>> an appropriate operator):
>>
>> I don't get it, can you try a simpler example on me? :)
>
> Ok, let see if I can construct something.

Ah, I see what you mean.  Sure, you could add an operator like ! 
nameconcat(x,y) that does what you want.  I'd start it could with a  
simple testcase (see the examples in llvm/test/TableGen for  
examples).  This should work just like strconcat.

-Chris



More information about the llvm-dev mailing list