diff options
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMLegalizerInfo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp index 6680196..255ea4b 100644 --- a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp +++ b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp @@ -25,7 +25,11 @@ using namespace llvm; ARMLegalizerInfo::ARMLegalizerInfo() { using namespace TargetOpcode; + const LLT p0 = LLT::pointer(0, 32); + + const LLT s8 = LLT::scalar(8); + const LLT s16 = LLT::scalar(16); const LLT s32 = LLT::scalar(32); setAction({G_FRAME_INDEX, p0}, Legal); @@ -33,7 +37,8 @@ ARMLegalizerInfo::ARMLegalizerInfo() { setAction({G_LOAD, s32}, Legal); setAction({G_LOAD, 1, p0}, Legal); - setAction({G_ADD, s32}, Legal); + for (auto Ty : {s8, s16, s32}) + setAction({G_ADD, Ty}, Legal); computeTables(); } |