search for: aninstr

Displaying 3 results from an estimated 3 matches for "aninstr".

Did you mean: aginstr
2011 Nov 20
2
[LLVMdev] How can I output assembly comments from emitPrologue()?
...t;, and which takes an MDNode instead of an MDString. I attempted to do this as follows: void XXXFrameLowering::emitPrologue(MachineFunction &MF) const { ... Value* end_prologue_comment = MDString::get(getGlobalContext(), "end of prologue"); BuildMI(MBB, MBBI, dl, TII.get(Target::AnInstr), Target::R1).addMetadata(cast<MDNode>(end_prologue_comment)); } However, it seems an MDString cannot be case to an MDNode this way. How do I go about turning that MDString into an MDNode, and once done how do I add the new member to MachineInstr and attach the metadata to it? Thanks, Steph...
2011 Nov 20
0
[LLVMdev] How can I output assembly comments from emitPrologue()?
...instead of an MDString. I attempted to do this as follows: > > void XXXFrameLowering::emitPrologue(MachineFunction &MF) const { > ... > Value* end_prologue_comment = MDString::get(getGlobalContext(), "end of > prologue"); > BuildMI(MBB, MBBI, dl, TII.get(Target::AnInstr), > Target::R1).addMetadata(cast<MDNode>(end_prologue_comment)); > } > > However, it seems an MDString cannot be case to an MDNode this way. How do > I go about turning that MDString into an MDNode, and once done how do I add > the new member to MachineInstr and attach the m...
2011 Nov 21
0
[LLVMdev] How to get ELF section virtual starting address from MCSymbolRefExpr?
...t;, and which takes an MDNode instead of an MDString. I attempted to do this as follows: void XXXFrameLowering::emitPrologue(MachineFunction &MF) const { ... Value* end_prologue_comment = MDString::get(getGlobalContext(), "end of prologue"); BuildMI(MBB, MBBI, dl, TII.get(Target::AnInstr), Target::R1).addMetadata(cast<MDNode>(end_prologue_comment)); } However, it seems an MDString cannot be case to an MDNode this way. How do I go about turning that MDString into an MDNode, and once done how do I add the new member to MachineInstr and attach the metadata to it? Thanks, Steph...