[MIPS GlobalISel] Lower arguments using stack
authorPetar Jovanovic <petar.jovanovic@mips.com>
Tue, 3 Jul 2018 09:31:48 +0000 (09:31 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Tue, 3 Jul 2018 09:31:48 +0000 (09:31 +0000)
commit226e6117ae8b360ec4398510335c3c84469e06b4
treee16d4e1a7d6f8669654dda031ecef2728a15bca4
parentb427d4eced315ffa2b6f5bd0f7ee24c9c869126a
[MIPS GlobalISel] Lower arguments using stack

Lower more than 4 arguments using stack. This patch targets MIPS32.
It supports only functions with arguments of type i32.

Patch by Petar Avramovic.

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

llvm-svn: 336185
llvm/lib/Target/Mips/MipsCallLowering.cpp
llvm/lib/Target/Mips/MipsCallLowering.h
llvm/test/CodeGen/Mips/GlobalISel/irtranslator/stack_args.ll [new file with mode: 0644]