Page MenuHomePhabricator

[mips] Implement .cplocal directive
ClosedPublic

Authored by atanasyan on Jul 15 2019, 7:39 AM.

Details

Summary

This directive forces to use an alternate register for context pointer.

For example, this code:

.cplocal $4
jal foo

expands to:

ld    $25, %call16(foo)($4)
jalr  $25

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan created this revision.Jul 15 2019, 7:39 AM
This revision is now accepted and ready to land.Jul 16 2019, 4:20 AM
This revision was automatically updated to reflect the committed changes.