[ARM] GlobalISel: Support loading from the stack
authorDiana Picus <diana.picus@linaro.org>
Mon, 19 Dec 2016 11:26:31 +0000 (11:26 +0000)
committerDiana Picus <diana.picus@linaro.org>
Mon, 19 Dec 2016 11:26:31 +0000 (11:26 +0000)
commit519807f7beec071583e5c869ac2666dac2e50542
treef2aeddc1cf608fd78304498b303a038f1e295503
parentb29a15ecad3f1374827820db66bd872dae89ee0e
[ARM] GlobalISel: Support loading from the stack

Add support for selecting simple G_LOAD and G_FRAME_INDEX instructions (32-bit
scalars only). This will be useful for functions that need to pass arguments on
the stack.

First part of https://reviews.llvm.org/D27195.

llvm-svn: 290096
llvm/lib/Target/ARM/ARMInstructionSelector.cpp
llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp
llvm/test/CodeGen/ARM/GlobalISel/arm-instruction-select.mir
llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir