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
Event Timeline
Comment Actions
LGTM with a nit.
lib/Target/Mips/MipsCallLowering.cpp | ||
---|---|---|
527 | You could write it as Callee.isGlobal() && TM.isPositionIndependent(); |
You could write it as Callee.isGlobal() && TM.isPositionIndependent();