Home
last modified time | relevance | path

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

12345678

/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DScalableVectorMVTsTest.cpp139 EXPECT_EQ(nxv4i32.getSizeInBits(), nxv2i64.getSizeInBits()); in TEST()
140 EXPECT_EQ(nxv2f64.getSizeInBits(), nxv2i64.getSizeInBits()); in TEST()
141 EXPECT_NE(nxv2i32.getSizeInBits(), nxv4i32.getSizeInBits()); in TEST()
152 EXPECT_EQ(v4i32.getSizeInBits(), v2i64.getSizeInBits()); in TEST()
153 EXPECT_EQ(v2f64.getSizeInBits(), v2i64.getSizeInBits()); in TEST()
154 EXPECT_NE(v2i32.getSizeInBits(), v4i32.getSizeInBits()); in TEST()
162 ASSERT_TRUE(v4i32.getSizeInBits() != nxv4i32.getSizeInBits()); in TEST()
163 ASSERT_FALSE(v2i64.getSizeInBits() == nxv2f64.getSizeInBits()); in TEST()
181 EXPECT_EQ(v2i32.getSizeInBits() * 2, v4i32.getSizeInBits()); in TEST()
182 EXPECT_EQ(2 * nxv2i32.getSizeInBits(), nxv4i32.getSizeInBits()); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMRegisterBankInfo.cpp285 Ty.getSizeInBits() == 64 in getInstrMapping()
305 Ty.getSizeInBits() == 64 in getInstrMapping()
319 if (ToTy.getSizeInBits() == 64 && FromTy.getSizeInBits() == 32) in getInstrMapping()
328 if (ToTy.getSizeInBits() == 32 && FromTy.getSizeInBits() == 64) in getInstrMapping()
338 if ((FromTy.getSizeInBits() == 32 || FromTy.getSizeInBits() == 64) && in getInstrMapping()
353 (ToTy.getSizeInBits() == 32 || ToTy.getSizeInBits() == 64)) in getInstrMapping()
407 assert(Ty1.getSizeInBits() == Ty2.getSizeInBits() && in getInstrMapping()
426 if (Ty.getSizeInBits() != 64 || Ty1.getSizeInBits() != 32 || in getInstrMapping()
427 Ty2.getSizeInBits() != 32) in getInstrMapping()
441 if (Ty.getSizeInBits() != 32 || Ty1.getSizeInBits() != 32 || in getInstrMapping()
[all …]
H A DARMInstructionSelector.cpp192 const unsigned Size = MRI.getType(Reg).getSizeInBits(); in guessRegClass()
242 assert(MRI.getType(VReg0).getSizeInBits() == 64 && in selectMergeValues()
247 assert(MRI.getType(VReg1).getSizeInBits() == 32 && in selectMergeValues()
252 assert(MRI.getType(VReg2).getSizeInBits() == 32 && in selectMergeValues()
274 assert(MRI.getType(VReg0).getSizeInBits() == 32 && in selectUnmergeValues()
279 assert(MRI.getType(VReg1).getSizeInBits() == 32 && in selectUnmergeValues()
284 assert(MRI.getType(VReg2).getSizeInBits() == 64 && in selectUnmergeValues()
513 if (MRI.getType(Reg).getSizeInBits() != ExpectedSize) { in validReg()
870 unsigned SrcSize = SrcTy.getSizeInBits(); in select()
1044 unsigned Size = MRI.getType(OpReg).getSizeInBits(); in select()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DValueTypes.h223 unsigned BitSize = getSizeInBits(); in isRound()
230 return getSizeInBits() == VT.getSizeInBits(); in bitsEq()
235 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT()
241 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE()
246 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT()
252 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE()
340 TypeSize getSizeInBits() const { in getSizeInBits() function
342 return V.getSizeInBits(); in getSizeInBits()
363 TypeSize BaseSize = getSizeInBits(); in getStoreSize()
388 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Math/IR/
H A DMathOps.cpp100 if (a.getSizeInBits(a.getSemantics()) == 64) in fold()
103 if (a.getSizeInBits(a.getSemantics()) == 32) in fold()
120 if (a.getSizeInBits(a.getSemantics()) == 64) in fold()
123 if (a.getSizeInBits(a.getSemantics()) == 32) in fold()
140 switch (a.getSizeInBits(a.getSemantics())) { in fold()
158 switch (a.getSizeInBits(a.getSemantics())) { in fold()
181 b.getSizeInBits(b.getSemantics()) == 64) in fold()
185 b.getSizeInBits(b.getSemantics()) == 32) in fold()
202 switch (a.getSizeInBits(a.getSemantics())) { in fold()
220 switch (a.getSizeInBits(a.getSemantics())) { in fold()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalityPredicates.cpp105 return QueryTy.isScalar() && QueryTy.getSizeInBits() < Size; in scalarNarrowerThan()
113 return QueryTy.isScalar() && QueryTy.getSizeInBits() > Size; in scalarWiderThan()
120 return Query.Types[TypeIdx0].getSizeInBits() < in smallerThan()
121 Query.Types[TypeIdx1].getSizeInBits(); in smallerThan()
128 return Query.Types[TypeIdx0].getSizeInBits() > in largerThan()
129 Query.Types[TypeIdx1].getSizeInBits(); in largerThan()
160 return QueryTy.isScalar() && QueryTy.getSizeInBits() % Size != 0; in sizeNotMultipleOf()
167 return QueryTy.isScalar() && !isPowerOf2_32(QueryTy.getSizeInBits()); in sizeNotPow2()
173 return Query.Types[TypeIdx].getSizeInBits() == Size; in sizeIs()
180 return Query.Types[TypeIdx0].getSizeInBits() == in sameSize()
[all …]
H A DCallLowering.cpp303 int NumDst = LCMTy.getSizeInBits() / LLTy.getSizeInBits(); in mergeVectorRegsToResultRegs()
333 if (PartLLT.getSizeInBits() == LLTy.getSizeInBits() && OrigRegs.size() == 1 && in buildCopyFromRegs()
375 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs()
392 if (PartLLT.getSizeInBits() > LLTy.getSizeInBits() && in buildCopyFromRegs()
426 assert(DstEltTy.getSizeInBits() == RealDstEltTy.getSizeInBits()); in buildCopyFromRegs()
437 } else if (DstEltTy.getSizeInBits() > PartLLT.getSizeInBits()) { in buildCopyFromRegs()
441 int PartsPerElt = DstEltTy.getSizeInBits() / PartLLT.getSizeInBits(); in buildCopyFromRegs()
443 assert(DstEltTy.getSizeInBits() % PartLLT.getSizeInBits() == 0); in buildCopyFromRegs()
1116 if (LocTy.getSizeInBits() == ValTy.getSizeInBits()) in extendRegister()
1120 if (MaxSizeBits <= ValTy.getSizeInBits()) in extendRegister()
[all …]
H A DMachineIRBuilder.cpp210 LLT MaskTy = LLT::scalar(PtrTy.getSizeInBits()); in buildMaskLowPtrBits()
318 == EltTy.getSizeInBits() && in buildFConstant()
505 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
506 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
570 assert(Index + DstTy.getSizeInBits() <= SrcTy.getSizeInBits() && in buildExtract()
574 if (DstTy.getSizeInBits() == SrcTy.getSizeInBits()) { in buildExtract()
619 unsigned NumReg = Op.getLLTTy(*getMRI()).getSizeInBits() / Res.getSizeInBits(); in buildUnmerge()
718 if (Res.getLLTTy(*getMRI()).getSizeInBits() == in buildInsert()
719 Op.getLLTTy(*getMRI()).getSizeInBits()) { in buildInsert()
998 assert(DstTy.getSizeInBits() > SrcTy.getSizeInBits() && in validateTruncExt()
[all …]
H A DLegalizerHelper.cpp349 int NumParts = LCMTy.getSizeInBits() / NarrowTy.getSizeInBits(); in buildLCMMergePieces()
1001 if (Ty.getSizeInBits() % NarrowTy.getSizeInBits() != 0) in narrowScalar()
1606 if (DstTy.getSizeInBits() == WideDstTy.getSizeInBits()) { in widenScalarMergeValues()
1634 if (WideTy.getSizeInBits() >= SrcTy.getSizeInBits()) { in widenScalarUnmergeValues()
1650 if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) { in widenScalarUnmergeValues()
1674 if (LCMTy.getSizeInBits() != SrcTy.getSizeInBits()) { in widenScalarUnmergeValues()
1786 if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) { in widenScalarExtract()
3826 (NarrowTy.getSizeInBits() % DstTy.getSizeInBits() != 0)) in fewerElementsVectorUnmergeValues()
7252 if (MaskTy.getSizeInBits() != DstTy.getSizeInBits()) { in lowerSelect()
7320 if (DstTy.getSizeInBits() > SrcTy.getSizeInBits()) in lowerVectorReduction()
[all …]
H A DLoadStoreOpt.cpp309 unsigned MaxSizeBits = NumPow2 * OrigTy.getSizeInBits().getFixedSize(); in mergeStores()
321 if (MergeSizeBits <= OrigTy.getSizeInBits()) in mergeStores()
324 unsigned NumStoresToMerge = MergeSizeBits / OrigTy.getSizeInBits(); in mergeStores()
355 LLT::scalar(NumStores * SmallTy.getSizeInBits().getFixedSize()); in doSingleStoreMerge()
393 APInt WideConst(WideValueTy.getSizeInBits(), 0); in doSingleStoreMerge()
397 WideConst.insertBits(ConstantVals[Idx], Idx * SmallTy.getSizeInBits()); in doSingleStoreMerge()
509 if (StoreMI.getMemSizeInBits() != ValueTy.getSizeInBits()) in addStoreToCandidate()
537 if (MRI->getType(C.Stores[0]->getValueReg()).getSizeInBits() != in addStoreToCandidate()
538 ValueTy.getSizeInBits()) in addStoreToCandidate()
649 {{Ty, Ty.getSizeInBits(), AtomicOrdering::NotAtomic}}); in initializeStoreMergeTargetInfo()
H A DUtils.cpp889 const unsigned OrigSize = OrigTy.getSizeInBits(); in getLCMType()
890 const unsigned TargetSize = TargetTy.getSizeInBits(); in getLCMType()
901 if (OrigElt.getSizeInBits() == TargetElt.getSizeInBits()) { in getLCMType()
910 if (OrigElt.getSizeInBits() == TargetSize) in getLCMType()
950 const unsigned OrigSize = OrigTy.getSizeInBits(); in getGCDType()
951 const unsigned TargetSize = TargetTy.getSizeInBits(); in getGCDType()
960 if (OrigElt.getSizeInBits() == TargetElt.getSizeInBits()) { in getGCDType()
967 if (OrigElt.getSizeInBits() == TargetSize) in getGCDType()
972 if (GCD == OrigElt.getSizeInBits()) in getGCDType()
977 if (GCD < OrigElt.getSizeInBits()) in getGCDType()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86RegisterBankInfo.cpp67 switch (Ty.getSizeInBits()) { in getPartialMappingIdx()
84 switch (Ty.getSizeInBits()) { in getPartialMappingIdx()
95 switch (Ty.getSizeInBits()) { in getPartialMappingIdx()
227 assert(Ty1.getSizeInBits() == Ty2.getSizeInBits() && in getInstrMapping()
230 unsigned Size = Ty1.getSizeInBits(); in getInstrMapping()
246 bool isFPTrunc = (Ty0.getSizeInBits() == 32 || Ty0.getSizeInBits() == 64) && in getInstrMapping()
247 Ty1.getSizeInBits() == 128 && Opc == TargetOpcode::G_TRUNC; in getInstrMapping()
249 Ty0.getSizeInBits() == 128 && in getInstrMapping()
250 (Ty1.getSizeInBits() == 32 || Ty1.getSizeInBits() == 64) && in getInstrMapping()
289 unsigned Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
H A DX86InstructionSelector.cpp172 if (Ty.getSizeInBits() <= 8) in getRegClass()
174 if (Ty.getSizeInBits() == 16) in getRegClass()
176 if (Ty.getSizeInBits() == 32) in getRegClass()
178 if (Ty.getSizeInBits() == 64) in getRegClass()
182 if (Ty.getSizeInBits() == 16) in getRegClass()
658 switch (Ty.getSizeInBits()) { in selectConstant()
856 assert(DstTy.getSizeInBits() > SrcTy.getSizeInBits() && in selectAnyext()
1128 if (SrcTy.getSizeInBits() == 256 && DstTy.getSizeInBits() == 128) { in selectExtract()
1163 assert(SrcTy.getSizeInBits() > DstTy.getSizeInBits() && in emitExtractSubreg()
1202 assert(SrcTy.getSizeInBits() < DstTy.getSizeInBits() && in emitInsertSubreg()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLowLevelType.cpp47 return MVT::getIntegerVT(Ty.getSizeInBits()); in getMVTForLLT()
50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT()
61 return EVT::getIntegerVT(Ctx, Ty.getSizeInBits()); in getApproximateEVTForLLT()
66 return LLT::scalar(Ty.getSizeInBits()); in getLLTForMVT()
69 Ty.getVectorElementType().getSizeInBits()); in getLLTForMVT()
74 switch (Ty.getSizeInBits()) { in getFltSemanticForLLT()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp451 unsigned Size = Ty.getSizeInBits(); in getSameKindOfOperandsMapping()
469 RBIdx, OpTy.getSizeInBits()) == in getSameKindOfOperandsMapping()
612 getFPExtMapping(DstTy.getSizeInBits(), SrcTy.getSizeInBits()), in getInstrMapping()
621 if (ShiftAmtTy.getSizeInBits() == 64 && SrcTy.getSizeInBits() == 32) in getInstrMapping()
643 unsigned Size = getSizeInBits(DstReg, MRI, TRI); in getInstrMapping()
656 unsigned Size = DstTy.getSizeInBits(); in getInstrMapping()
684 OpSize[Idx] = Ty.getSizeInBits(); in getInstrMapping()
689 Ty.getSizeInBits() > 64) in getInstrMapping()
704 if (ScalarTy.getSizeInBits() != 8 && in getInstrMapping()
901 if (SrcTy.getSizeInBits() != 128) in getInstrMapping()
[all …]
H A DAArch64InstructionSelector.cpp517 if (Ty.getSizeInBits() <= 32) in getRegClassForTypeOnBank()
520 if (Ty.getSizeInBits() == 64) in getRegClassForTypeOnBank()
523 if (Ty.getSizeInBits() == 128) in getRegClassForTypeOnBank()
529 switch (Ty.getSizeInBits()) { in getRegClassForTypeOnBank()
2014 if (SrcTy.isVector() || SrcTy.getSizeInBits() != DstTy.getSizeInBits()) in preISelLower()
2141 if (DefDstTy.getSizeInBits() != StoreSrcTy.getSizeInBits()) in contractCrossBankCopyIntoStore()
2691 if (Ty.getSizeInBits() > 64 || SrcTy.getSizeInBits() > 32) in select()
4008 if (DstTy.getSizeInBits() != 64 || SrcTy.getSizeInBits() != 32) in selectMergeValues()
4139 assert(WideTy.getSizeInBits() >= NarrowTy.getSizeInBits() && in selectExtractElt()
4221 assert(WideTy.getSizeInBits() > NarrowTy.getSizeInBits() && in selectUnmergeValues()
[all …]
H A DAArch64LegalizerInfo.cpp135 AmtTy.getSizeInBits() == 32; in AArch64LegalizerInfo()
325 Query.Types[0].getSizeInBits() > 32; in AArch64LegalizerInfo()
439 unsigned SrcSize = SrcTy.getSizeInBits(); in AArch64LegalizerInfo()
517 return Query.Types[0].getSizeInBits() != Query.Types[1].getSizeInBits(); in AArch64LegalizerInfo()
546 return Query.Types[0].getSizeInBits() == 128; in AArch64LegalizerInfo()
760 return SrcTy.getSizeInBits() > 64; in AArch64LegalizerInfo()
909 assert(isPowerOf2_32(DstTy.getSizeInBits()) && in legalizeVectorTrunc()
910 isPowerOf2_32(SrcTy.getSizeInBits())); in legalizeVectorTrunc()
1151 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg()
1171 uint64_t ValSize = ValTy.getSizeInBits() / 8; in legalizeVaArg()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp644 assert(HalfTy.getSizeInBits() == 32); in split64BitValueForMapping()
665 assert(MRI.getType(Reg).getSizeInBits() == NewTy.getSizeInBits()); in setRegsToType()
692 unsigned Bits = Ty.getSizeInBits(); in buildReadFirstLane()
1849 if (SrcTy.getSizeInBits() == 32) { in buildVCopy()
2232 if (DstTy.getSizeInBits() != 64) in applyMappingImpl()
2295 if (DstTy.getSizeInBits() == 1) { in applyMappingImpl()
2312 if (DstTy.getSizeInBits() != 64) in applyMappingImpl()
2554 DstTy.getSizeInBits() == 64 && in applyMappingImpl()
2555 SrcTy.getSizeInBits() <= 32) { in applyMappingImpl()
2750 assert(DstTy.getSizeInBits() == 64); in applyMappingImpl()
[all …]
H A DAMDGPULegalizerInfo.cpp58 unsigned Bits = Ty.getSizeInBits(); in getPow2ScalarType()
76 Ty.getSizeInBits() % 32 != 0; in isSmallOddVector()
83 return Ty.getSizeInBits() % 32 == 0; in sizeIsMultipleOf32()
108 unsigned Size = Ty.getSizeInBits(); in fewerEltsToSize64Vector()
124 const int Size = Ty.getSizeInBits(); in moreEltsToNext32Bit()
157 unsigned Size = Ty.getSizeInBits(); in bitcastToVectorElement32()
235 Query.MMODescrs[0].MemoryTy.getSizeInBits() < Ty.getSizeInBits(); in isWideScalarExtLoadTruncStore()
1572 if (EltTy.getSizeInBits() < 8 || EltTy.getSizeInBits() > 512) in AMDGPULegalizerInfo()
2017 SrcTy.getSizeInBits() == 64) { in legalizeAddrSpaceCast()
2511 if (PtrTy.getSizeInBits() == 32) in buildPCRelGlobalAddress()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h262 const unsigned DstSize = DstTy.getSizeInBits(); in tryCombineTrunc()
263 const unsigned MergeSrcSize = MergeSrcTy.getSizeInBits(); in tryCombineTrunc()
386 const unsigned CastSrcSize = CastSrcTy.getSizeInBits(); in tryFoldUnmergeCast()
387 const unsigned DestSize = DestTy.getSizeInBits(); in tryFoldUnmergeCast()
508 return DestTy.getSizeInBits() <= OpEltSize; in canFoldMergeOpcode()
509 return DestTy.getSizeInBits() >= OpEltSize; in canFoldMergeOpcode()
575 unsigned SrcSize = MRI.getType(Src1Reg).getSizeInBits(); in findValueFromConcat()
607 unsigned SrcSize = MRI.getType(Src1Reg).getSizeInBits(); in findValueFromBuildVector()
714 Size == MRI.getType(SrcRegToUse).getSizeInBits()) in findValueFromInsert()
736 unsigned DefSize = MRI.getType(DefReg).getSizeInBits(); in findValueFromDefImpl()
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinTypeInterfaces.cpp38 int64_t ShapedType::getSizeInBits() const { in getSizeInBits() function in ShapedType
50 return getNumElements() * elementType.cast<ShapedType>().getSizeInBits(); in getSizeInBits()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMachineValueType.h471 MVT IntTy = MVT::getIntegerVT(EltTy.getSizeInBits()); in changeVectorElementTypeToInteger()
493 return MVT::getIntegerVT(getSizeInBits()); in changeTypeToInteger()
883 TypeSize getSizeInBits() const { in getSizeInBits() function
1088 return getSizeInBits().getFixedSize(); in getFixedSizeInBits()
1092 return getScalarType().getSizeInBits().getFixedSize(); in getScalarSizeInBits()
1102 TypeSize BaseSize = getSizeInBits(); in getStoreSize()
1124 bool isByteSized() const { return getSizeInBits().isKnownMultipleOf(8); } in isByteSized()
1128 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT()
1134 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE()
1139 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT()
[all …]
H A DLowLevelTypeImpl.h68 ScalarTy.getSizeInBits().getFixedSize(), in vector()
152 TypeSize getSizeInBits() const { in getSizeInBits() function
163 TypeSize BaseSize = getSizeInBits(); in getSizeInBytes()
222 bool isByteSized() const { return getSizeInBits().isKnownMultipleOf(8); } in isByteSized()
/llvm-project-15.0.7/llvm/lib/Support/
H A DLowLevelType.cpp22 VT.getVectorElementCount(), VT.getVectorElementType().getSizeInBits(), in LLT()
28 ElementCount::getFixed(0), VT.getSizeInBits(), /*AddressSpace=*/0); in LLT()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsRegisterBankInfo.cpp454 (RegTy.getSizeInBits() != 32 && RegTy.getSizeInBits() != 64)) in getInstrMapping()
457 if (RegTy.isVector() && RegTy.getSizeInBits() != 128) in getInstrMapping()
463 unsigned Op0Size = Op0Ty.getSizeInBits(); in getInstrMapping()
580 unsigned Op3Size = MRI.getType(MI.getOperand(2).getReg()).getSizeInBits(); in getInstrMapping()
618 unsigned Op2Size = MRI.getType(MI.getOperand(2).getReg()).getSizeInBits(); in getInstrMapping()
634 unsigned SizeFP = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in getInstrMapping()
640 assert((MRI.getType(MI.getOperand(1).getReg()).getSizeInBits() == 32) && in getInstrMapping()

12345678