The patch handles the addition of global variables to the table of contents for 64-bit AIX. This was previously supported for 32-bit (https://reviews.llvm.org/D101178).
The patch expands toc-data attribute support to 64-bit.
Paths
| Differential D114654
[PowerPC][AIX] Add toc-data support for 64-bit AIX ClosedPublic Authored by yoalione on Nov 26 2021, 11:56 AM.
Details
Summary The patch handles the addition of global variables to the table of contents for 64-bit AIX. This was previously supported for 32-bit (https://reviews.llvm.org/D101178). The patch expands toc-data attribute support to 64-bit.
Diff Detail Event TimelineHerald added subscribers: shchenz, kbarton, hiraditya, nemanjai. · View Herald TranscriptNov 26 2021, 11:56 AM Comment Actions Nice work Yousuf. Can you start by adding the context for the patch (for example if you used git diff or git show then adding -U9999 will give you 9999 lines of surrounding context in the diff), and running clang format on the patch?
This revision is now accepted and ready to land.Nov 29 2021, 12:49 PM Comment Actions
Please note that you probably need at least another 9 to make it -U99999 since there will be files that are well over 10kloc (looking at you PPCISelLowering.cpp). :) Comment Actions My comments are just minor nits that don't require another review and can be addressed when committing the patch.
Closed by commit rG415e821a5089: [PowerPC][AIX] Add toc-data support for 64-bit AIX small code model. (authored by yoalione, committed by sfertile). · Explain WhyDec 1 2021, 7:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 390399 llvm/lib/Target/PowerPC/P10InstrResources.td
llvm/lib/Target/PowerPC/P9InstrResources.td
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/test/CodeGen/PowerPC/basic-toc-data-extern.ll
llvm/test/CodeGen/PowerPC/basic-toc-data-local-linkage.ll
llvm/test/CodeGen/PowerPC/toc-data.ll
|
minor nit: no need to have an if/else for this. We don't have to be too formal with assert messages and having "Invalid operand for ADDItoc[8]." is fine.