Home
last modified time | relevance | path

Searched refs:getScalarSizeInBits (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/external/llvm-project/llvm/unittests/IR/
DVectorTypesTest.cpp44 EXPECT_EQ(V16Int8Ty->getElementType()->getScalarSizeInBits(), 8U); in TEST()
50 EXPECT_EQ(V8Int32Ty->getElementType()->getScalarSizeInBits(), 32U); in TEST()
56 EXPECT_EQ(V8Int8Ty->getElementType()->getScalarSizeInBits(), 8U); in TEST()
66 EXPECT_EQ(V8Int16Ty->getElementType()->getScalarSizeInBits(), 16U); in TEST()
72 EXPECT_EQ(V4Int64Ty->getElementType()->getScalarSizeInBits(), 64U); in TEST()
78 EXPECT_EQ(V2Int64Ty->getElementType()->getScalarSizeInBits(), 64U); in TEST()
84 EXPECT_EQ(V8Int64Ty->getElementType()->getScalarSizeInBits(), 64U); in TEST()
90 EXPECT_EQ(V4Float64Ty->getElementType()->getScalarSizeInBits(), 64U); in TEST()
96 EXPECT_EQ(ExtTy->getElementType()->getScalarSizeInBits(), 32U); in TEST()
102 EXPECT_EQ(TruncTy->getElementType()->getScalarSizeInBits(), 16U); in TEST()
[all …]
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp358 static unsigned getScalarSizeInBits(Type *Ty) { in getScalarSizeInBits() function
360 (Ty->isPtrOrPtrVectorTy() ? 64U : Ty->getScalarSizeInBits()); in getScalarSizeInBits()
370 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); in getNumVectorRegs()
394 unsigned ScalarBits = Ty->getScalarSizeInBits(); in getArithmeticInstrCost()
583 unsigned Bits0 = Ty0->getScalarSizeInBits(); in getElSizeLog2Diff()
584 unsigned Bits1 = Ty1->getScalarSizeInBits(); in getElSizeLog2Diff()
626 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 && in getVectorTruncCost()
627 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost()
641 unsigned SrcScalarBits = SrcTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
642 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp333 static unsigned getScalarSizeInBits(Type *Ty) { in getScalarSizeInBits() function
335 (Ty->isPtrOrPtrVectorTy() ? 64U : Ty->getScalarSizeInBits()); in getScalarSizeInBits()
345 unsigned WideBits = getScalarSizeInBits(Ty) * Ty->getVectorNumElements(); in getNumVectorRegs()
362 unsigned ScalarBits = Ty->getScalarSizeInBits(); in getArithmeticInstrCost()
552 unsigned Bits0 = Ty0->getScalarSizeInBits(); in getElSizeLog2Diff()
553 unsigned Bits1 = Ty1->getScalarSizeInBits(); in getElSizeLog2Diff()
593 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 && in getVectorTruncCost()
594 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost()
608 unsigned SrcScalarBits = SrcTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
609 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp74 (Sh0->getType()->getScalarSizeInBits() - 1) + in reassociateShiftAmtsOfTwoSameDirectionShifts()
75 (Sh1->getType()->getScalarSizeInBits() - 1); in reassociateShiftAmtsOfTwoSameDirectionShifts()
77 APInt::getAllOnesValue(ShAmt0->getType()->getScalarSizeInBits()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
108 unsigned NewShAmtBitWidth = NewShAmt->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
109 unsigned XBitWidth = X->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
241 ExtendedTy->getScalarSizeInBits())); in dropRedundantMaskingOfLeftShiftInput()
271 unsigned WidestTyBitWidth = WidestTy->getScalarSizeInBits(); in dropRedundantMaskingOfLeftShiftInput()
345 (*C0 + *C1).ult(Ty->getScalarSizeInBits()); in foldShiftOfShiftedLogic()
452 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift()
497 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateShifted()
[all …]
DInstCombineCasts.cpp365 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
366 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
381 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
393 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
394 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
411 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
412 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
504 unsigned NarrowWidth = DestTy->getScalarSizeInBits(); in narrowRotate()
559 unsigned WideWidth = Trunc.getSrcTy()->getScalarSizeInBits(); in narrowRotate()
724 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp367 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
368 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
383 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
393 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
394 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
515 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc()
599 In->getType()->getScalarSizeInBits() - 1); in transformZExtICmp()
768 unsigned VSize = V->getType()->getScalarSizeInBits(); in canEvaluateZExtd()
796 if (BitsToClear > V->getType()->getScalarSizeInBits()) in canEvaluateZExtd()
797 BitsToClear = V->getType()->getScalarSizeInBits(); in canEvaluateZExtd()
[all …]
DInstCombineShifts.cpp84 unsigned TypeWidth = SecondShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift()
137 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in CanEvaluateShifted()
138 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateShifted()
219 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
263 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
350 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
389 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
390 unsigned DstSize = TI->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
755 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); in visitLShr()
808 uint32_t SrcBits = ZI->getOperand(0)->getType()->getScalarSizeInBits(); in visitAShr()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp149 if (OffsType->getScalarSizeInBits() > in checkGEP()
150 Offsets->getType()->getScalarSizeInBits()) { in checkGEP()
189 Ty->getScalarSizeInBits(), Alignment)) in lowerGather()
247 int ResultElemSize = Ty->getScalarSizeInBits(); in tryCreateMaskedGatherOffset()
267 {BasePtr, Offsets, Builder.getInt32(Ty->getScalarSizeInBits()), in tryCreateMaskedGatherOffset()
273 {BasePtr, Offsets, Builder.getInt32(Ty->getScalarSizeInBits()), in tryCreateMaskedGatherOffset()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp386 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
387 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
400 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
414 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
415 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
432 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateTruncated()
433 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated()
528 unsigned NarrowWidth = DestTy->getScalarSizeInBits(); in narrowFunnelShift()
594 unsigned WideWidth = Trunc.getSrcTy()->getScalarSizeInBits(); in narrowFunnelShift()
728 unsigned DestWidth = DestTy->getScalarSizeInBits(); in visitTrunc()
[all …]
DInstCombineShifts.cpp75 (Sh0->getType()->getScalarSizeInBits() - 1) + in reassociateShiftAmtsOfTwoSameDirectionShifts()
76 (Sh1->getType()->getScalarSizeInBits() - 1); in reassociateShiftAmtsOfTwoSameDirectionShifts()
78 APInt::getAllOnesValue(ShAmt0->getType()->getScalarSizeInBits()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
109 unsigned NewShAmtBitWidth = NewShAmt->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
110 unsigned XBitWidth = X->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
242 ExtendedTy->getScalarSizeInBits())); in dropRedundantMaskingOfLeftShiftInput()
272 unsigned WidestTyBitWidth = WidestTy->getScalarSizeInBits(); in dropRedundantMaskingOfLeftShiftInput()
344 APInt Threshold(Ty->getScalarSizeInBits(), Ty->getScalarSizeInBits()); in foldShiftOfShiftedLogic()
454 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift()
530 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DLowLevelTypeImpl.h110 return getScalarSizeInBits(); in getSizeInBits()
111 return getScalarSizeInBits() * getNumElements(); in getSizeInBits()
142 unsigned getScalarSizeInBits() const { in getScalarSizeInBits() function
170 return pointer(getAddressSpace(), getScalarSizeInBits()); in getElementType()
172 return scalar(getScalarSizeInBits()); in getElementType()
/external/llvm-project/llvm/include/llvm/Support/
DLowLevelTypeImpl.h111 return getScalarSizeInBits(); in getSizeInBits()
112 return getScalarSizeInBits() * getNumElements(); in getSizeInBits()
163 unsigned getScalarSizeInBits() const { in getScalarSizeInBits() function
191 return pointer(getAddressSpace(), getScalarSizeInBits()); in getElementType()
193 return scalar(getScalarSizeInBits()); in getElementType()
/external/llvm-project/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp189 ->getScalarSizeInBits(); in checkOffsetSize()
253 ->getScalarSizeInBits() != 32) in checkGEP()
260 if ((Ty->getElementType()->getScalarSizeInBits() < in checkGEP()
261 OffsetType->getElementType()->getScalarSizeInBits())) { in checkGEP()
363 if (!isLegalTypeAndAlignment(Ty->getNumElements(), Ty->getScalarSizeInBits(), in lowerGather()
404 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBase()
426 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBaseWB()
491 OriginalTy->getScalarSizeInBits()); in tryCreateMaskedGatherOffset()
501 {BasePtr, Offsets, Builder.getInt32(OriginalTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset()
507 {BasePtr, Offsets, Builder.getInt32(OriginalTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp143 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth()
145 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getMinBitWidth()
214 MinBitWidth = Ty ? Ty->getScalarSizeInBits() : OrigBitWidth; in getMinBitWidth()
251 I->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType()
259 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType()
/external/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp156 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth()
158 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getMinBitWidth()
227 MinBitWidth = Ty ? Ty->getScalarSizeInBits() : OrigBitWidth; in getMinBitWidth()
264 I->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType()
272 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType()
DAggressiveInstCombine.cpp81 if (!isPowerOf2_32(I.getType()->getScalarSizeInBits())) in foldGuardedRotateToFunnelShift()
89 unsigned Width = V->getType()->getScalarSizeInBits(); in foldGuardedRotateToFunnelShift()
247 MaskOps MOps(I.getType()->getScalarSizeInBits(), MatchAllBitsSet); in foldAnyOrAllBitsSet()
288 unsigned Len = Ty->getScalarSizeInBits(); in tryToRecognizePopCount()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalityPredicates.cpp114 return QueryTy.getScalarSizeInBits() < Size; in scalarOrEltNarrowerThan()
122 return QueryTy.getScalarSizeInBits() > Size; in scalarOrEltWiderThan()
129 return !isPowerOf2_32(QueryTy.getScalarSizeInBits()); in scalarOrEltSizeNotPow2()
DGISelKnownBits.cpp80 unsigned BitWidth = Ty.getScalarSizeInBits(); in signBitIsZero()
414 unsigned Tmp = DstTy.getScalarSizeInBits() - SrcTy.getScalarSizeInBits(); in computeNumSignBits()
422 unsigned DstTyBits = DstTy.getScalarSizeInBits(); in computeNumSignBits()
423 unsigned NumSrcBits = SrcTy.getScalarSizeInBits(); in computeNumSignBits()
DLegalizerInfo.cpp166 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane()
170 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane()
665 findAction(ElemSizeVec, Aspect.Type.getScalarSizeInBits()); in findVectorLegalAction()
672 IntermediateType.getScalarSizeInBits()); in findVectorLegalAction()
681 IntermediateType.getScalarSizeInBits())}; in findVectorLegalAction()
/external/llvm/lib/Transforms/Instrumentation/
DSanitizerCoverage.cpp463 if (Cond->getType()->getScalarSizeInBits() > in InjectTraceForSwitch()
464 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
468 ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits())); in InjectTraceForSwitch()
469 if (Cond->getType()->getScalarSizeInBits() < in InjectTraceForSwitch()
470 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
474 if (C->getType()->getScalarSizeInBits() < in InjectTraceForSwitch()
475 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp95 unsigned ScalarSizeInBits = VT.getScalarSizeInBits(); in DecodeMOVDDUPMask()
297 unsigned NumElementsInLane = 128 / VT.getScalarSizeInBits(); in decodeVSHUF64x2FamilyMask()
346 int ElementBits = VT.getScalarSizeInBits(); in DecodeBLENDMask()
401 (VT.getScalarSizeInBits() == 64) && "Unexpected vector value type"); in DecodeVPERMMask()
411 unsigned DstScalarBits = DstVT.getScalarSizeInBits(); in DecodeZeroExtendMask()
515 unsigned EltSize = VT.getScalarSizeInBits(); in DecodeVPERMILPMask()
533 unsigned EltSize = VT.getScalarSizeInBits(); in DecodeVPERMIL2PMask()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DLegalizeMutations.cpp51 const LLT NewEltTy = LLT::scalar(NewTy.getScalarSizeInBits()); in changeElementSizeTo()
61 std::max(1u << Log2_32_Ceil(Ty.getScalarSizeInBits()), Min); in widenScalarOrEltToNextPow2()
DLegalityPredicates.cpp138 return QueryTy.getScalarSizeInBits() < Size; in scalarOrEltNarrowerThan()
146 return QueryTy.getScalarSizeInBits() > Size; in scalarOrEltWiderThan()
153 return !isPowerOf2_32(QueryTy.getScalarSizeInBits()); in scalarOrEltSizeNotPow2()
DGISelKnownBits.cpp76 unsigned BitWidth = Ty.getScalarSizeInBits(); in signBitIsZero()
494 const unsigned TyBits = DstTy.getScalarSizeInBits(); in computeNumSignBits()
518 unsigned Tmp = DstTy.getScalarSizeInBits() - SrcTy.getScalarSizeInBits(); in computeNumSignBits()
551 unsigned DstTyBits = DstTy.getScalarSizeInBits(); in computeNumSignBits()
552 unsigned NumSrcBits = SrcTy.getScalarSizeInBits(); in computeNumSignBits()
DLegalizerInfo.cpp171 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane()
175 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane()
667 findAction(ElemSizeVec, Aspect.Type.getScalarSizeInBits()); in findVectorLegalAction()
674 IntermediateType.getScalarSizeInBits()); in findVectorLegalAction()
683 IntermediateType.getScalarSizeInBits())}; in findVectorLegalAction()

12345678910>>...13