[PATCH] D62532: [AIX] Implement function descriptor on SDAG

Xiangling Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 10:14:59 PDT 2019


Xiangling_L created this revision.
Xiangling_L added reviewers: hubert.reinterpretcast, sfertile, jasonliu, hfinkel.
Xiangling_L added a project: LLVM.
Herald added subscribers: jsji, kbarton, hiraditya, nemanjai.

On AIX, for direct function call target, we create proper MCSymbol SDNode(e.g . ".foo") while constructing SDAG to replace original TargetGlobalAddress SDNode. Then down the path, we can take advantage of this MCSymbol.

And since -stop-after llc option is used to test MIR results in the LIT testcase, to be able to get a MCSymbolXCOFF in SDAG layer, an option "-init-MC" is added to use together with -stop-after/-stop-before option to force llc doing the target object file lowering.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62532

Files:
  llvm/include/llvm/CodeGen/TargetPassConfig.h
  llvm/include/llvm/MC/MCSymbol.h
  llvm/include/llvm/MC/MCSymbolXCOFF.h
  llvm/lib/CodeGen/LLVMTargetMachine.cpp
  llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/lib/MC/MCContext.cpp
  llvm/lib/Target/PowerPC/PPC.h
  llvm/lib/Target/PowerPC/PPCFastISel.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCInstr64Bit.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/test/CodeGen/PowerPC/test_call_aix.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62532.201684.patch
Type: text/x-patch
Size: 15460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190528/45f14c9e/attachment.bin>


More information about the llvm-commits mailing list