[llvm-commits] [llvm] PPC64 TOC support

Adhemerval Zanella azanella at linux.vnet.ibm.com
Wed Aug 15 07:06:26 PDT 2012


Sorry, I end up by made an erroneous patch split. I fixed it and I also
fixed the wrong "@TOC" asm emission. I end up cleaning up the '.td'
encoding changes to avoid messing up with darwin code generation. Now
the logic resides at 'PPCMCCodeEmitter.cpp' with check if the target
is PPC64 with SVR4ABI to emit the TOC relocations.

I split the patch now in this one to add preliminary TOC support and
the other one to add MCJIT support (correct patch in attachments).

On 08/14/2012 03:52 PM, Roman Divacky wrote:

> After applying this patch not even a hello world can be compiled
> (assembled), with just this patch I am getting:
>
> Invalid variant kind
> UNREACHABLE executed at MCExpr.cpp:228!
>
> when I add the MCJIT patch too, it finishes the asm emission but
> the asm does not like:
>
> .quad   .TOC. at tocbase@TOC
>
> should it be
>
> .quad   .TOC. at tocbase
>
> instead?
>
> Anyway, please try to send patches that can be applied/committed
> on itself. Also, previously the patch seems to have contained
> more stuff. What happened to it (the .td encoding changes) ?
>
>

-- 
Adhemerval Zanella Netto
  Software Engineer
  Linux Technology Center Brazil
  Toolchain / GLIBC on Power Architecture
  azanella at linux.vnet.ibm.com / azanella at br.ibm.com
  +55 61 8642-9890

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-ppc64-toc.patch
Type: text/x-patch
Size: 18210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120815/5ff81e2a/attachment.bin>


More information about the llvm-commits mailing list