Since we are planning to add ADDIStocHA for 32bit in later patch, we decided to change 64bit one first to follow naming convention with 8 behind opcode.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Please also remember to add [PowerPC] to title for all powerpc related patches. Thanks.
Should also update one comments .
lib/Target/PowerPC/PPCISelLowering.cpp:14316: // is that for large code model we have ADDISTocHa + LDtocL and for
llvm/lib/Target/PowerPC/P9InstrResources.td | ||
---|---|---|
151 | Do we have plan to add ADDItocL8 as well? |
llvm/lib/Target/PowerPC/P9InstrResources.td | ||
---|---|---|
151 |
Not in the near term, although from what I understand of AIX we will need to add one if we add an option similar to XL's -qtocdata for 32-bit code.
I think this is a good suggestion |
use (8)? + update a comment
llvm/lib/Target/PowerPC/P9InstrResources.td | ||
---|---|---|
151 | Thank you for your suggestion, I will update it to use (8)?. And we haven't spot any place where ADDItocL is needed on AIX since AIX is always toc-referenced. So I guess probably we don't need to update it for now. |
Do we have plan to add ADDItocL8 as well?
Why not use (8)? so that we don't need to update this again for ADDItocL8 ?