[PATCH] D103103: [PowerPC][XCOFF] Create 8 and 16 byte aligned constant csects.

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 10:48:38 PDT 2021


sfertile created this revision.
sfertile added reviewers: daltenty, jasonliu, hubert.reinterpretcast.
sfertile added a project: PowerPC.
Herald added subscribers: shchenz, hiraditya.
sfertile requested review of this revision.
Herald added a project: LLVM.

Fixes issue where late materialized constants can be more strictly aligned than their containing csect, whose alignment can't be updated after emitting the .csect asm directive. Add rodata csects for 8 and 16 byte aligned constants, and map constant to those csects based on their alignment.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103103

Files:
  llvm/include/llvm/MC/MCObjectFileInfo.h
  llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  llvm/lib/MC/MCObjectFileInfo.cpp
  llvm/test/CodeGen/PowerPC/aix-constant-align.ll
  llvm/test/CodeGen/PowerPC/aix-rodata-align.ll
  llvm/test/CodeGen/PowerPC/aix-space.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103103.347725.patch
Type: text/x-patch
Size: 6277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/d8f1f2b1/attachment.bin>


More information about the llvm-commits mailing list