[llvm-dev] Manually insert an instruction in SelectionDAG

Kaarthik Alagapan via llvm-dev llvm-dev at lists.llvm.org
Sat Aug 3 14:57:00 PDT 2019


Hello,
I am trying to insert a .byte/.word in the beginning of a specific LLVM IR instruction when it prints out in assembly (the inserted ‘instruction' only appears in assembly, not in LLVM IR), and I am guessing the best way to do that is to insert it in SelectionDAG as it strips down some LLVM IR instructions when it’s lowered. Can I get some guidance on what function I should use to insert a .byte/.word in SelectionDAG so it’s printed out in assembly?

Thank you,
Kaarthik A. Alagappan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190803/0c70f9fe/attachment.html>


More information about the llvm-dev mailing list