[MIPS GlobalISel] Select add i32, i32
authorPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 11 Apr 2018 15:12:32 +0000 (15:12 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 11 Apr 2018 15:12:32 +0000 (15:12 +0000)
commit366857a23ab44247d5c8651bb067920b0306626b
treeb0610ebd4f28881f4e5ec6c4fc390df01d6db47f
parent5ba379557d5a66f3dd3346ebbb1eb83f569886cd
[MIPS GlobalISel] Select add i32, i32

Add the minimal support necessary to lower a function that returns the
sum of two i32 values.
Support argument/return lowering of i32 values through registers only.
Add tablegen for regbankselect and instructionselect.

Patch by Petar Avramovic.

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

llvm-svn: 329819
16 files changed:
llvm/lib/Target/Mips/CMakeLists.txt
llvm/lib/Target/Mips/Mips.td
llvm/lib/Target/Mips/MipsCallLowering.cpp
llvm/lib/Target/Mips/MipsCallLowering.h
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/lib/Target/Mips/MipsISelLowering.h
llvm/lib/Target/Mips/MipsInstructionSelector.cpp
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
llvm/lib/Target/Mips/MipsRegisterBankInfo.h
llvm/lib/Target/Mips/MipsRegisterBanks.td [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/add.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/irtranslator/add.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/add.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/add.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/add.mir [new file with mode: 0644]