This is an archive of the discontinued LLVM Phabricator instance.

[XCOFF][AIX] Read-only data section object file generation
ClosedPublic

Authored by jasonliu on Nov 19 2019, 12:01 PM.

Details

Summary

This patch is a follow up on read-only assembly patch D70182.
It intends to enable object file generation for the read-only data section on AIX.

Diff Detail

Event Timeline

jasonliu created this revision.Nov 19 2019, 12:01 PM
jasonliu edited the summary of this revision. (Show Details)Nov 19 2019, 12:11 PM
daltenty accepted this revision.Nov 21 2019, 7:06 AM

Other than minor nit, LGTM

llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
4

nit: should these have "-verify-machineinstrs -mcpu=pwr7" for consistency?

This revision is now accepted and ready to land.Nov 21 2019, 7:06 AM
jasonliu marked an inline comment as done.Nov 21 2019, 7:14 AM
jasonliu added inline comments.
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
4

Yes, I will add them in.

DiggerLin added inline comments.Nov 21 2019, 7:27 AM
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
285

since we have a tool which can print out the raw section content. you want to test the readonly raw data in .text section in the this patch ? or you want to create a new patch for it ?

jasonliu updated this revision to Diff 230467.Nov 21 2019, 9:06 AM

Added -verify-machine-instr and -mcpu for consistency.
Added raw data testing.

jasonliu marked 2 inline comments as done.Nov 21 2019, 9:07 AM
jasonliu added inline comments.
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
285

Thanks for the reminder. I added it this patch.

jasonliu marked an inline comment as done.Nov 21 2019, 9:10 AM
This revision was automatically updated to reflect the committed changes.