[PATCH] D70461: [AIX] Emit TOC entries for ASM printing

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 13:56:52 PST 2019


daltenty created this revision.
daltenty added reviewers: DiggerLin, sfertile, Xiangling_L, jasonliu, hubert.reinterpretcast.
Herald added subscribers: llvm-commits, jsji, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.
daltenty edited the summary of this revision.
Herald added a subscriber: wuzish.
daltenty added a parent revision: D70443: [AIX][XCOFF] Generate undefined symbol in symbol table for external function call.

Emit the correct .toc psuedo op when we change to the TOC and emit
TC entries. Make sure TOC psuedos get the right symbols via overriding
getMCSymbolForTOCPseudoMO on AIX. Add a test for TOC assembly writing
and update tests to include TOC entries.

Also make sure external globals have a csect set and handle external function descriptor (originally authored by Jason Liu) so we can emit TOC entries for them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70461

Files:
  llvm/include/llvm/MC/MCAsmInfo.h
  llvm/include/llvm/MC/MCSymbolXCOFF.h
  llvm/lib/BinaryFormat/XCOFF.cpp
  llvm/lib/MC/MCSectionXCOFF.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
  llvm/test/CodeGen/PowerPC/aix-xcoff-data-only-notoc.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-toc.ll
  llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll
  llvm/test/CodeGen/PowerPC/lower-globaladdr64-aix-asm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70461.230142.patch
Type: text/x-patch
Size: 18790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191119/a383df3b/attachment.bin>


More information about the llvm-commits mailing list