This is an archive of the discontinued LLVM Phabricator instance.

Add read-only data assembly writing
ClosedPublic

Authored by DiggerLin on Nov 13 2019, 7:36 AM.

Diff Detail

Event Timeline

DiggerLin created this revision.Nov 13 2019, 7:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 13 2019, 7:36 AM
DiggerLin edited the summary of this revision. (Show Details)Nov 13 2019, 7:37 AM
Xiangling_L added inline comments.
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
51 ↗(On Diff #229095)

Please remove this extra blank line.

daltenty added inline comments.Nov 13 2019, 1:46 PM
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
1752

The extra parenthesis around this expression are unnecessary

DiggerLin marked 2 inline comments as done.Nov 14 2019, 12:01 PM
DiggerLin added inline comments.
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
1752

deleted the parenthesis of (GVKind.isMergeableCString() || GVKind.isMergeableConst()) , I prefer to keep the parenthesis of (!GVKind.isCommon() && !GVKind.isBSS() && !GVKind.isData() &&

!GVKind.isReadOnly())  for readable reason.
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
51 ↗(On Diff #229095)

deleted ,thanks

address comment

This revision is now accepted and ready to land.Nov 14 2019, 12:44 PM
This revision was automatically updated to reflect the committed changes.

Test case is missing when the change is landed. Please add it back.