[LLVMdev] tablegen question

Micah Villmow micah.villmow at smachines.com
Tue Jun 25 08:47:14 PDT 2013


How do you specify in a tablegen pattern that all destination registers are also source registers? I know I could just duplicate them, but I was wondering if there was a way it could be done without doing this. Basically an inplace operation.

So for example, take a hypothetical swap w/ sqrt.
if I had swap $ds0, $ds1

which swaps ds1 and ds0 and applies sqrt on the registers afterwards.

Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130625/76068770/attachment.html>


More information about the llvm-dev mailing list