[LLVMdev] Make PPC JIT support inline assembly?

陳韋任 chenwj at iis.sinica.edu.tw
Wed Mar 23 23:21:34 PDT 2011


Hi, all

  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.

  Is there a reason that makes PPC JIT not support inline
assembly?

  Currently, we modify PPCGenCodeEmitter.inc, then rebuild
LLVM to let ppc recognize inline assembly (see attachment).
Is there a better way to make PPC JIT support inline assembly?

  Any suggestion appreciated.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PPCGenCodeEmitter.inc.patch
Type: text/x-diff
Size: 348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110324/77b505e8/attachment.patch>


More information about the llvm-dev mailing list