[llvm-dev] Empty TokenIdentifier and multiple patterns for an instruction

Liad Mordekoviz via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 27 03:33:48 PST 2017


Hello, 
I come with 2 questions:
1. I’ve seen in multiple places the use of “def : some class<>” and can’t find any information about that anywhere,
Why would I declare a nameless def? 
2. I’d like to create 2 patterns to be replaces with the same def, for example:
def ADD  : MyInstClass<0x10, "add", add>;
def ADD  : MyInstClass<0x10, "add", adde>;
(I’m trying to add support to add with carry)

Thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171127/bd03d841/attachment.html>


More information about the llvm-dev mailing list