[llvm-dev] Adding comments to 'MachineInstruction'

Martin J. O'Riordan via llvm-dev llvm-dev at lists.llvm.org
Sat Feb 3 04:40:29 PST 2018


When I am constructing sequences of instructions during custom lowering, I
would like to be able to also add a comment that appears in the generated
assembly with '-S -fverbose-asm'.  There is a large set of 'add*' functions
to attach additional information to the MI, but I don't see one for adding
comments.

 

Is there a method I can call to attach an arbitrary string ('StringRef',
'const char*', 'Twine') to an MI with 'BuildMI' or after?

 

Thanks,

 

            MartinO

 

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


More information about the llvm-dev mailing list