blob: a827fd9de19a49800ad28c7a81a83f5000d7b735 [file] [log] [blame]
Diana Picus22274932016-11-11 08:27:37 +00001//===-- llvm/lib/Target/ARM/ARMCallLowering.cpp - Call lowering -----------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9///
10/// \file
11/// This file implements the lowering of LLVM calls to machine code calls for
12/// GlobalISel.
13///
14//===----------------------------------------------------------------------===//
15
16#include "ARMCallLowering.h"
17
18#include "ARMBaseInstrInfo.h"
19#include "ARMISelLowering.h"
Diana Picus1d8eaf42017-01-25 07:08:53 +000020#include "ARMSubtarget.h"
Diana Picus22274932016-11-11 08:27:37 +000021
Diana Picus32cd9b42017-02-02 14:01:00 +000022#include "llvm/CodeGen/Analysis.h"
Diana Picus22274932016-11-11 08:27:37 +000023#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
Diana Picus1437f6d2016-12-19 11:55:41 +000024#include "llvm/CodeGen/MachineRegisterInfo.h"
Diana Picus22274932016-11-11 08:27:37 +000025
26using namespace llvm;
27
28#ifndef LLVM_BUILD_GLOBAL_ISEL
29#error "This shouldn't be built without GISel"
30#endif
31
32ARMCallLowering::ARMCallLowering(const ARMTargetLowering &TLI)
33 : CallLowering(&TLI) {}
34
Benjamin Kramer061f4a52017-01-13 14:39:03 +000035static bool isSupportedType(const DataLayout &DL, const ARMTargetLowering &TLI,
Diana Picus812caee2016-12-16 12:54:46 +000036 Type *T) {
Diana Picus0c11c7b2017-02-02 14:00:54 +000037 EVT VT = TLI.getValueType(DL, T, true);
Diana Picus7232af32017-02-09 13:09:59 +000038 if (!VT.isSimple() || VT.isVector())
Diana Picus97ae95c2016-12-19 14:08:02 +000039 return false;
40
41 unsigned VTSize = VT.getSimpleVT().getSizeInBits();
Diana Picusca6a8902017-02-16 07:53:07 +000042
43 if (VTSize == 64)
44 // FIXME: Support i64 too
45 return VT.isFloatingPoint();
46
Diana Picusd83df5d2017-01-25 08:47:40 +000047 return VTSize == 1 || VTSize == 8 || VTSize == 16 || VTSize == 32;
Diana Picus812caee2016-12-16 12:54:46 +000048}
49
50namespace {
Diana Picusa6067132017-02-23 13:25:43 +000051/// Helper class for values going out through an ABI boundary (used for handling
52/// function return values and call parameters).
53struct OutgoingValueHandler : public CallLowering::ValueHandler {
54 OutgoingValueHandler(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI,
55 MachineInstrBuilder &MIB, CCAssignFn *AssignFn)
Diana Picus1ffca2a2017-02-28 14:17:53 +000056 : ValueHandler(MIRBuilder, MRI, AssignFn), MIB(MIB), StackSize(0) {}
Diana Picus812caee2016-12-16 12:54:46 +000057
58 unsigned getStackAddress(uint64_t Size, int64_t Offset,
59 MachinePointerInfo &MPO) override {
Diana Picus1ffca2a2017-02-28 14:17:53 +000060 // FIXME: Support smaller sizes (which may require extensions).
61 assert((Size == 4 || Size == 8) && "Unsupported size");
62
63 LLT p0 = LLT::pointer(0, 32);
64 LLT s32 = LLT::scalar(32);
65 unsigned SPReg = MRI.createGenericVirtualRegister(p0);
66 MIRBuilder.buildCopy(SPReg, ARM::SP);
67
68 unsigned OffsetReg = MRI.createGenericVirtualRegister(s32);
69 MIRBuilder.buildConstant(OffsetReg, Offset);
70
71 unsigned AddrReg = MRI.createGenericVirtualRegister(p0);
72 MIRBuilder.buildGEP(AddrReg, SPReg, OffsetReg);
73
74 MPO = MachinePointerInfo::getStack(MIRBuilder.getMF(), Offset);
75 StackSize = std::max(StackSize, Size + Offset);
76 return AddrReg;
Diana Picus812caee2016-12-16 12:54:46 +000077 }
78
79 void assignValueToReg(unsigned ValVReg, unsigned PhysReg,
80 CCValAssign &VA) override {
81 assert(VA.isRegLoc() && "Value shouldn't be assigned to reg");
82 assert(VA.getLocReg() == PhysReg && "Assigning to the wrong reg?");
83
Diana Picusca6a8902017-02-16 07:53:07 +000084 assert(VA.getValVT().getSizeInBits() <= 64 && "Unsupported value size");
85 assert(VA.getLocVT().getSizeInBits() <= 64 && "Unsupported location size");
Diana Picus812caee2016-12-16 12:54:46 +000086
Diana Picus8b6c6be2017-01-25 08:10:40 +000087 unsigned ExtReg = extendRegister(ValVReg, VA);
88 MIRBuilder.buildCopy(PhysReg, ExtReg);
Diana Picus812caee2016-12-16 12:54:46 +000089 MIB.addUse(PhysReg, RegState::Implicit);
90 }
91
92 void assignValueToAddress(unsigned ValVReg, unsigned Addr, uint64_t Size,
93 MachinePointerInfo &MPO, CCValAssign &VA) override {
Diana Picus1ffca2a2017-02-28 14:17:53 +000094 // FIXME: Support smaller sizes (which may require extensions).
95 assert((Size == 4 || Size == 8) && "Unsupported size");
96
97 auto MMO = MIRBuilder.getMF().getMachineMemOperand(
98 MPO, MachineMemOperand::MOStore, Size, /* Alignment */ 0);
99 MIRBuilder.buildStore(ValVReg, Addr, *MMO);
Diana Picus812caee2016-12-16 12:54:46 +0000100 }
101
Diana Picusca6a8902017-02-16 07:53:07 +0000102 unsigned assignCustomValue(const CallLowering::ArgInfo &Arg,
103 ArrayRef<CCValAssign> VAs) override {
104 CCValAssign VA = VAs[0];
105 assert(VA.needsCustom() && "Value doesn't need custom handling");
106 assert(VA.getValVT() == MVT::f64 && "Unsupported type");
107
108 CCValAssign NextVA = VAs[1];
109 assert(NextVA.needsCustom() && "Value doesn't need custom handling");
110 assert(NextVA.getValVT() == MVT::f64 && "Unsupported type");
111
112 assert(VA.getValNo() == NextVA.getValNo() &&
113 "Values belong to different arguments");
114
115 assert(VA.isRegLoc() && "Value should be in reg");
116 assert(NextVA.isRegLoc() && "Value should be in reg");
117
118 unsigned NewRegs[] = {MRI.createGenericVirtualRegister(LLT::scalar(32)),
119 MRI.createGenericVirtualRegister(LLT::scalar(32))};
120
121 MIRBuilder.buildExtract(NewRegs, {0, 32}, Arg.Reg);
122
123 bool IsLittle = MIRBuilder.getMF().getSubtarget<ARMSubtarget>().isLittle();
124 if (!IsLittle)
125 std::swap(NewRegs[0], NewRegs[1]);
126
127 assignValueToReg(NewRegs[0], VA.getLocReg(), VA);
128 assignValueToReg(NewRegs[1], NextVA.getLocReg(), NextVA);
129
130 return 1;
131 }
132
Diana Picus812caee2016-12-16 12:54:46 +0000133 MachineInstrBuilder &MIB;
Diana Picus1ffca2a2017-02-28 14:17:53 +0000134 uint64_t StackSize;
Diana Picus812caee2016-12-16 12:54:46 +0000135};
136} // End anonymous namespace.
137
Diana Picus32cd9b42017-02-02 14:01:00 +0000138void ARMCallLowering::splitToValueTypes(const ArgInfo &OrigArg,
139 SmallVectorImpl<ArgInfo> &SplitArgs,
140 const DataLayout &DL,
141 MachineRegisterInfo &MRI) const {
142 const ARMTargetLowering &TLI = *getTLI<ARMTargetLowering>();
143 LLVMContext &Ctx = OrigArg.Ty->getContext();
144
145 SmallVector<EVT, 4> SplitVTs;
146 SmallVector<uint64_t, 4> Offsets;
147 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, &Offsets, 0);
148
149 assert(SplitVTs.size() == 1 && "Unsupported type");
150
151 // Even if there is no splitting to do, we still want to replace the original
152 // type (e.g. pointer type -> integer).
153 SplitArgs.emplace_back(OrigArg.Reg, SplitVTs[0].getTypeForEVT(Ctx),
154 OrigArg.Flags, OrigArg.IsFixed);
155}
156
Diana Picus812caee2016-12-16 12:54:46 +0000157/// Lower the return value for the already existing \p Ret. This assumes that
158/// \p MIRBuilder's insertion point is correct.
159bool ARMCallLowering::lowerReturnVal(MachineIRBuilder &MIRBuilder,
160 const Value *Val, unsigned VReg,
161 MachineInstrBuilder &Ret) const {
162 if (!Val)
163 // Nothing to do here.
164 return true;
165
166 auto &MF = MIRBuilder.getMF();
167 const auto &F = *MF.getFunction();
168
169 auto DL = MF.getDataLayout();
170 auto &TLI = *getTLI<ARMTargetLowering>();
171 if (!isSupportedType(DL, TLI, Val->getType()))
Diana Picus22274932016-11-11 08:27:37 +0000172 return false;
173
Diana Picus32cd9b42017-02-02 14:01:00 +0000174 SmallVector<ArgInfo, 4> SplitVTs;
175 ArgInfo RetInfo(VReg, Val->getType());
176 setArgFlags(RetInfo, AttributeSet::ReturnIndex, DL, F);
177 splitToValueTypes(RetInfo, SplitVTs, DL, MF.getRegInfo());
178
Diana Picus812caee2016-12-16 12:54:46 +0000179 CCAssignFn *AssignFn =
180 TLI.CCAssignFnForReturn(F.getCallingConv(), F.isVarArg());
Diana Picus22274932016-11-11 08:27:37 +0000181
Diana Picusa6067132017-02-23 13:25:43 +0000182 OutgoingValueHandler RetHandler(MIRBuilder, MF.getRegInfo(), Ret, AssignFn);
Diana Picus32cd9b42017-02-02 14:01:00 +0000183 return handleAssignments(MIRBuilder, SplitVTs, RetHandler);
Diana Picus812caee2016-12-16 12:54:46 +0000184}
185
186bool ARMCallLowering::lowerReturn(MachineIRBuilder &MIRBuilder,
187 const Value *Val, unsigned VReg) const {
188 assert(!Val == !VReg && "Return value without a vreg");
189
Diana Picus4f8c3e12017-01-13 09:37:56 +0000190 auto Ret = MIRBuilder.buildInstrNoInsert(ARM::BX_RET).add(predOps(ARMCC::AL));
Diana Picus812caee2016-12-16 12:54:46 +0000191
192 if (!lowerReturnVal(MIRBuilder, Val, VReg, Ret))
193 return false;
194
195 MIRBuilder.insertInstr(Ret);
Diana Picus22274932016-11-11 08:27:37 +0000196 return true;
197}
198
Diana Picus812caee2016-12-16 12:54:46 +0000199namespace {
Diana Picusa8cb0cd2017-02-23 14:18:41 +0000200/// Helper class for values coming in through an ABI boundary (used for handling
201/// formal arguments and call return values).
202struct IncomingValueHandler : public CallLowering::ValueHandler {
203 IncomingValueHandler(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI,
204 CCAssignFn AssignFn)
Tim Northoverd9433542017-01-17 22:30:10 +0000205 : ValueHandler(MIRBuilder, MRI, AssignFn) {}
Diana Picus812caee2016-12-16 12:54:46 +0000206
207 unsigned getStackAddress(uint64_t Size, int64_t Offset,
208 MachinePointerInfo &MPO) override {
Diana Picusca6a8902017-02-16 07:53:07 +0000209 assert((Size == 1 || Size == 2 || Size == 4 || Size == 8) &&
210 "Unsupported size");
Diana Picus1437f6d2016-12-19 11:55:41 +0000211
212 auto &MFI = MIRBuilder.getMF().getFrameInfo();
213
214 int FI = MFI.CreateFixedObject(Size, Offset, true);
215 MPO = MachinePointerInfo::getFixedStack(MIRBuilder.getMF(), FI);
216
217 unsigned AddrReg =
218 MRI.createGenericVirtualRegister(LLT::pointer(MPO.getAddrSpace(), 32));
219 MIRBuilder.buildFrameIndex(AddrReg, FI);
220
221 return AddrReg;
222 }
223
224 void assignValueToAddress(unsigned ValVReg, unsigned Addr, uint64_t Size,
225 MachinePointerInfo &MPO, CCValAssign &VA) override {
Diana Picusca6a8902017-02-16 07:53:07 +0000226 assert((Size == 1 || Size == 2 || Size == 4 || Size == 8) &&
227 "Unsupported size");
Diana Picus278c7222017-01-26 09:20:47 +0000228
229 if (VA.getLocInfo() == CCValAssign::SExt ||
230 VA.getLocInfo() == CCValAssign::ZExt) {
Diana Picusa8cb0cd2017-02-23 14:18:41 +0000231 // If the value is zero- or sign-extended, its size becomes 4 bytes, so
232 // that's what we should load.
Diana Picus278c7222017-01-26 09:20:47 +0000233 Size = 4;
234 assert(MRI.getType(ValVReg).isScalar() && "Only scalars supported atm");
235 MRI.setType(ValVReg, LLT::scalar(32));
236 }
Diana Picus1437f6d2016-12-19 11:55:41 +0000237
238 auto MMO = MIRBuilder.getMF().getMachineMemOperand(
239 MPO, MachineMemOperand::MOLoad, Size, /* Alignment */ 0);
240 MIRBuilder.buildLoad(ValVReg, Addr, *MMO);
Diana Picus812caee2016-12-16 12:54:46 +0000241 }
242
243 void assignValueToReg(unsigned ValVReg, unsigned PhysReg,
244 CCValAssign &VA) override {
245 assert(VA.isRegLoc() && "Value shouldn't be assigned to reg");
246 assert(VA.getLocReg() == PhysReg && "Assigning to the wrong reg?");
247
Diana Picusca6a8902017-02-16 07:53:07 +0000248 assert(VA.getValVT().getSizeInBits() <= 64 && "Unsupported value size");
249 assert(VA.getLocVT().getSizeInBits() <= 64 && "Unsupported location size");
Diana Picus812caee2016-12-16 12:54:46 +0000250
Diana Picusa8cb0cd2017-02-23 14:18:41 +0000251 // The necesary extensions are handled on the other side of the ABI
252 // boundary.
253 markPhysRegUsed(PhysReg);
Diana Picus812caee2016-12-16 12:54:46 +0000254 MIRBuilder.buildCopy(ValVReg, PhysReg);
255 }
Diana Picusca6a8902017-02-16 07:53:07 +0000256
Diana Picusa6067132017-02-23 13:25:43 +0000257 unsigned assignCustomValue(const ARMCallLowering::ArgInfo &Arg,
Diana Picusca6a8902017-02-16 07:53:07 +0000258 ArrayRef<CCValAssign> VAs) override {
259 CCValAssign VA = VAs[0];
260 assert(VA.needsCustom() && "Value doesn't need custom handling");
261 assert(VA.getValVT() == MVT::f64 && "Unsupported type");
262
263 CCValAssign NextVA = VAs[1];
264 assert(NextVA.needsCustom() && "Value doesn't need custom handling");
265 assert(NextVA.getValVT() == MVT::f64 && "Unsupported type");
266
267 assert(VA.getValNo() == NextVA.getValNo() &&
268 "Values belong to different arguments");
269
270 assert(VA.isRegLoc() && "Value should be in reg");
271 assert(NextVA.isRegLoc() && "Value should be in reg");
272
273 unsigned NewRegs[] = {MRI.createGenericVirtualRegister(LLT::scalar(32)),
274 MRI.createGenericVirtualRegister(LLT::scalar(32))};
275
276 assignValueToReg(NewRegs[0], VA.getLocReg(), VA);
277 assignValueToReg(NewRegs[1], NextVA.getLocReg(), NextVA);
278
279 bool IsLittle = MIRBuilder.getMF().getSubtarget<ARMSubtarget>().isLittle();
280 if (!IsLittle)
281 std::swap(NewRegs[0], NewRegs[1]);
282
283 MIRBuilder.buildSequence(Arg.Reg, NewRegs, {0, 32});
284
285 return 1;
286 }
Diana Picusa8cb0cd2017-02-23 14:18:41 +0000287
288 /// Marking a physical register as used is different between formal
289 /// parameters, where it's a basic block live-in, and call returns, where it's
290 /// an implicit-def of the call instruction.
291 virtual void markPhysRegUsed(unsigned PhysReg) = 0;
292};
293
294struct FormalArgHandler : public IncomingValueHandler {
295 FormalArgHandler(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI,
296 CCAssignFn AssignFn)
297 : IncomingValueHandler(MIRBuilder, MRI, AssignFn) {}
298
299 void markPhysRegUsed(unsigned PhysReg) override {
300 MIRBuilder.getMBB().addLiveIn(PhysReg);
301 }
Diana Picus812caee2016-12-16 12:54:46 +0000302};
303} // End anonymous namespace
304
Diana Picus22274932016-11-11 08:27:37 +0000305bool ARMCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
306 const Function &F,
307 ArrayRef<unsigned> VRegs) const {
Diana Picus812caee2016-12-16 12:54:46 +0000308 // Quick exit if there aren't any args
309 if (F.arg_empty())
310 return true;
311
Diana Picus812caee2016-12-16 12:54:46 +0000312 if (F.isVarArg())
313 return false;
314
Diana Picus32cd9b42017-02-02 14:01:00 +0000315 auto &MF = MIRBuilder.getMF();
316 auto DL = MF.getDataLayout();
Diana Picus812caee2016-12-16 12:54:46 +0000317 auto &TLI = *getTLI<ARMTargetLowering>();
318
Diana Picus7232af32017-02-09 13:09:59 +0000319 auto Subtarget = TLI.getSubtarget();
320
321 if (Subtarget->isThumb())
322 return false;
323
324 // FIXME: Support soft float (when we're ready to generate libcalls)
325 if (Subtarget->useSoftFloat() || !Subtarget->hasVFP2())
Diana Picus1d8eaf42017-01-25 07:08:53 +0000326 return false;
327
Diana Picus812caee2016-12-16 12:54:46 +0000328 auto &Args = F.getArgumentList();
Diana Picus278c7222017-01-26 09:20:47 +0000329 for (auto &Arg : Args)
Diana Picus812caee2016-12-16 12:54:46 +0000330 if (!isSupportedType(DL, TLI, Arg.getType()))
331 return false;
332
333 CCAssignFn *AssignFn =
334 TLI.CCAssignFnForCall(F.getCallingConv(), F.isVarArg());
335
336 SmallVector<ArgInfo, 8> ArgInfos;
337 unsigned Idx = 0;
338 for (auto &Arg : Args) {
339 ArgInfo AInfo(VRegs[Idx], Arg.getType());
340 setArgFlags(AInfo, Idx + 1, DL, F);
Diana Picus32cd9b42017-02-02 14:01:00 +0000341 splitToValueTypes(AInfo, ArgInfos, DL, MF.getRegInfo());
Diana Picus812caee2016-12-16 12:54:46 +0000342 Idx++;
343 }
344
Tim Northoverd9433542017-01-17 22:30:10 +0000345 FormalArgHandler ArgHandler(MIRBuilder, MIRBuilder.getMF().getRegInfo(),
346 AssignFn);
347 return handleAssignments(MIRBuilder, ArgInfos, ArgHandler);
Diana Picus22274932016-11-11 08:27:37 +0000348}
Diana Picus613b6562017-02-21 11:33:59 +0000349
Diana Picusa8cb0cd2017-02-23 14:18:41 +0000350namespace {
351struct CallReturnHandler : public IncomingValueHandler {
352 CallReturnHandler(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI,
353 MachineInstrBuilder MIB, CCAssignFn *AssignFn)
354 : IncomingValueHandler(MIRBuilder, MRI, AssignFn), MIB(MIB) {}
355
356 void markPhysRegUsed(unsigned PhysReg) override {
357 MIB.addDef(PhysReg, RegState::Implicit);
358 }
359
360 MachineInstrBuilder MIB;
361};
362} // End anonymous namespace.
363
Diana Picus613b6562017-02-21 11:33:59 +0000364bool ARMCallLowering::lowerCall(MachineIRBuilder &MIRBuilder,
365 const MachineOperand &Callee,
366 const ArgInfo &OrigRet,
367 ArrayRef<ArgInfo> OrigArgs) const {
Diana Picusa6067132017-02-23 13:25:43 +0000368 MachineFunction &MF = MIRBuilder.getMF();
369 const auto &TLI = *getTLI<ARMTargetLowering>();
370 const auto &DL = MF.getDataLayout();
Diana Picus613b6562017-02-21 11:33:59 +0000371 const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
Diana Picusa6067132017-02-23 13:25:43 +0000372 MachineRegisterInfo &MRI = MF.getRegInfo();
Diana Picus613b6562017-02-21 11:33:59 +0000373
374 if (MF.getSubtarget<ARMSubtarget>().genLongCalls())
375 return false;
376
Diana Picus1ffca2a2017-02-28 14:17:53 +0000377 auto CallSeqStart = MIRBuilder.buildInstr(ARM::ADJCALLSTACKDOWN);
Diana Picus613b6562017-02-21 11:33:59 +0000378
Diana Picusa6067132017-02-23 13:25:43 +0000379 // FIXME: This is the calling convention of the caller - we should use the
380 // calling convention of the callee instead.
381 auto CallConv = MF.getFunction()->getCallingConv();
382
383 // Create the call instruction so we can add the implicit uses of arg
384 // registers, but don't insert it yet.
385 auto MIB = MIRBuilder.buildInstrNoInsert(ARM::BLX).add(Callee).addRegMask(
386 TRI->getCallPreservedMask(MF, CallConv));
387
388 SmallVector<ArgInfo, 8> ArgInfos;
389 for (auto Arg : OrigArgs) {
390 if (!isSupportedType(DL, TLI, Arg.Ty))
391 return false;
392
393 if (!Arg.IsFixed)
394 return false;
395
396 splitToValueTypes(Arg, ArgInfos, DL, MRI);
397 }
398
399 auto ArgAssignFn = TLI.CCAssignFnForCall(CallConv, /*IsVarArg=*/false);
400 OutgoingValueHandler ArgHandler(MIRBuilder, MRI, MIB, ArgAssignFn);
401 if (!handleAssignments(MIRBuilder, ArgInfos, ArgHandler))
402 return false;
403
404 // Now we can add the actual call instruction to the correct basic block.
405 MIRBuilder.insertInstr(MIB);
Diana Picus613b6562017-02-21 11:33:59 +0000406
Diana Picusa8cb0cd2017-02-23 14:18:41 +0000407 if (!OrigRet.Ty->isVoidTy()) {
408 if (!isSupportedType(DL, TLI, OrigRet.Ty))
409 return false;
410
411 ArgInfos.clear();
412 splitToValueTypes(OrigRet, ArgInfos, DL, MRI);
413
414 auto RetAssignFn = TLI.CCAssignFnForReturn(CallConv, /*IsVarArg=*/false);
415 CallReturnHandler RetHandler(MIRBuilder, MRI, MIB, RetAssignFn);
416 if (!handleAssignments(MIRBuilder, ArgInfos, RetHandler))
417 return false;
418 }
419
Diana Picus1ffca2a2017-02-28 14:17:53 +0000420 // We now know the size of the stack - update the ADJCALLSTACKDOWN
421 // accordingly.
422 CallSeqStart.addImm(ArgHandler.StackSize).add(predOps(ARMCC::AL));
423
Diana Picus613b6562017-02-21 11:33:59 +0000424 MIRBuilder.buildInstr(ARM::ADJCALLSTACKUP)
Diana Picus1ffca2a2017-02-28 14:17:53 +0000425 .addImm(ArgHandler.StackSize)
Diana Picus613b6562017-02-21 11:33:59 +0000426 .addImm(0)
427 .add(predOps(ARMCC::AL));
428
429 return true;
430}