10b57cec5SDimitry Andric //===-- CallingConvLower.cpp - Calling Conventions ------------------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric // This file implements the CCState class, used for lowering and implementing
100b57cec5SDimitry Andric // calling conventions.
110b57cec5SDimitry Andric //
120b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
130b57cec5SDimitry Andric
140b57cec5SDimitry Andric #include "llvm/CodeGen/CallingConvLower.h"
150b57cec5SDimitry Andric #include "llvm/CodeGen/MachineFrameInfo.h"
16*af732203SDimitry Andric #include "llvm/CodeGen/MachineFunction.h"
170b57cec5SDimitry Andric #include "llvm/CodeGen/MachineRegisterInfo.h"
180b57cec5SDimitry Andric #include "llvm/CodeGen/TargetLowering.h"
190b57cec5SDimitry Andric #include "llvm/CodeGen/TargetRegisterInfo.h"
200b57cec5SDimitry Andric #include "llvm/CodeGen/TargetSubtargetInfo.h"
210b57cec5SDimitry Andric #include "llvm/IR/DataLayout.h"
220b57cec5SDimitry Andric #include "llvm/Support/Debug.h"
230b57cec5SDimitry Andric #include "llvm/Support/ErrorHandling.h"
240b57cec5SDimitry Andric #include "llvm/Support/SaveAndRestore.h"
250b57cec5SDimitry Andric #include "llvm/Support/raw_ostream.h"
260b57cec5SDimitry Andric #include <algorithm>
270b57cec5SDimitry Andric
280b57cec5SDimitry Andric using namespace llvm;
290b57cec5SDimitry Andric
CCState(CallingConv::ID CC,bool isVarArg,MachineFunction & mf,SmallVectorImpl<CCValAssign> & locs,LLVMContext & C)300b57cec5SDimitry Andric CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf,
310b57cec5SDimitry Andric SmallVectorImpl<CCValAssign> &locs, LLVMContext &C)
320b57cec5SDimitry Andric : CallingConv(CC), IsVarArg(isVarArg), MF(mf),
330b57cec5SDimitry Andric TRI(*MF.getSubtarget().getRegisterInfo()), Locs(locs), Context(C) {
340b57cec5SDimitry Andric // No stack is used.
350b57cec5SDimitry Andric StackOffset = 0;
360b57cec5SDimitry Andric
370b57cec5SDimitry Andric clearByValRegsInfo();
380b57cec5SDimitry Andric UsedRegs.resize((TRI.getNumRegs()+31)/32);
390b57cec5SDimitry Andric }
400b57cec5SDimitry Andric
410b57cec5SDimitry Andric /// Allocate space on the stack large enough to pass an argument by value.
420b57cec5SDimitry Andric /// The size and alignment information of the argument is encoded in
430b57cec5SDimitry Andric /// its parameter attribute.
HandleByVal(unsigned ValNo,MVT ValVT,MVT LocVT,CCValAssign::LocInfo LocInfo,int MinSize,Align MinAlign,ISD::ArgFlagsTy ArgFlags)448bcb0991SDimitry Andric void CCState::HandleByVal(unsigned ValNo, MVT ValVT, MVT LocVT,
458bcb0991SDimitry Andric CCValAssign::LocInfo LocInfo, int MinSize,
465ffd83dbSDimitry Andric Align MinAlign, ISD::ArgFlagsTy ArgFlags) {
475ffd83dbSDimitry Andric Align Alignment = ArgFlags.getNonZeroByValAlign();
480b57cec5SDimitry Andric unsigned Size = ArgFlags.getByValSize();
490b57cec5SDimitry Andric if (MinSize > (int)Size)
500b57cec5SDimitry Andric Size = MinSize;
518bcb0991SDimitry Andric if (MinAlign > Alignment)
528bcb0991SDimitry Andric Alignment = MinAlign;
538bcb0991SDimitry Andric ensureMaxAlignment(Alignment);
545ffd83dbSDimitry Andric MF.getSubtarget().getTargetLowering()->HandleByVal(this, Size, Alignment);
550b57cec5SDimitry Andric Size = unsigned(alignTo(Size, MinAlign));
565ffd83dbSDimitry Andric unsigned Offset = AllocateStack(Size, Alignment);
570b57cec5SDimitry Andric addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
580b57cec5SDimitry Andric }
590b57cec5SDimitry Andric
600b57cec5SDimitry Andric /// Mark a register and all of its aliases as allocated.
MarkAllocated(MCPhysReg Reg)615ffd83dbSDimitry Andric void CCState::MarkAllocated(MCPhysReg Reg) {
620b57cec5SDimitry Andric for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI)
630b57cec5SDimitry Andric UsedRegs[*AI / 32] |= 1 << (*AI & 31);
640b57cec5SDimitry Andric }
650b57cec5SDimitry Andric
MarkUnallocated(MCPhysReg Reg)66*af732203SDimitry Andric void CCState::MarkUnallocated(MCPhysReg Reg) {
67*af732203SDimitry Andric for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI)
68*af732203SDimitry Andric UsedRegs[*AI / 32] &= ~(1 << (*AI & 31));
69*af732203SDimitry Andric }
70*af732203SDimitry Andric
IsShadowAllocatedReg(MCRegister Reg) const715ffd83dbSDimitry Andric bool CCState::IsShadowAllocatedReg(MCRegister Reg) const {
720b57cec5SDimitry Andric if (!isAllocated(Reg))
730b57cec5SDimitry Andric return false;
740b57cec5SDimitry Andric
750b57cec5SDimitry Andric for (auto const &ValAssign : Locs) {
760b57cec5SDimitry Andric if (ValAssign.isRegLoc()) {
770b57cec5SDimitry Andric for (MCRegAliasIterator AI(ValAssign.getLocReg(), &TRI, true);
780b57cec5SDimitry Andric AI.isValid(); ++AI) {
790b57cec5SDimitry Andric if (*AI == Reg)
800b57cec5SDimitry Andric return false;
810b57cec5SDimitry Andric }
820b57cec5SDimitry Andric }
830b57cec5SDimitry Andric }
840b57cec5SDimitry Andric return true;
850b57cec5SDimitry Andric }
860b57cec5SDimitry Andric
870b57cec5SDimitry Andric /// Analyze an array of argument values,
880b57cec5SDimitry Andric /// incorporating info about the formals into this state.
890b57cec5SDimitry Andric void
AnalyzeFormalArguments(const SmallVectorImpl<ISD::InputArg> & Ins,CCAssignFn Fn)900b57cec5SDimitry Andric CCState::AnalyzeFormalArguments(const SmallVectorImpl<ISD::InputArg> &Ins,
910b57cec5SDimitry Andric CCAssignFn Fn) {
920b57cec5SDimitry Andric unsigned NumArgs = Ins.size();
930b57cec5SDimitry Andric
940b57cec5SDimitry Andric for (unsigned i = 0; i != NumArgs; ++i) {
950b57cec5SDimitry Andric MVT ArgVT = Ins[i].VT;
960b57cec5SDimitry Andric ISD::ArgFlagsTy ArgFlags = Ins[i].Flags;
978bcb0991SDimitry Andric if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this))
988bcb0991SDimitry Andric report_fatal_error("unable to allocate function argument #" + Twine(i));
990b57cec5SDimitry Andric }
1000b57cec5SDimitry Andric }
1010b57cec5SDimitry Andric
1020b57cec5SDimitry Andric /// Analyze the return values of a function, returning true if the return can
1030b57cec5SDimitry Andric /// be performed without sret-demotion and false otherwise.
CheckReturn(const SmallVectorImpl<ISD::OutputArg> & Outs,CCAssignFn Fn)1040b57cec5SDimitry Andric bool CCState::CheckReturn(const SmallVectorImpl<ISD::OutputArg> &Outs,
1050b57cec5SDimitry Andric CCAssignFn Fn) {
1060b57cec5SDimitry Andric // Determine which register each value should be copied into.
1070b57cec5SDimitry Andric for (unsigned i = 0, e = Outs.size(); i != e; ++i) {
1080b57cec5SDimitry Andric MVT VT = Outs[i].VT;
1090b57cec5SDimitry Andric ISD::ArgFlagsTy ArgFlags = Outs[i].Flags;
1100b57cec5SDimitry Andric if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this))
1110b57cec5SDimitry Andric return false;
1120b57cec5SDimitry Andric }
1130b57cec5SDimitry Andric return true;
1140b57cec5SDimitry Andric }
1150b57cec5SDimitry Andric
1160b57cec5SDimitry Andric /// Analyze the returned values of a return,
1170b57cec5SDimitry Andric /// incorporating info about the result values into this state.
AnalyzeReturn(const SmallVectorImpl<ISD::OutputArg> & Outs,CCAssignFn Fn)1180b57cec5SDimitry Andric void CCState::AnalyzeReturn(const SmallVectorImpl<ISD::OutputArg> &Outs,
1190b57cec5SDimitry Andric CCAssignFn Fn) {
1200b57cec5SDimitry Andric // Determine which register each value should be copied into.
1210b57cec5SDimitry Andric for (unsigned i = 0, e = Outs.size(); i != e; ++i) {
1220b57cec5SDimitry Andric MVT VT = Outs[i].VT;
1230b57cec5SDimitry Andric ISD::ArgFlagsTy ArgFlags = Outs[i].Flags;
1248bcb0991SDimitry Andric if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this))
1258bcb0991SDimitry Andric report_fatal_error("unable to allocate function return #" + Twine(i));
1260b57cec5SDimitry Andric }
1270b57cec5SDimitry Andric }
1280b57cec5SDimitry Andric
1290b57cec5SDimitry Andric /// Analyze the outgoing arguments to a call,
1300b57cec5SDimitry Andric /// incorporating info about the passed values into this state.
AnalyzeCallOperands(const SmallVectorImpl<ISD::OutputArg> & Outs,CCAssignFn Fn)1310b57cec5SDimitry Andric void CCState::AnalyzeCallOperands(const SmallVectorImpl<ISD::OutputArg> &Outs,
1320b57cec5SDimitry Andric CCAssignFn Fn) {
1330b57cec5SDimitry Andric unsigned NumOps = Outs.size();
1340b57cec5SDimitry Andric for (unsigned i = 0; i != NumOps; ++i) {
1350b57cec5SDimitry Andric MVT ArgVT = Outs[i].VT;
1360b57cec5SDimitry Andric ISD::ArgFlagsTy ArgFlags = Outs[i].Flags;
1370b57cec5SDimitry Andric if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) {
1380b57cec5SDimitry Andric #ifndef NDEBUG
1390b57cec5SDimitry Andric dbgs() << "Call operand #" << i << " has unhandled type "
1400b57cec5SDimitry Andric << EVT(ArgVT).getEVTString() << '\n';
1410b57cec5SDimitry Andric #endif
1420b57cec5SDimitry Andric llvm_unreachable(nullptr);
1430b57cec5SDimitry Andric }
1440b57cec5SDimitry Andric }
1450b57cec5SDimitry Andric }
1460b57cec5SDimitry Andric
1470b57cec5SDimitry Andric /// Same as above except it takes vectors of types and argument flags.
AnalyzeCallOperands(SmallVectorImpl<MVT> & ArgVTs,SmallVectorImpl<ISD::ArgFlagsTy> & Flags,CCAssignFn Fn)1480b57cec5SDimitry Andric void CCState::AnalyzeCallOperands(SmallVectorImpl<MVT> &ArgVTs,
1490b57cec5SDimitry Andric SmallVectorImpl<ISD::ArgFlagsTy> &Flags,
1500b57cec5SDimitry Andric CCAssignFn Fn) {
1510b57cec5SDimitry Andric unsigned NumOps = ArgVTs.size();
1520b57cec5SDimitry Andric for (unsigned i = 0; i != NumOps; ++i) {
1530b57cec5SDimitry Andric MVT ArgVT = ArgVTs[i];
1540b57cec5SDimitry Andric ISD::ArgFlagsTy ArgFlags = Flags[i];
1550b57cec5SDimitry Andric if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) {
1560b57cec5SDimitry Andric #ifndef NDEBUG
1570b57cec5SDimitry Andric dbgs() << "Call operand #" << i << " has unhandled type "
1580b57cec5SDimitry Andric << EVT(ArgVT).getEVTString() << '\n';
1590b57cec5SDimitry Andric #endif
1600b57cec5SDimitry Andric llvm_unreachable(nullptr);
1610b57cec5SDimitry Andric }
1620b57cec5SDimitry Andric }
1630b57cec5SDimitry Andric }
1640b57cec5SDimitry Andric
1650b57cec5SDimitry Andric /// Analyze the return values of a call, incorporating info about the passed
1660b57cec5SDimitry Andric /// values into this state.
AnalyzeCallResult(const SmallVectorImpl<ISD::InputArg> & Ins,CCAssignFn Fn)1670b57cec5SDimitry Andric void CCState::AnalyzeCallResult(const SmallVectorImpl<ISD::InputArg> &Ins,
1680b57cec5SDimitry Andric CCAssignFn Fn) {
1690b57cec5SDimitry Andric for (unsigned i = 0, e = Ins.size(); i != e; ++i) {
1700b57cec5SDimitry Andric MVT VT = Ins[i].VT;
1710b57cec5SDimitry Andric ISD::ArgFlagsTy Flags = Ins[i].Flags;
1720b57cec5SDimitry Andric if (Fn(i, VT, VT, CCValAssign::Full, Flags, *this)) {
1730b57cec5SDimitry Andric #ifndef NDEBUG
1740b57cec5SDimitry Andric dbgs() << "Call result #" << i << " has unhandled type "
1750b57cec5SDimitry Andric << EVT(VT).getEVTString() << '\n';
1760b57cec5SDimitry Andric #endif
1770b57cec5SDimitry Andric llvm_unreachable(nullptr);
1780b57cec5SDimitry Andric }
1790b57cec5SDimitry Andric }
1800b57cec5SDimitry Andric }
1810b57cec5SDimitry Andric
1820b57cec5SDimitry Andric /// Same as above except it's specialized for calls that produce a single value.
AnalyzeCallResult(MVT VT,CCAssignFn Fn)1830b57cec5SDimitry Andric void CCState::AnalyzeCallResult(MVT VT, CCAssignFn Fn) {
1840b57cec5SDimitry Andric if (Fn(0, VT, VT, CCValAssign::Full, ISD::ArgFlagsTy(), *this)) {
1850b57cec5SDimitry Andric #ifndef NDEBUG
1860b57cec5SDimitry Andric dbgs() << "Call result has unhandled type "
1870b57cec5SDimitry Andric << EVT(VT).getEVTString() << '\n';
1880b57cec5SDimitry Andric #endif
1890b57cec5SDimitry Andric llvm_unreachable(nullptr);
1900b57cec5SDimitry Andric }
1910b57cec5SDimitry Andric }
1920b57cec5SDimitry Andric
ensureMaxAlignment(Align Alignment)193*af732203SDimitry Andric void CCState::ensureMaxAlignment(Align Alignment) {
194*af732203SDimitry Andric if (!AnalyzingMustTailForwardedRegs)
195*af732203SDimitry Andric MF.getFrameInfo().ensureMaxAlignment(Alignment);
196*af732203SDimitry Andric }
197*af732203SDimitry Andric
isValueTypeInRegForCC(CallingConv::ID CC,MVT VT)1980b57cec5SDimitry Andric static bool isValueTypeInRegForCC(CallingConv::ID CC, MVT VT) {
1990b57cec5SDimitry Andric if (VT.isVector())
2000b57cec5SDimitry Andric return true; // Assume -msse-regparm might be in effect.
2010b57cec5SDimitry Andric if (!VT.isInteger())
2020b57cec5SDimitry Andric return false;
203*af732203SDimitry Andric return (CC == CallingConv::X86_VectorCall || CC == CallingConv::X86_FastCall);
2040b57cec5SDimitry Andric }
2050b57cec5SDimitry Andric
getRemainingRegParmsForType(SmallVectorImpl<MCPhysReg> & Regs,MVT VT,CCAssignFn Fn)2060b57cec5SDimitry Andric void CCState::getRemainingRegParmsForType(SmallVectorImpl<MCPhysReg> &Regs,
2070b57cec5SDimitry Andric MVT VT, CCAssignFn Fn) {
2080b57cec5SDimitry Andric unsigned SavedStackOffset = StackOffset;
2098bcb0991SDimitry Andric Align SavedMaxStackArgAlign = MaxStackArgAlign;
2100b57cec5SDimitry Andric unsigned NumLocs = Locs.size();
2110b57cec5SDimitry Andric
2120b57cec5SDimitry Andric // Set the 'inreg' flag if it is used for this calling convention.
2130b57cec5SDimitry Andric ISD::ArgFlagsTy Flags;
2140b57cec5SDimitry Andric if (isValueTypeInRegForCC(CallingConv, VT))
2150b57cec5SDimitry Andric Flags.setInReg();
2160b57cec5SDimitry Andric
2170b57cec5SDimitry Andric // Allocate something of this value type repeatedly until we get assigned a
2180b57cec5SDimitry Andric // location in memory.
219*af732203SDimitry Andric bool HaveRegParm;
220*af732203SDimitry Andric do {
2210b57cec5SDimitry Andric if (Fn(0, VT, VT, CCValAssign::Full, Flags, *this)) {
2220b57cec5SDimitry Andric #ifndef NDEBUG
2230b57cec5SDimitry Andric dbgs() << "Call has unhandled type " << EVT(VT).getEVTString()
2240b57cec5SDimitry Andric << " while computing remaining regparms\n";
2250b57cec5SDimitry Andric #endif
2260b57cec5SDimitry Andric llvm_unreachable(nullptr);
2270b57cec5SDimitry Andric }
2280b57cec5SDimitry Andric HaveRegParm = Locs.back().isRegLoc();
229*af732203SDimitry Andric } while (HaveRegParm);
2300b57cec5SDimitry Andric
2310b57cec5SDimitry Andric // Copy all the registers from the value locations we added.
2320b57cec5SDimitry Andric assert(NumLocs < Locs.size() && "CC assignment failed to add location");
2330b57cec5SDimitry Andric for (unsigned I = NumLocs, E = Locs.size(); I != E; ++I)
2340b57cec5SDimitry Andric if (Locs[I].isRegLoc())
2350b57cec5SDimitry Andric Regs.push_back(MCPhysReg(Locs[I].getLocReg()));
2360b57cec5SDimitry Andric
2370b57cec5SDimitry Andric // Clear the assigned values and stack memory. We leave the registers marked
2380b57cec5SDimitry Andric // as allocated so that future queries don't return the same registers, i.e.
2390b57cec5SDimitry Andric // when i64 and f64 are both passed in GPRs.
2400b57cec5SDimitry Andric StackOffset = SavedStackOffset;
2410b57cec5SDimitry Andric MaxStackArgAlign = SavedMaxStackArgAlign;
2420b57cec5SDimitry Andric Locs.resize(NumLocs);
2430b57cec5SDimitry Andric }
2440b57cec5SDimitry Andric
analyzeMustTailForwardedRegisters(SmallVectorImpl<ForwardedRegister> & Forwards,ArrayRef<MVT> RegParmTypes,CCAssignFn Fn)2450b57cec5SDimitry Andric void CCState::analyzeMustTailForwardedRegisters(
2460b57cec5SDimitry Andric SmallVectorImpl<ForwardedRegister> &Forwards, ArrayRef<MVT> RegParmTypes,
2470b57cec5SDimitry Andric CCAssignFn Fn) {
2480b57cec5SDimitry Andric // Oftentimes calling conventions will not user register parameters for
2490b57cec5SDimitry Andric // variadic functions, so we need to assume we're not variadic so that we get
2500b57cec5SDimitry Andric // all the registers that might be used in a non-variadic call.
2510b57cec5SDimitry Andric SaveAndRestore<bool> SavedVarArg(IsVarArg, false);
2520b57cec5SDimitry Andric SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true);
2530b57cec5SDimitry Andric
2540b57cec5SDimitry Andric for (MVT RegVT : RegParmTypes) {
2550b57cec5SDimitry Andric SmallVector<MCPhysReg, 8> RemainingRegs;
2560b57cec5SDimitry Andric getRemainingRegParmsForType(RemainingRegs, RegVT, Fn);
2570b57cec5SDimitry Andric const TargetLowering *TL = MF.getSubtarget().getTargetLowering();
2580b57cec5SDimitry Andric const TargetRegisterClass *RC = TL->getRegClassFor(RegVT);
2590b57cec5SDimitry Andric for (MCPhysReg PReg : RemainingRegs) {
260*af732203SDimitry Andric Register VReg = MF.addLiveIn(PReg, RC);
2610b57cec5SDimitry Andric Forwards.push_back(ForwardedRegister(VReg, PReg, RegVT));
2620b57cec5SDimitry Andric }
2630b57cec5SDimitry Andric }
2640b57cec5SDimitry Andric }
2650b57cec5SDimitry Andric
resultsCompatible(CallingConv::ID CalleeCC,CallingConv::ID CallerCC,MachineFunction & MF,LLVMContext & C,const SmallVectorImpl<ISD::InputArg> & Ins,CCAssignFn CalleeFn,CCAssignFn CallerFn)2660b57cec5SDimitry Andric bool CCState::resultsCompatible(CallingConv::ID CalleeCC,
2670b57cec5SDimitry Andric CallingConv::ID CallerCC, MachineFunction &MF,
2680b57cec5SDimitry Andric LLVMContext &C,
2690b57cec5SDimitry Andric const SmallVectorImpl<ISD::InputArg> &Ins,
2700b57cec5SDimitry Andric CCAssignFn CalleeFn, CCAssignFn CallerFn) {
2710b57cec5SDimitry Andric if (CalleeCC == CallerCC)
2720b57cec5SDimitry Andric return true;
2730b57cec5SDimitry Andric SmallVector<CCValAssign, 4> RVLocs1;
2740b57cec5SDimitry Andric CCState CCInfo1(CalleeCC, false, MF, RVLocs1, C);
2750b57cec5SDimitry Andric CCInfo1.AnalyzeCallResult(Ins, CalleeFn);
2760b57cec5SDimitry Andric
2770b57cec5SDimitry Andric SmallVector<CCValAssign, 4> RVLocs2;
2780b57cec5SDimitry Andric CCState CCInfo2(CallerCC, false, MF, RVLocs2, C);
2790b57cec5SDimitry Andric CCInfo2.AnalyzeCallResult(Ins, CallerFn);
2800b57cec5SDimitry Andric
2810b57cec5SDimitry Andric if (RVLocs1.size() != RVLocs2.size())
2820b57cec5SDimitry Andric return false;
2830b57cec5SDimitry Andric for (unsigned I = 0, E = RVLocs1.size(); I != E; ++I) {
2840b57cec5SDimitry Andric const CCValAssign &Loc1 = RVLocs1[I];
2850b57cec5SDimitry Andric const CCValAssign &Loc2 = RVLocs2[I];
2865ffd83dbSDimitry Andric
2875ffd83dbSDimitry Andric if ( // Must both be in registers, or both in memory
2885ffd83dbSDimitry Andric Loc1.isRegLoc() != Loc2.isRegLoc() ||
2895ffd83dbSDimitry Andric // Must fill the same part of their locations
2905ffd83dbSDimitry Andric Loc1.getLocInfo() != Loc2.getLocInfo() ||
2915ffd83dbSDimitry Andric // Memory offset/register number must be the same
2925ffd83dbSDimitry Andric Loc1.getExtraInfo() != Loc2.getExtraInfo())
2930b57cec5SDimitry Andric return false;
2940b57cec5SDimitry Andric }
2950b57cec5SDimitry Andric return true;
2960b57cec5SDimitry Andric }
297