Handle position independent code for MIPS32.
When callee is global address, lower call will emit callee as
G_GLOBAL_VALUE and add target flag if needed.
Support $gp in getRegBankFromRegClass().
Select G_GLOBAL_VALUE, specially handle case when
there are target flags attached by lowerCall.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with a nit.
lib/Target/Mips/MipsCallLowering.cpp | ||
---|---|---|
527 ↗ | (On Diff #201898) | You could write it as Callee.isGlobal() && TM.isPositionIndependent(); |