/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 363 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in CanEvaluateTruncated() 364 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() 379 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() 389 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in CanEvaluateTruncated() 390 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() 458 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc() 519 In->getType()->getScalarSizeInBits()-1); in transformZExtICmp() 694 unsigned VSize = V->getType()->getScalarSizeInBits(); in CanEvaluateZExtd() 710 if (BitsToClear > V->getType()->getScalarSizeInBits()) in CanEvaluateZExtd() 711 BitsToClear = V->getType()->getScalarSizeInBits(); in CanEvaluateZExtd() [all …]
|
D | InstCombineShifts.cpp | 90 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in CanEvaluateShifted() 91 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateShifted() 126 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in CanEvaluateShifted() 150 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in CanEvaluateShifted() 212 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue() 254 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue() 330 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant() 377 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant() 378 unsigned DstSize = TI->getType()->getScalarSizeInBits(); in FoldShiftByConstant() 681 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); in visitLShr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 344 unsigned ScalarBits = Ty->getScalarSizeInBits(); in getArithmeticInstrCost() 506 unsigned Bits0 = Ty0->getScalarSizeInBits(); in getElSizeLog2Diff() 507 unsigned Bits1 = Ty1->getScalarSizeInBits(); in getElSizeLog2Diff() 547 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 && in getVectorTruncCost() 548 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost() 562 unsigned SrcScalarBits = SrcTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost() 563 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost() 607 unsigned DstScalarBits = Dst->getScalarSizeInBits(); in getCastInstrCost() 608 unsigned SrcScalarBits = Src->getScalarSizeInBits(); in getCastInstrCost() 618 if (Src->getScalarSizeInBits() == Dst->getScalarSizeInBits()) in getCastInstrCost() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 367 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 …]
|
D | InstCombineShifts.cpp | 84 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-7.0/llvm/include/llvm/Support/ |
D | LowLevelTypeImpl.h | 103 return getScalarSizeInBits(); in getSizeInBits() 104 return getScalarSizeInBits() * getNumElements(); in getSizeInBits() 107 unsigned getScalarSizeInBits() const { in getScalarSizeInBits() function 135 return pointer(getAddressSpace(), getScalarSizeInBits()); in getElementType() 137 return scalar(getScalarSizeInBits()); in getElementType()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 365 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() 521 unsigned NarrowWidth = DestTy->getScalarSizeInBits(); in narrowRotate() 536 unsigned WideWidth = Trunc.getSrcTy()->getScalarSizeInBits(); in narrowRotate() 710 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc() [all …]
|
D | InstCombineShifts.cpp | 99 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift() 144 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in canEvaluateShifted() 145 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateShifted() 200 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift() 370 unsigned TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant() 398 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant() 399 unsigned DstSize = TI->getType()->getScalarSizeInBits(); in FoldShiftByConstant() 607 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() 613 unsigned SrcWidth = X->getType()->getScalarSizeInBits(); in visitShl() 711 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitLShr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | TruncInstCombine.cpp | 144 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth() 146 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getMinBitWidth() 215 MinBitWidth = Ty ? Ty->getScalarSizeInBits() : OrigBitWidth; in getMinBitWidth() 252 I->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType() 260 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType()
|
/external/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 95 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/lib/Transforms/Instrumentation/ |
D | SanitizerCoverage.cpp | 463 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/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Instructions.cpp | 2060 return IntPtrTy->getScalarSizeInBits() == in isNoopCast() 2061 DestTy->getScalarSizeInBits(); in isNoopCast() 2063 return IntPtrTy->getScalarSizeInBits() == in isNoopCast() 2064 SrcTy->getScalarSizeInBits(); in isNoopCast() 2188 unsigned PtrSize = IntPtrTy->getScalarSizeInBits(); in isEliminableCastPair() 2189 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 2198 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() 2199 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 2229 unsigned PtrSize = IntPtrTy->getScalarSizeInBits(); in isEliminableCastPair() 2230 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() [all …]
|
D | Constants.cpp | 1257 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getZExtOrBitCast() 1263 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getSExtOrBitCast() 1269 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getTruncOrBitCast() 1287 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() 1288 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast() 1299 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() 1300 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast() 1316 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getTrunc() 1330 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getSExt() 1344 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getZExt() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Instructions.cpp | 2224 return DL.getIntPtrType(SrcTy)->getScalarSizeInBits() == in isNoopCast() 2225 DestTy->getScalarSizeInBits(); in isNoopCast() 2227 return DL.getIntPtrType(DestTy)->getScalarSizeInBits() == in isNoopCast() 2228 SrcTy->getScalarSizeInBits(); in isNoopCast() 2357 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 2368 unsigned PtrSize = SrcIntPtrTy->getScalarSizeInBits(); in isEliminableCastPair() 2377 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() 2378 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 2392 unsigned PtrSize = MidIntPtrTy->getScalarSizeInBits(); in isEliminableCastPair() 2393 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() [all …]
|
D | Constants.cpp | 1547 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getZExtOrBitCast() 1553 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getSExtOrBitCast() 1559 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getTruncOrBitCast() 1593 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() 1594 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast() 1605 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() 1606 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast() 1622 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getTrunc() 1636 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getSExt() 1650 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getZExt() [all …]
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2388 return IntPtrTy->getScalarSizeInBits() == in isNoopCast() 2389 DestTy->getScalarSizeInBits(); in isNoopCast() 2391 return IntPtrTy->getScalarSizeInBits() == in isNoopCast() 2392 SrcTy->getScalarSizeInBits(); in isNoopCast() 2535 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 2546 unsigned PtrSize = SrcIntPtrTy->getScalarSizeInBits(); in isEliminableCastPair() 2555 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() 2556 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 2576 unsigned PtrSize = MidIntPtrTy->getScalarSizeInBits(); in isEliminableCastPair() 2577 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() [all …]
|
D | Constants.cpp | 1497 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getZExtOrBitCast() 1503 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getSExtOrBitCast() 1509 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getTruncOrBitCast() 1543 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() 1544 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast() 1555 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() 1556 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast() 1572 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getTrunc() 1586 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getSExt() 1600 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getZExt() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/ |
D | LowLevelTypeTest.cpp | 49 EXPECT_EQ(S, Ty.getScalarSizeInBits()); in TEST() 88 EXPECT_EQ(S, VTy.getScalarSizeInBits()); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
D | SanitizerCoverage.cpp | 653 if (Cond->getType()->getScalarSizeInBits() > in InjectTraceForSwitch() 654 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch() 658 ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits())); in InjectTraceForSwitch() 659 if (Cond->getType()->getScalarSizeInBits() < in InjectTraceForSwitch() 660 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch() 664 if (C->getType()->getScalarSizeInBits() < in InjectTraceForSwitch() 665 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 77 unsigned OpSize = OpTy->getScalarSizeInBits(); in getOperationCost() 88 unsigned DestSize = Ty->getScalarSizeInBits(); in getOperationCost() 618 return Cast->getSrcTy()->getScalarSizeInBits() - 1; in minRequiredElementSize() 623 return Cast->getSrcTy()->getScalarSizeInBits(); in minRequiredElementSize() 627 return Val->getType()->getScalarSizeInBits(); in minRequiredElementSize()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 209 if (!DstTy->isVectorTy() || DstTy->getScalarSizeInBits() < 16) in isWideningInstruction() 240 unsigned DstElTySize = DstTyL.second.getScalarSizeInBits(); in isWideningInstruction() 241 if (!DstTyL.second.isVector() || DstElTySize != DstTy->getScalarSizeInBits()) in isWideningInstruction() 248 unsigned SrcElTySize = SrcTyL.second.getScalarSizeInBits(); in isWideningInstruction() 249 if (!SrcTyL.second.isVector() || SrcElTySize != SrcTy->getScalarSizeInBits()) in isWideningInstruction() 687 if (I->getScalarSizeInBits() * I->getVectorNumElements() == 128) in getCostOfKeepingLiveOverCall() 896 unsigned ScalarBits = Ty->getScalarSizeInBits(); in useReductionIntrinsic()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 827 unsigned BW = VT.getScalarSizeInBits(); in ExpandSEXTINREG() 828 unsigned OrigBW = OrigTy.getScalarSizeInBits(); in ExpandSEXTINREG() 874 unsigned EltWidth = VT.getScalarSizeInBits(); in ExpandSIGN_EXTEND_VECTOR_INREG() 875 unsigned SrcEltWidth = SrcVT.getScalarSizeInBits(); in ExpandSIGN_EXTEND_VECTOR_INREG() 913 int ScalarSizeInBytes = VT.getScalarSizeInBits() / 8; in createBSWAPShuffleMask() 947 unsigned ScalarSizeInBits = VT.getScalarSizeInBits(); in ExpandBITREVERSE() 1018 APInt::getAllOnesValue(VT.getScalarSizeInBits()), DL, VT); in ExpandVSELECT() 1036 unsigned BW = VT.getScalarSizeInBits(); in ExpandUINT_TO_FLOAT() 1091 unsigned NumBitsPerElt = VT.getScalarSizeInBits(); in ExpandCTLZ()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizeMutations.cpp | 49 TypeIdx, LLT::vector(NewNumElements, VecTy.getScalarSizeInBits())); in moreElementsToNextPow2()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | LowLevelType.cpp | 44 OS << "s" << getScalarSizeInBits(); in print()
|
/external/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 337 I.getOperand(0)->getType()->getScalarSizeInBits() <= 64) { in computeMinimumValueSizes() 430 if (isa<PHINode>(*MI) && MinBW < (*MI)->getType()->getScalarSizeInBits()) { in computeMinimumValueSizes() 443 if (MinBW < Ty->getScalarSizeInBits()) in computeMinimumValueSizes()
|