[LLVMdev] Make PPC JIT support inline assembly?

Ding-Yong Hong tera219 at gmail.com
Thu Mar 24 00:21:38 PDT 2011


Hi,

Very few inline assembly are supported for the X86 backend. As I see from
X86ISelLowering.cpp, only bswap, rorw, xchgl and simple register selections
(e.g. {=r10}) LLVM JIT can recoginze. But for PPC backend, I am not
sure why PPC JIT see all inline assembly IRs as an error.

Ding-Yong
On Thu, Mar 24, 2011 at 2:53 PM, Duncan Sands <baldrick at free.fr> wrote:

> Hi 陳韋任,
>
> >    It seems PPC JIT does not recognize inline assembly.
> > For example, when I give LLVM IR belows to PPC JIT,
> >
> > %0 = tail call i32* asm "", "={r10}"() nounwind ;<i32*>  [#uses=1]
> >
> >    it complaints that inline assembly is not a supported
> > instruction. x86 JIT works fine, however.
>
> I'm surprised this worked with the x86 JIT - I thought the JIT didn't
> support any inline assembler on any platform, and that the plan was to
> solve this with the new MC-JIT, see
>   http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html
>
> Ciao, Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110324/0c7ab201/attachment.html>


More information about the llvm-dev mailing list