OSDN Git Service

[MIPS GlobalISel] Add lowerCall
authorPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 6 Jun 2018 07:24:52 +0000 (07:24 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 6 Jun 2018 07:24:52 +0000 (07:24 +0000)
commite2b017e8ff80ad17c78a498c7f0c174c1e38e3c5
treef9f66f60da4d5dfde0e700f38769aef3ca6b6b19
parentac290fc00ee4e2b1b7d65cbbf79c1b0bd47caddb
[MIPS GlobalISel] Add lowerCall

Add minimal support to lower function calls.
Support only functions with arguments/return that go through registers
and have type i32.

Patch by Petar Avramovic.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334071 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsCallLowering.cpp
lib/Target/Mips/MipsCallLowering.h
test/CodeGen/Mips/GlobalISel/irtranslator/call.ll [new file with mode: 0644]
test/CodeGen/Mips/GlobalISel/llvm-ir/call.ll [new file with mode: 0644]