[llvm-dev] Manually insert an instruction in SelectionDAG
Kaarthik Alagapan via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 5 18:35:42 PDT 2019
Got it Lorenzo, thank you so much!
On Aug 4, 2019, 11:46 AM -0400, Lorenzo Casalino <lorenzo.casalino93 at gmail.com>, wrote:
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?
As far as I know, up to the CodeGen phase, LLVM works on a
target-agnostic representation of the original code; low
level concepts, such as ASM directives, are not handled; thus, it is not
possible to add them in the SelectionDAG or
in the subsequent machine specific representation.
As pointed out by Tim, you could print them during the code emission
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev