Lines Matching refs:getSizeInBits

54   unsigned Size = OrigTy.getSizeInBits();  in getNarrowTypeBreakDown()
55 unsigned NarrowSize = NarrowTy.getSizeInBits(); in getNarrowTypeBreakDown()
73 int NumLeftover = LeftoverSize / LeftoverTy.getSizeInBits(); in getNarrowTypeBreakDown()
82 switch (Ty.getSizeInBits()) { in getFloatTypeForLLT()
169 unsigned RegSize = RegTy.getSizeInBits(); in extractParts()
170 unsigned MainSize = MainTy.getSizeInBits(); in extractParts()
349 int NumParts = LCMTy.getSizeInBits() / NarrowTy.getSizeInBits(); in buildLCMMergePieces()
350 int NumSubParts = NarrowTy.getSizeInBits() / GCDTy.getSizeInBits(); in buildLCMMergePieces()
367 MIRBuilder.buildConstant(LLT::scalar(64), GCDTy.getSizeInBits() - 1); in buildLCMMergePieces()
454 unsigned NumDefs = LCMTy.getSizeInBits() / DstTy.getSizeInBits(); in buildWidenedRemergeToDst()
686 OpTy = IntegerType::get(Ctx, OpLLT.getSizeInBits()); in createMemLibcall()
792 unsigned Size = LLTy.getSizeInBits(); in libcall()
855 unsigned FromSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in libcall()
856 unsigned ToSize = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits(); in libcall()
870 unsigned FromSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in libcall()
871 unsigned ToSize = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits(); in libcall()
902 uint64_t SizeOp0 = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits(); in narrowScalar()
903 uint64_t NarrowSize = NarrowTy.getSizeInBits(); in narrowScalar()
946 unsigned TotalSize = Ty.getSizeInBits(); in narrowScalar()
947 unsigned NarrowSize = NarrowTy.getSizeInBits(); in narrowScalar()
983 uint64_t SizeOp1 = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in narrowScalar()
984 if (NarrowTy.getSizeInBits() * 2 != SizeOp1) { in narrowScalar()
1001 if (Ty.getSizeInBits() % NarrowTy.getSizeInBits() != 0) in narrowScalar()
1040 if (8 * LoadMI.getMemSize() != DstTy.getSizeInBits()) { in narrowScalar()
1058 unsigned MemSize = MMO.getSizeInBits(); in narrowScalar()
1086 unsigned HandledSize = NumParts * NarrowTy.getSizeInBits(); in narrowScalar()
1087 unsigned LeftoverBits = SrcTy.getSizeInBits() - HandledSize; in narrowScalar()
1091 if (8 * StoreMI.getMemSize() != SrcTy.getSizeInBits()) { in narrowScalar()
1205 uint64_t SrcSize = SrcTy.getSizeInBits(); in narrowScalar()
1417 LLT NewTy = LLT::scalar(Ty.getSizeInBits()); in coerceToScalar()
1508 const int DstSize = DstTy.getSizeInBits(); in widenScalarMergeValues()
1509 const int SrcSize = SrcTy.getSizeInBits(); in widenScalarMergeValues()
1510 const int WideSize = WideTy.getSizeInBits(); in widenScalarMergeValues()
1515 unsigned PartSize = DstTy.getSizeInBits() / NumSrc; in widenScalarMergeValues()
1606 if (DstTy.getSizeInBits() == WideDstTy.getSizeInBits()) { in widenScalarMergeValues()
1634 if (WideTy.getSizeInBits() >= SrcTy.getSizeInBits()) { in widenScalarUnmergeValues()
1643 SrcTy = LLT::scalar(SrcTy.getSizeInBits()); in widenScalarUnmergeValues()
1650 if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) { in widenScalarUnmergeValues()
1657 unsigned DstSize = DstTy.getSizeInBits(); in widenScalarUnmergeValues()
1674 if (LCMTy.getSizeInBits() != SrcTy.getSizeInBits()) { in widenScalarUnmergeValues()
1703 const int PartsPerRemerge = DstTy.getSizeInBits() / GCDTy.getSizeInBits(); in widenScalarUnmergeValues()
1708 const int PartsPerUnmerge = WideTy.getSizeInBits() / DstTy.getSizeInBits(); in widenScalarUnmergeValues()
1768 LLT SrcAsIntTy = LLT::scalar(SrcTy.getSizeInBits()); in widenScalarExtract()
1786 if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) { in widenScalarExtract()
1817 MI.getOperand(2).setImm((WideTy.getSizeInBits() / SrcTy.getSizeInBits()) * in widenScalarExtract()
2121 APInt::getOneBitSet(WideTy.getSizeInBits(), CurTy.getSizeInBits()); in widenScalar()
2134 unsigned SizeDiff = WideTy.getSizeInBits() - CurTy.getSizeInBits(); in widenScalar()
2386 ? SrcVal.sext(WideTy.getSizeInBits()) in widenScalar()
2387 : SrcVal.zext(WideTy.getSizeInBits()); in widenScalar()
2474 MI, LLT::vector(VecTy.getElementCount(), WideTy.getSizeInBits()), 1, in widenScalar()
2710 IdxTy, ~(APInt::getAllOnes(IdxTy.getSizeInBits()) << Log2EltRatio)); in getBitcastWiderVectorElementOffset()
2741 const unsigned NewEltSize = NewEltTy.getSizeInBits(); in bitcastExtractVectorElt()
2742 const unsigned OldEltSize = SrcEltTy.getSizeInBits(); in bitcastExtractVectorElt()
2843 TargetTy, APInt::getLowBitsSet(TargetTy.getSizeInBits(), in buildBitFieldInsert()
2844 InsertTy.getSizeInBits())); in buildBitFieldInsert()
2878 const unsigned NewEltSize = NewEltTy.getSizeInBits(); in bitcastInsertVectorElt()
2879 const unsigned OldEltSize = VecEltTy.getSizeInBits(); in bitcastInsertVectorElt()
2935 unsigned MemSizeInBits = MemTy.getSizeInBits(); in lowerLoad()
2953 if (MemStoreSizeInBits > DstTy.getSizeInBits()) { in lowerLoad()
3030 unsigned AnyExtSize = PowerOf2Ceil(DstTy.getSizeInBits()); in lowerLoad()
3035 auto OffsetCst = MIRBuilder.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), in lowerLoad()
3047 else if (AnyExtTy.getSizeInBits() != DstTy.getSizeInBits()) { in lowerLoad()
3077 unsigned StoreWidth = MemTy.getSizeInBits(); in lowerStore()
3089 if (StoreSizeInBits > SrcTy.getSizeInBits()) { in lowerStore()
3114 unsigned MemSizeInBits = MemTy.getSizeInBits(); in lowerStore()
3118 LargeSplitSize = PowerOf2Floor(MemTy.getSizeInBits()); in lowerStore()
3119 SmallSplitSize = MemTy.getSizeInBits() - LargeSplitSize; in lowerStore()
3131 unsigned AnyExtSize = PowerOf2Ceil(MemTy.getSizeInBits()); in lowerStore()
3135 const LLT IntPtrTy = LLT::scalar(SrcTy.getSizeInBits()); in lowerStore()
3148 LLT::scalar(PtrTy.getSizeInBits()), LargeSplitSize / 8); in lowerStore()
3171 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3187 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3295 auto ShiftAmt = MIRBuilder.buildConstant(Ty, Ty.getSizeInBits() - 1); in lower()
3312 MIRBuilder.buildConstant(Ty, APInt::getSignMask(Ty.getSizeInBits())); in lower()
3571 APInt Imm = APInt::getLowBitsSet(IdxTy.getSizeInBits(), Log2_32(NElts)); in clampDynamicVectorIndex()
3584 unsigned EltSize = EltTy.getSizeInBits() / 8; // FIXME: should be ABI size. in getVectorElementPointer()
3585 assert(EltSize * 8 == EltTy.getSizeInBits() && in getVectorElementPointer()
3825 if ((SrcTy.getSizeInBits() % NarrowTy.getSizeInBits() != 0) || in fewerElementsVectorUnmergeValues()
3826 (NarrowTy.getSizeInBits() % DstTy.getSizeInBits() != 0)) in fewerElementsVectorUnmergeValues()
3876 if ((DstTy.getSizeInBits() % NarrowTy.getSizeInBits() != 0) || in fewerElementsVectorMerge()
3911 if ((NarrowTy.getSizeInBits() % SrcTy.getSizeInBits() != 0) || in fewerElementsVectorMerge()
3912 (DstTy.getSizeInBits() % NarrowTy.getSizeInBits() != 0)) in fewerElementsVectorMerge()
4034 if (ValTy.getSizeInBits() != 8 * LdStMI.getMemSize()) { in reduceLoadStoreWidth()
4057 const LLT OffsetTy = LLT::scalar(PtrTy.getSizeInBits()); in reduceLoadStoreWidth()
4059 unsigned TotalSize = ValTy.getSizeInBits(); in reduceLoadStoreWidth()
4070 unsigned PartSize = PartTy.getSizeInBits(); in reduceLoadStoreWidth()
4094 unsigned Offset = isBigEndian ? TotalSize - NarrowTy.getSizeInBits() : 0; in reduceLoadStoreWidth()
4579 unsigned NVTBits = HalfTy.getSizeInBits(); in narrowScalarShiftByConstant()
5135 unsigned Size = Ty.getSizeInBits(); in narrowScalarMul()
5136 unsigned NarrowSize = NarrowTy.getSizeInBits(); in narrowScalarMul()
5188 uint64_t NarrowSize = NarrowTy.getSizeInBits(); in narrowScalarExtract()
5190 int64_t SizeOp1 = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in narrowScalarExtract()
5203 uint64_t OpSize = MRI.getType(OpReg).getSizeInBits(); in narrowScalarExtract()
5266 uint64_t NarrowSize = NarrowTy.getSizeInBits(); in narrowScalarInsert()
5269 uint64_t OpSize = MRI.getType(OpReg).getSizeInBits(); in narrowScalarInsert()
5322 if (WideSize > RegTy.getSizeInBits()) { in narrowScalarInsert()
5452 unsigned NarrowSize = NarrowTy.getSizeInBits(); in narrowScalarCTLZ()
5454 if (SrcTy.isScalar() && SrcTy.getSizeInBits() == 2 * NarrowSize) { in narrowScalarCTLZ()
5488 unsigned NarrowSize = NarrowTy.getSizeInBits(); in narrowScalarCTTZ()
5490 if (SrcTy.isScalar() && SrcTy.getSizeInBits() == 2 * NarrowSize) { in narrowScalarCTTZ()
5523 unsigned NarrowSize = NarrowTy.getSizeInBits(); in narrowScalarCTPOP()
5525 if (SrcTy.isScalar() && SrcTy.getSizeInBits() == 2 * NarrowSize) { in narrowScalarCTPOP()
5562 unsigned Len = SrcTy.getSizeInBits(); in lowerBitCount()
5613 unsigned Len = SrcTy.getSizeInBits(); in lowerBitCount()
5649 unsigned Size = Ty.getSizeInBits(); in lowerBitCount()
6076 APInt TwoPExpInt = APInt::getSignMask(DstTy.getSizeInBits()); in lowerFPTOUI()
6077 APFloat TwoPExpFP(SrcTy.getSizeInBits() == 32 ? APFloat::IEEEsingle() in lowerFPTOUI()
6079 APInt::getZero(SrcTy.getSizeInBits())); in lowerFPTOUI()
6490 unsigned PartSize = SrcTy.getSizeInBits(); in lowerMergeValues()
6492 LLT WideTy = LLT::scalar(DstTy.getSizeInBits()); in lowerMergeValues()
6542 const unsigned DstSize = DstTy.getSizeInBits(); in lowerUnmergeValues()
6704 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in lowerDynStackAlloc()
6715 APInt AlignMask(IntPtrTy.getSizeInBits(), Alignment.value(), true); in lowerDynStackAlloc()
6740 unsigned SrcEltSize = SrcTy.getElementType().getSizeInBits(); in lowerExtract()
6741 unsigned DstSize = DstTy.getSizeInBits(); in lowerExtract()
6744 (Offset + DstSize <= SrcTy.getSizeInBits())) { in lowerExtract()
6769 SrcIntTy = LLT::scalar(SrcTy.getSizeInBits()); in lowerExtract()
6800 unsigned EltSize = EltTy.getSizeInBits(); in lowerInsert()
6801 unsigned InsertSize = InsertTy.getSizeInBits(); in lowerInsert()
6804 (Offset + InsertSize <= DstTy.getSizeInBits())) { in lowerInsert()
6814 if (InsertTy.getSizeInBits() > EltSize) { in lowerInsert()
6852 IntDstTy = LLT::scalar(DstTy.getSizeInBits()); in lowerInsert()
6857 const LLT IntInsertTy = LLT::scalar(InsertTy.getSizeInBits()); in lowerInsert()
6868 DstTy.getSizeInBits(), Offset + InsertTy.getSizeInBits(), Offset); in lowerInsert()
7145 unsigned Size = Ty.getSizeInBits(); in lowerBitreverse()
7237 if (MaskTy.getSizeInBits() <= DstTy.getScalarSizeInBits() && in lowerSelect()
7252 if (MaskTy.getSizeInBits() != DstTy.getSizeInBits()) { in lowerSelect()
7320 if (DstTy.getSizeInBits() > SrcTy.getSizeInBits()) in lowerVectorReduction()
7360 assert(Ty.getSizeInBits() > 0 && "Could not find valid type"); in findGISelOptimalMemOpLowering()
7374 NewTy = NewTy.getSizeInBits() > 64 ? LLT::scalar(64) : LLT::scalar(32); in findGISelOptimalMemOpLowering()
7375 NewTy = LLT::scalar(PowerOf2Floor(NewTy.getSizeInBits() - 1)); in findGISelOptimalMemOpLowering()
7410 return IntegerType::get(C, Ty.getSizeInBits()); in getTypeForLLT()
7500 if (MemOps[i].getSizeInBits() > LargestTy.getSizeInBits()) in lowerMemset()
7529 if (Ty.getSizeInBits() < LargestTy.getSizeInBits()) { in lowerMemset()
7546 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), DstOff); in lowerMemset()
7687 Offset = MIB.buildConstant(LLT::scalar(SrcTy.getSizeInBits()), CurrOffset) in lowerMemcpy()
7786 MIB.buildConstant(LLT::scalar(SrcTy.getSizeInBits()), CurrOffset); in lowerMemmove()
7804 MIB.buildConstant(LLT::scalar(DstTy.getSizeInBits()), CurrOffset); in lowerMemmove()