[PATCH] D64825: Enable assembly output of local commons for AIX

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 15:01:29 PDT 2019


daltenty created this revision.
daltenty added reviewers: cebowleratibm, hubert.reinterpretcast, Xiangling_L, jasonliu, sfertile.
Herald added subscribers: llvm-commits, jsji, MaskRay, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.

This patch enable assembly output of local commons for AIX using .lcomm 
directives. Adds a EmitXCOFFLocalCommonSymbol to MCStreamer so we can emit the 
AIX version of .lcomm assembly directives which include a csect name. Handle the
case of BSS locals in PPCAIXAsmPrinter by using EmitXCOFFLocalCommonSymbol. Adds
a test for generating .lcomm on AIX Targets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64825

Files:
  llvm/include/llvm/MC/MCStreamer.h
  llvm/include/llvm/MC/MCXCOFFStreamer.h
  llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  llvm/lib/MC/MCAsmInfoXCOFF.cpp
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCSectionXCOFF.cpp
  llvm/lib/MC/MCStreamer.cpp
  llvm/lib/MC/MCXCOFFStreamer.cpp
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/aix-xcoff-lcomm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64825.210190.patch
Type: text/x-patch
Size: 7991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190716/1f63c3f0/attachment.bin>


More information about the llvm-commits mailing list