HomePhabricator

[mips] Implement .cplocal directive

Description

[mips] Implement .cplocal directive

This directive forces to use the alternate register for context pointer.
For example, this code:

.cplocal $4
jal foo

expands to:

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

Differential Revision: https://reviews.llvm.org/D64743

Details

Committed
atanasyanJul 17 2019, 1:11 AM
Differential Revision
D64743: [mips] Implement .cplocal directive
Parents
rL366299: [mips] Support the "o" inline asm constraint
Branches
Unknown
Tags
Unknown