[mips] Add the following MIPS options that control gp-relative addressing of
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>
Thu, 6 Nov 2014 13:20:12 +0000 (13:20 +0000)
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>
Thu, 6 Nov 2014 13:20:12 +0000 (13:20 +0000)
commitb38db1eff84cb954a59007ad63bfe3bd1a749fb7
treec83cdef37f6977c24e2231e983544e2c2e43e0ec
parent9760a44d1a3480ef17bdb052f86ee33bde830116
[mips] Add the following MIPS options that control gp-relative addressing of
small data items: -mgpopt, -mlocal-sdata, -mextern-sdata. Implement gp-relative
addressing for constants.

Differential Revision: http://reviews.llvm.org/D4903

llvm-svn: 221450
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/lib/Target/Mips/MipsISelLowering.h
llvm/lib/Target/Mips/MipsSubtarget.cpp
llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
llvm/lib/Target/Mips/MipsTargetObjectFile.h
llvm/test/CodeGen/Mips/small-section-reserve-gp.ll