[MIPS GlobalISel] Select global address
authorPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 1 Aug 2018 09:03:23 +0000 (09:03 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 1 Aug 2018 09:03:23 +0000 (09:03 +0000)
commit64c10ba8e23dcf77c97def98c4a16eefa2b21d8d
tree25bda35f753c6dff98e64a50cada4e762d03ac69
parent676dc17db09090782ad17fadabc765264f1ca435
[MIPS GlobalISel] Select global address

Select G_GLOBAL_VALUE for position dependent code.

Patch by Petar Avramovic.

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

llvm-svn: 338499
llvm/lib/Target/Mips/MipsInstructionSelector.cpp
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/gloal_address.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/irtranslator/global_address.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/global_address.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/global_address.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/global_address.mir [new file with mode: 0644]