diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-12-16 12:54:46 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-12-16 12:54:46 +0000 |
commit | 812caee65a1c13ebaf4bc419ab1277523339bd27 (patch) | |
tree | df4e5e82ef5f191438f5c7062441ef8d6ab57326 /llvm/lib/Target/ARM/ARMLegalizerInfo.cpp | |
parent | 85c921104381980518654110e9cd22f9134ba338 (diff) | |
download | bcm5719-llvm-812caee65a1c13ebaf4bc419ab1277523339bd27.tar.gz bcm5719-llvm-812caee65a1c13ebaf4bc419ab1277523339bd27.zip |
[ARM] GlobalISel: Select add i32, i32
Add the minimal support necessary to select a function that returns the sum of
two i32 values.
This includes some support for argument/return lowering of i32 values through
registers, as well as the handling of copy and add instructions throughout the
GlobalISel pipeline.
Differential Revision: https://reviews.llvm.org/D26677
llvm-svn: 289940
Diffstat (limited to 'llvm/lib/Target/ARM/ARMLegalizerInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMLegalizerInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp index f0f00f0acbc..65679507aca 100644 --- a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp +++ b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp @@ -24,5 +24,10 @@ using namespace llvm; #endif ARMLegalizerInfo::ARMLegalizerInfo() { + using namespace TargetOpcode; + const LLT s32 = LLT::scalar(32); + + setAction({G_ADD, s32}, Legal); + computeTables(); } |