Displaying 3 results from an estimated 3 matches for "end_prologue_comment".
2011 Nov 20
2
[LLVMdev] How can I output assembly comments from emitPrologue()?
...dMI to create my instruction, which only seems to have an
"addMetadata()" function rather than "setMetadata()", 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...
2011 Nov 20
0
[LLVMdev] How can I output assembly comments from emitPrologue()?
...which only seems to have an
> "addMetadata()" function rather than "setMetadata()", 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 g...
2011 Nov 21
0
[LLVMdev] How to get ELF section virtual starting address from MCSymbolRefExpr?
...dMI to create my instruction, which only seems to have an
"addMetadata()" function rather than "setMetadata()", 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...