diff options
| author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-04-30 11:28:42 +0000 |
|---|---|---|
| committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-04-30 11:28:42 +0000 |
| commit | 525bc4f708c99546bb634e285c706cc3cd61d659 (patch) | |
| tree | a37ad54f92a05206deea285688eebbfdb56a5552 /llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp | |
| parent | c0284d118f730e343d75762118385593e5aa6ce4 (diff) | |
| download | bcm5719-llvm-525bc4f708c99546bb634e285c706cc3cd61d659.tar.gz bcm5719-llvm-525bc4f708c99546bb634e285c706cc3cd61d659.zip | |
[mips] Add support for .cpload.
Summary:
This directive is used for setting up $gp in the beginning of a function.
It expands to three instructions if PIC is enabled:
lui $gp, %hi(_gp_disp)
addui $gp, $gp, %lo(_gp_disp)
addu $gp, $gp, $reg
_gp_disp is a special symbol that the linker sets to the distance between
the lui instruction and the context pointer (_gp).
Reviewers: dsanders
Reviewed By: dsanders
Differential Revision: http://reviews.llvm.org/D3480
llvm-svn: 207637
Diffstat (limited to 'llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp')
0 files changed, 0 insertions, 0 deletions

