Home
last modified time | relevance | path

Searched refs:getSizeInBits (Results 1 – 25 of 144) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DValueTypes.h103 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger()
120 return MVT::getIntegerVT(getSizeInBits()); in changeTypeToInteger()
213 return getSizeInBits().isByteSized(); in isByteSized()
220 unsigned BitSize = getSizeInBits(); in isRound()
227 return getSizeInBits() == VT.getSizeInBits(); in bitsEq()
233 return getSizeInBits() > VT.getSizeInBits(); in bitsGT()
239 return getSizeInBits() >= VT.getSizeInBits(); in bitsGE()
245 return getSizeInBits() < VT.getSizeInBits(); in bitsLT()
251 return getSizeInBits() <= VT.getSizeInBits(); in bitsLE()
298 TypeSize getSizeInBits() const { in getSizeInBits() function
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMRegisterBankInfo.cpp236 OperandsMapping = Ty.getSizeInBits() == 64 in getInstrMapping()
272 LargeTy.getSizeInBits() <= 32 in getInstrMapping()
282 Ty.getSizeInBits() == 64 in getInstrMapping()
294 OperandsMapping =Ty.getSizeInBits() == 64 in getInstrMapping()
302 Ty.getSizeInBits() == 64 in getInstrMapping()
316 if (ToTy.getSizeInBits() == 64 && FromTy.getSizeInBits() == 32) in getInstrMapping()
325 if (ToTy.getSizeInBits() == 32 && FromTy.getSizeInBits() == 64) in getInstrMapping()
335 if ((FromTy.getSizeInBits() == 32 || FromTy.getSizeInBits() == 64) && in getInstrMapping()
336 ToTy.getSizeInBits() == 32) in getInstrMapping()
338 FromTy.getSizeInBits() == 64 in getInstrMapping()
[all …]
DARMInstructionSelector.cpp194 const unsigned Size = MRI.getType(Reg).getSizeInBits(); in guessRegClass()
244 assert(MRI.getType(VReg0).getSizeInBits() == 64 && in selectMergeValues()
249 assert(MRI.getType(VReg1).getSizeInBits() == 32 && in selectMergeValues()
254 assert(MRI.getType(VReg2).getSizeInBits() == 32 && in selectMergeValues()
276 assert(MRI.getType(VReg0).getSizeInBits() == 32 && in selectUnmergeValues()
281 assert(MRI.getType(VReg1).getSizeInBits() == 32 && in selectUnmergeValues()
286 assert(MRI.getType(VReg2).getSizeInBits() == 64 && in selectUnmergeValues()
515 if (MRI.getType(Reg).getSizeInBits() != ExpectedSize) { in validReg()
868 assert(MRI.getType(I.getOperand(0).getReg()).getSizeInBits() <= 32 && in select()
872 unsigned SrcSize = SrcTy.getSizeInBits(); in select()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64LegalizerInfo.cpp124 return !SrcTy.isVector() && SrcTy.getSizeInBits() == 32 && in AArch64LegalizerInfo()
125 AmtTy.getSizeInBits() == 32; in AArch64LegalizerInfo()
185 return Query.Types[0].getSizeInBits() <= Query.Types[1].getSizeInBits(); in AArch64LegalizerInfo()
192 return isPowerOf2_32(Ty1.getSizeInBits()) && in AArch64LegalizerInfo()
193 (Ty1.getSizeInBits() == 1 || Ty1.getSizeInBits() >= 8); in AArch64LegalizerInfo()
203 return Query.Types[0].getSizeInBits() >= Query.Types[1].getSizeInBits(); in AArch64LegalizerInfo()
212 return isPowerOf2_32(Ty0.getSizeInBits()) && in AArch64LegalizerInfo()
213 (Ty0.getSizeInBits() == 1 || Ty0.getSizeInBits() >= 8); in AArch64LegalizerInfo()
268 return Query.Types[0].getSizeInBits() != Query.MMODescrs[0].SizeInBits; in AArch64LegalizerInfo()
294 Query.Types[0].getSizeInBits() != Query.MMODescrs[0].SizeInBits; in AArch64LegalizerInfo()
[all …]
DAArch64RegisterBankInfo.cpp280 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
301 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
337 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
430 unsigned Size = Ty.getSizeInBits(); in getSameKindOfOperandsMapping()
448 RBIdx, OpTy.getSizeInBits()) == in getSameKindOfOperandsMapping()
552 getFPExtMapping(DstTy.getSizeInBits(), SrcTy.getSizeInBits()), in getInstrMapping()
561 if (ShiftAmtTy.getSizeInBits() == 64 && SrcTy.getSizeInBits() == 32) in getInstrMapping()
583 unsigned Size = getSizeInBits(DstReg, MRI, TRI); in getInstrMapping()
596 unsigned Size = DstTy.getSizeInBits(); in getInstrMapping()
597 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
[all …]
DAArch64InstructionSelector.cpp336 if (Ty.getSizeInBits() <= 32) in getRegClassForTypeOnBank()
339 if (Ty.getSizeInBits() == 64) in getRegClassForTypeOnBank()
346 if (Ty.getSizeInBits() <= 16) in getRegClassForTypeOnBank()
348 if (Ty.getSizeInBits() == 32) in getRegClassForTypeOnBank()
350 if (Ty.getSizeInBits() == 64) in getRegClassForTypeOnBank()
352 if (Ty.getSizeInBits() == 128) in getRegClassForTypeOnBank()
589 const unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in isValidCopy()
590 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in isValidCopy()
652 unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in getRegClassesForCopy()
653 unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in getRegClassesForCopy()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86RegisterBankInfo.cpp68 switch (Ty.getSizeInBits()) { in getPartialMappingIdx()
85 switch (Ty.getSizeInBits()) { in getPartialMappingIdx()
96 switch (Ty.getSizeInBits()) { in getPartialMappingIdx()
228 assert(Ty1.getSizeInBits() == Ty2.getSizeInBits() && in getInstrMapping()
231 unsigned Size = Ty1.getSizeInBits(); in getInstrMapping()
247 bool isFPTrunc = (Ty0.getSizeInBits() == 32 || Ty0.getSizeInBits() == 64) && in getInstrMapping()
248 Ty1.getSizeInBits() == 128 && Opc == TargetOpcode::G_TRUNC; in getInstrMapping()
250 Ty0.getSizeInBits() == 128 && in getInstrMapping()
251 (Ty1.getSizeInBits() == 32 || Ty1.getSizeInBits() == 64) && in getInstrMapping()
290 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
DX86InstructionSelector.cpp171 if (Ty.getSizeInBits() <= 8) in getRegClass()
173 if (Ty.getSizeInBits() == 16) in getRegClass()
175 if (Ty.getSizeInBits() == 32) in getRegClass()
177 if (Ty.getSizeInBits() == 64) in getRegClass()
181 if (Ty.getSizeInBits() == 32) in getRegClass()
183 if (Ty.getSizeInBits() == 64) in getRegClass()
185 if (Ty.getSizeInBits() == 128) in getRegClass()
187 if (Ty.getSizeInBits() == 256) in getRegClass()
189 if (Ty.getSizeInBits() == 512) in getRegClass()
234 const unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in selectCopy()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURegisterBankInfo.cpp251 Sizes[I] = getSizeInBits(Reg, MRI, *TRI); in addMappingFromTable()
255 unsigned SizeI = getSizeInBits(MI.getOperand(I).getReg(), MRI, *TRI); in addMappingFromTable()
427 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, *TRI); in getInstrAlternativeMappings()
453 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, *TRI); in getInstrAlternativeMappings()
516 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, *TRI); in getInstrAlternativeMappings()
518 unsigned PtrSize = PtrTy.getSizeInBits(); in getInstrAlternativeMappings()
551 unsigned Size = getSizeInBits(MI.getOperand(2).getReg(), MRI, *TRI); in getInstrAlternativeMappings()
587 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, *TRI); in getInstrAlternativeMappings()
627 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, *TRI); in getInstrAlternativeMappings()
649 assert(MRI.getType(MI.getOperand(0).getReg()).getSizeInBits() == 1); in getInstrAlternativeMappings()
[all …]
DAMDGPULegalizerInfo.cpp47 return Ty.getSizeInBits() <= MaxSize && EltTy.getSizeInBits() % 32 == 0; in isMultiple32()
53 return Query.Types[TypeIdx].getSizeInBits() == Size; in sizeIs()
62 Ty.getElementType().getSizeInBits() < 32 && in isSmallOddVector()
63 Ty.getSizeInBits() % 32 != 0; in isSmallOddVector()
71 return EltTy.getSizeInBits() == 16 && Ty.getNumElements() > 2; in isWideVec16()
87 unsigned Size = Ty.getSizeInBits(); in fewerEltsToSize64Vector()
101 const int Size = Ty.getSizeInBits(); in moreEltsToNext32Bit()
102 const int EltSize = EltTy.getSizeInBits(); in moreEltsToNext32Bit()
115 return QueryTy.isVector() && QueryTy.getSizeInBits() < Size; in vectorSmallerThan()
122 return QueryTy.isVector() && QueryTy.getSizeInBits() > Size; in vectorWiderThan()
[all …]
DAMDGPUCallLowering.cpp55 if (VA.getLocVT().getSizeInBits() < 32) { in assignValueToReg()
98 if (VA.getLocVT().getSizeInBits() < 32) { in assignValueToReg()
214 return LLT::scalar(OrigTy.getSizeInBits() * Factor); in getMultipleType()
228 const unsigned SrcSize = SrcTy.getSizeInBits(); in unpackRegsToOrigType()
229 const unsigned PartSize = PartTy.getSizeInBits(); in unpackRegsToOrigType()
232 PartSize > SrcTy.getElementType().getSizeInBits()) { in unpackRegsToOrigType()
529 assert(DstEltTy.getSizeInBits() == RealDstEltTy.getSizeInBits()); in packSplitRegsToOrigType()
540 } else if (DstEltTy.getSizeInBits() > PartLLT.getSizeInBits()) { in packSplitRegsToOrigType()
544 int PartsPerElt = DstEltTy.getSizeInBits() / PartLLT.getSizeInBits(); in packSplitRegsToOrigType()
546 assert(DstEltTy.getSizeInBits() % PartLLT.getSizeInBits() == 0); in packSplitRegsToOrigType()
DAMDGPUInstructionSelector.cpp84 Ty.isValid() && Ty.getSizeInBits() == 1; in isVCC()
256 unsigned Size = RBI.getSizeInBits(DstReg, *MRI, TRI); in selectG_AND_OR_XOR()
298 unsigned Size = RBI.getSizeInBits(DstReg, *MRI, TRI); in selectG_ADD_SUB()
454 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_EXTRACT()
455 const unsigned DstSize = DstTy.getSizeInBits(); in selectG_EXTRACT()
491 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_MERGE_VALUES()
497 const unsigned DstSize = DstTy.getSizeInBits(); in selectG_MERGE_VALUES()
535 const unsigned DstSize = DstTy.getSizeInBits(); in selectG_UNMERGE_VALUES()
536 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_UNMERGE_VALUES()
593 unsigned DstSize = MRI->getType(DstReg).getSizeInBits(); in selectG_INSERT()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DMachineIRBuilder.cpp311 assert(APFloat::getSizeInBits(Val.getValueAPF().getSemantics()) in buildFConstant()
312 == EltTy.getSizeInBits() && in buildFConstant()
455 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
456 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
458 else if (Res.getLLTTy(*getMRI()).getSizeInBits() < in buildExtOrTrunc()
459 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
511 assert(Index + DstTy.getSizeInBits() <= SrcTy.getSizeInBits() && in buildExtract()
515 if (DstTy.getSizeInBits() == SrcTy.getSizeInBits()) { in buildExtract()
542 unsigned OpSize = OpTy.getSizeInBits(); in buildSequence()
551 if (MaybeMerge && Ops.size() * OpSize == ResTy.getSizeInBits()) { in buildSequence()
[all …]
DLegalizerHelper.cpp44 unsigned Size = OrigTy.getSizeInBits(); in getNarrowTypeBreakDown()
45 unsigned NarrowSize = NarrowTy.getSizeInBits(); in getNarrowTypeBreakDown()
62 int NumLeftover = LeftoverSize / LeftoverTy.getSizeInBits(); in getNarrowTypeBreakDown()
136 unsigned RegSize = RegTy.getSizeInBits(); in extractParts()
137 unsigned MainSize = MainTy.getSizeInBits(); in extractParts()
190 int GCD = greatestCommonDivisor(OrigTy.getSizeInBits(), in getGCDType()
191 TargetTy.getSizeInBits()); in getGCDType()
215 unsigned PartSize = PartTy.getSizeInBits(); in insertParts()
216 unsigned LeftoverPartSize = LeftoverTy.getSizeInBits(); in insertParts()
408 OpTy = IntegerType::get(Ctx, OpLLT.getSizeInBits()); in createMemLibcall()
[all …]
DLegalityPredicates.cpp98 return QueryTy.isScalar() && QueryTy.getSizeInBits() < Size; in narrowerThan()
106 return QueryTy.isScalar() && QueryTy.getSizeInBits() > Size; in widerThan()
136 return QueryTy.isScalar() && !isPowerOf2_32(QueryTy.getSizeInBits()); in sizeNotPow2()
143 return Query.Types[TypeIdx0].getSizeInBits() == in sameSize()
144 Query.Types[TypeIdx1].getSizeInBits(); in sameSize()
DCombinerHelper.cpp337 if (TyForCandidate.getSizeInBits() > CurrentUse.Ty.getSizeInBits()) { in ChoosePreferredUse()
412 if (LoadValueTy.getSizeInBits() < 8) in matchCombineExtendingLoads()
417 if (!isPowerOf2_32(LoadValueTy.getSizeInBits())) in matchCombineExtendingLoads()
516 } else if (Preferred.Ty.getSizeInBits() < UseDstTy.getSizeInBits()) { in applyCombineExtendingLoads()
883 assert(Ty.getSizeInBits() > 0 && "Could not find valid type"); in findGISelOptimalMemOpLowering()
896 NewTy = NewTy.getSizeInBits() > 64 ? LLT::scalar(64) : LLT::scalar(32); in findGISelOptimalMemOpLowering()
897 NewTy = LLT::scalar(PowerOf2Floor(NewTy.getSizeInBits() - 1)); in findGISelOptimalMemOpLowering()
931 return IntegerType::get(C, Ty.getSizeInBits()); in getTypeForLLT()
1015 if (MemOps[i].getSizeInBits() > LargestTy.getSizeInBits()) in optimizeMemset()
1044 if (Ty.getSizeInBits() < LargestTy.getSizeInBits()) { in optimizeMemset()
[all …]
DCallLowering.cpp206 if (NewVT.getSizeInBits() * NumParts != CurVT.getSizeInBits()) in handleAssignments()
263 LLT SmallTy = LLT::scalar(NewVT.getSizeInBits()); in handleAssignments()
307 if (VAVT.getSizeInBits() < OrigVT.getSizeInBits()) { in handleAssignments()
370 : alignTo(VT.getSizeInBits(), 8) / 8; in handleAssignments()
461 if (LocTy.getSizeInBits() == MRI.getType(ValReg).getSizeInBits()) in extendRegister()
DUtils.cpp235 MRI.getType(MI.getOperand(0).getReg()).getSizeInBits(); in getConstantVRegValWithLookThrough()
252 MRI.getType(MI->getOperand(0).getReg()).getSizeInBits())); in getConstantVRegValWithLookThrough()
345 APInt C1(Ty.getSizeInBits(), *MaybeOp1Cst, true); in ConstantFoldBinOp()
346 APInt C2(Ty.getSizeInBits(), *MaybeOp2Cst, true); in ConstantFoldBinOp()
420 APInt C1(Ty.getSizeInBits(), *MaybeOp1Cst, true); in ConstantFoldExtOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowLevelType.cpp47 return MVT::getIntegerVT(Ty.getSizeInBits()); in getMVTForLLT()
50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT()
56 return LLT::scalar(Ty.getSizeInBits()); in getLLTForMVT()
59 Ty.getVectorElementType().getSizeInBits()); in getLLTForMVT()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DLowLevelType.cpp21 VT.getVectorNumElements(), VT.getVectorElementType().getSizeInBits(), in LLT()
26 assert(VT.getSizeInBits() != 0 && "invalid zero-sized type"); in LLT()
28 VT.getSizeInBits(), /*AddressSpace=*/0); in LLT()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMachineValueType.h679 TypeSize getSizeInBits() const { in getSizeInBits() function
832 return getScalarType().getSizeInBits(); in getScalarSizeInBits()
842 TypeSize BaseSize = getSizeInBits(); in getStoreSize()
859 return getSizeInBits().isByteSized(); in isByteSized()
864 return getSizeInBits() > VT.getSizeInBits(); in bitsGT()
869 return getSizeInBits() >= VT.getSizeInBits(); in bitsGE()
874 return getSizeInBits() < VT.getSizeInBits(); in bitsLT()
879 return getSizeInBits() <= VT.getSizeInBits(); in bitsLE()
DLowLevelTypeImpl.h69 ScalarTy.getSizeInBits(), in vector()
108 unsigned getSizeInBits() const { in getSizeInBits() function
117 return (getSizeInBits() + 7) / 8; in getSizeInBytes()
140 bool isByteSized() const { return (getSizeInBits() & 7) == 0; } in isByteSized()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizationArtifactCombiner.h88 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
132 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
185 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
271 const unsigned OpEltSize = OpTy.getElementType().getSizeInBits(); in canFoldMergeOpcode()
277 return DestTy.getSizeInBits() <= OpEltSize; in canFoldMergeOpcode()
278 return DestTy.getSizeInBits() >= OpEltSize; in canFoldMergeOpcode()
447 unsigned ExtractDstSize = DstTy.getSizeInBits(); in tryCombineExtract()
450 unsigned MergeSrcSize = SrcTy.getSizeInBits() / NumMergeSrcs; in tryCombineExtract()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFAbstractMemberAccess.cpp526 uint32_t MemberBitSize = MemberTy->getSizeInBits(); in GetStorageBitRange()
553 (EltTy->getSizeInBits() >> 3); in GetFieldInfo()
571 return calcArraySize(CTy, 1) * (EltTy->getSizeInBits() >> 3); in GetFieldInfo()
574 uint32_t SizeInBits = MemberTy->getSizeInBits(); in GetFieldInfo()
625 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
628 SizeInBits = MemberTy->getSizeInBits(); in GetFieldInfo()
656 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
659 SizeInBits = MemberTy->getSizeInBits(); in GetFieldInfo()
736 PatchImm += FirstIndex * (Ty->getSizeInBits() >> 3); in computeBaseAndAccessKey()
792 PatchImm += FirstIndex * (CTy->getSizeInBits() >> 3); in computeBaseAndAccessKey()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsRegisterBankInfo.cpp427 (RegTy.getSizeInBits() != 32 && RegTy.getSizeInBits() != 64)) in getInstrMapping()
430 if (RegTy.isVector() && RegTy.getSizeInBits() != 128) in getInstrMapping()
436 unsigned Op0Size = Op0Ty.getSizeInBits(); in getInstrMapping()
558 unsigned Op2Size = MRI.getType(MI.getOperand(2).getReg()).getSizeInBits(); in getInstrMapping()
574 unsigned SizeFP = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in getInstrMapping()
580 assert((MRI.getType(MI.getOperand(1).getReg()).getSizeInBits() == 32) && in getInstrMapping()

123456