OSDN Git Service

Implements simple returns and call args for Mips.
authorJim Stichnoth <stichnot@chromium.org>
Wed, 21 Oct 2015 13:57:46 +0000 (06:57 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Wed, 21 Oct 2015 13:57:46 +0000 (06:57 -0700)
commitac8da5cf6f08122c15db29215a3eb137515528d9
tree927e88bb2622cd843fcdc6996b235d597192ee47
parent4c2153b1708548f595cf82f38224c88b4fed21ed
Implements simple returns and call args for Mips.
This patch is essentially the same as for ARM https://codereview.chromium.org/1127963004

I have incorporated the new 64 bit register work which was not available
at the time of this earlier patch.

The MIPS O32 Abi is not perfect on this patch but I am more or less following
the development of the ARM patches and those were preliminary at this
stage too. I will make corrections in a later patch when I incorporate
more of the ARM patches.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=4167
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/1416493002 .
src/IceInstMIPS32.cpp
src/IceInstMIPS32.def
src/IceInstMIPS32.h
src/IceRegistersMIPS32.h
src/IceTargetLoweringMIPS32.cpp
src/IceTargetLoweringMIPS32.h
tests_lit/llvm2ice_tests/int-arg.ll
tests_lit/llvm2ice_tests/return_immediates.ll