[RFC v2] Towards an assembler parser for PowerPC
David Fang
fang at csl.cornell.edu
Sun Mar 24 02:01:21 PDT 2013
Thank you, Hal!
I've re-merged master-to-branch, and will post results after a build and
test cycle.
Fang
> ----- Original Message -----
>> From: "David Fang" <fang at csl.cornell.edu>
>> To: "Ulrich Weigand" <Ulrich.Weigand at de.ibm.com>, "Hal Finkel" <hfinkel at anl.gov>
>> Cc: llvm-commits at cs.uiuc.edu
>> Sent: Wednesday, March 13, 2013 6:32:56 PM
>> Subject: Re: [RFC v2] Towards an assembler parser for PowerPC
>>
>> Hello guardians of PowerPC,
>> Just wanted to ping and ask how close we are to seeing
>> PPCAsmParser. I've made good progress on the mach-o/PPC backend, but
>> have
>> run into a few blocks.
>>
>> 1) lib/Target/PowerPC/PPCAsmPrinter.cpp:PPCDarwinAsmPrinter emits a
>> bcl instruction in the stub for dynamically linked functions.
>> Would it be easy to MC-ize the bcl (branch-conditional-link)
>> instruction?
>
> Done. r177830.
>
> -Hal
>
>>
>> 2) Some of the system C++ headers (4.0.1) have inline asm, so I'm
>> unable
>> to compile an <iostream> hello-world using the integrated-assembler.
>>
>> clang gripes:
>> fatal error: error in backend: Inline asm not supported by this
>> streamer
>> because we don't have an asm parser for this target
>>
>> (A <stdio.h> version in C works though.)
>> I assume the PPC asm parser will solve this?
>>
>> Eagerly anticipating your work!
>>
>> Fang
>>
>>
>>> Ulrich,
>>> Yes, I am eager to test 32b PPC on darwin/macho-o, and I'm sure
>>> there
>>> are even more people interested on linu/ELF. I'll read through the
>>> patches
>>> to see what sort of changes are coming. I guess I'll wait for this
>>> to arrive
>>> on trunk and we'll test from there.
>>>
>>> David
>>>
>>>> David Fang <fang at csl.cornell.edu> wrote on 21.02.2013 22:30:25:
>>>>
>>>>> I am very much looking forward to seeing/testing this on
>>>>> svn-trunk.
>>>>> How close is this effort to making it to trunk?
>>>>> Is there a public branch I can preview in the mean time?
>>>>> Will there be 32b support as well?
>>>>> I'm particularly interested in being able to use PowerPC's
>>>>> AsmParser in
>>>>> testing PPCMachObjectWriter (doesn't exist yet).
>>>>
>>>> Sorry, I had gotten side-tracked into another project over the
>>>> past
>>>> couple of weeks ... But I'm definitely still working on
>>>> AsmParser.
>>>> How long this is still going to take depends a bit on reviewers,
>>>> but if everything goes well, I hope it can get in within the next
>>>> 2-3 weeks or so.
>>>>
>>>> I don't have a public branch, but I'm attaching a quilt stack of
>>>> the current patch set against current SVN head.
>>>>
>>>> I haven't really done anything for 32 bit support yet, but I
>>>> guess
>>>> this ought to be handled somehow for the version that makes it
>>>> into trunk. If you're interested in helping test 32 bit support,
>>>> I'd certainly appreciate that :-)
>>>>
>>>> Bye,
>>>> Ulrich
>>>>
>>>> (See attached file: patches-parser.tar.gz)
>>>
>>>
>>
>> --
>> David Fang
>> http://www.csl.cornell.edu/~fang/
>>
>>
>
--
David Fang
http://www.csl.cornell.edu/~fang/
More information about the llvm-commits
mailing list