[MIPS GlobalISel] Select instructions to load and store i32 on stack
authorPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 16 Jul 2018 13:29:32 +0000 (13:29 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 16 Jul 2018 13:29:32 +0000 (13:29 +0000)
commit021e4c82eb600bdc9a55263aa6c0e8d93b7d7822
treebc5c1a156fda44b203ab17db459845b4271ae381
parente254b0f8c7564e40841fa1b50957e18739af82ce
[MIPS GlobalISel] Select instructions to load and store i32 on stack

Add code for selection of G_LOAD, G_STORE, G_GEP, G_FRAMEINDEX and
G_CONSTANT. Support loads and stores of i32 values.

Patch by Petar Avramovic.

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

llvm-svn: 337168
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/stack_args.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/stack_args.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/stack_args.mir [new file with mode: 0644]