Displaying 9 results from an estimated 9 matches for "xxxasmprinter".
Did you mean:
rxasmprinter
2011 Nov 09
1
[LLVMdev] AsmPrinter vs. MCAsmStreamer
I'm writing a backend using a mid-October svn snapshot of LLVM. I'm having
a hard time figuring out the relationship between my XXXAsmPrinter and
MCAsmStreamer. Can someone explain what each is responsible for? Looking at
the existing targets, the XXXAsmPrinter implementations seem to implement
both the legacy "create a .s file" behavior, using
printInstruction/printOperand/etc as well as the newer "lower to MCInst"
b...
2012 Oct 30
3
[LLVMdev] TargetELFWriterInfo used for anything?
> In consideration of those codes in XXXAsmPrinter class which print out
> MachineInstr in .s format, I tend to think they are old codes that
> might be obsolete and will be replaced with MC layer implementation,
> but I am not sure.
How about sending a patch which remove those obsolete code, and let
others give comment?
Cheers,
chenwj...
2012 May 11
1
[LLVMdev] 2 versions of printInstruction()
Hi, LLVMers,
I notice that there are two versions of printInstruction() generated
by tablegen:
(1) XXXInstPrinter::printInstruction(const MCInst *MI, raw_ostream
&os), like for X86.
(2) XXXAsmPrinter::printInstruction(const MachineInstr *MI,
raw_ostream &os), like for Sparc.
I guess Sparc backend directly transform MachineInstr objects into
ostream, while X86 backend convert MachineInstr into MCInst first,
then prints out MCInst as text.
So, why does tablegen result in such differences?...
2012 Oct 27
0
[LLVMdev] TargetELFWriterInfo used for anything?
...argets inherit it, but it looks like nothing ever
> calls getELFWriterInfo() (anymore) to get access to the instances.
>
Via greping, I find that it is only used in XXXTargetMachine class.
Obviously its codes overlap with those in XXXELFObjectWriter class.
In consideration of those codes in XXXAsmPrinter class which print out
MachineInstr in .s format, I tend to think they are old codes that
might be obsolete and will be replaced with MC layer implementation,
but I am not sure.
Hope someone authoritative answer this question.
Regards.
>
>>
>> Regards,
>> chenwj
>>
>...
2012 Oct 27
2
[LLVMdev] TargetELFWriterInfo used for anything?
On Fri, Oct 26, 2012 at 6:01 PM, 陳韋任 (Wei-Ren Chen) <
chenwj at iis.sinica.edu.tw> wrote:
> Hi Jan,
>
> Why do you think TargetELFWriterInfo is not used (IIUC)?
> I see a lot of targets inherit class TargetELFWriterInfo
> for their ELF writer.
>
>
Yes, a lot of targets inherit it, but it looks like nothing ever
calls getELFWriterInfo() (anymore) to get access to the
2011 Nov 20
0
[LLVMdev] How can I output assembly comments from emitPrologue()?
...{31-0} = 0;
dag OutOperandList = outs;
dag InOperandList = ins;
let AsmString = asmstr;
let Pattern = pattern;
}
2. I then defined a comment instruction, ala:
def COMMENT : FakeInst<(outs), (ins Reg:$fake), "; $fake", []>;
3. I added the following to printOperand(...) in XXXAsmPrinter.cpp:
switch (MO.getType()) {
...
case MachineOperand::MO_Metadata:
O << cast<MDString>(MO.getMetadata()->getOperand(0))->getString();
break;
...
}
4. Finally, whenever I needed to emit comments I call the following:
MDNode* comment =
MDNode::get(getGlobalContext()...
2011 Nov 20
2
[LLVMdev] How can I output assembly comments from emitPrologue()?
Dear all,
I am looking to output assembly comments in my emitPrologue() function,
just for my own readability. Searching for a way to do this found me this
thread - http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/043722.html,
which says that the best way to output comments from somewhere like
emitPrologue() is to:
1. Create an MDString for the comment.
2. Attach it to an LLVM
2012 Oct 30
0
[LLVMdev] TargetELFWriterInfo used for anything?
but some target like sparc still depends on those codes...
2012/10/30 ��f�� (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw>:
>> In consideration of those codes in XXXAsmPrinter class which print out
>> MachineInstr in .s format, I tend to think they are old codes that
>> might be obsolete and will be replaced with MC layer implementation,
>> but I am not sure.
>
> How about sending a patch which remove those obsolete code, and let
> others giv...
2011 Nov 21
0
[LLVMdev] How to get ELF section virtual starting address from MCSymbolRefExpr?
...{31-0} = 0;
dag OutOperandList = outs;
dag InOperandList = ins;
let AsmString = asmstr;
let Pattern = pattern;
}
2. I then defined a comment instruction, ala:
def COMMENT : FakeInst<(outs), (ins Reg:$fake), "; $fake", []>;
3. I added the following to printOperand(...) in XXXAsmPrinter.cpp:
switch (MO.getType()) {
...
case MachineOperand::MO_Metadata:
O << cast<MDString>(MO.getMetadata()->getOperand(0))->getString();
break;
...
}
4. Finally, whenever I needed to emit comments I call the following:
MDNode* comment =
MDNode::get(getGlobalContext()...