Home
last modified time | relevance | path

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

123

/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.cpp92 uint32_t OrigBitWidth = OrigTy->getScalarSizeInBits(); in CanEvaluateShifted()
93 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateShifted()
128 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in CanEvaluateShifted()
153 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in CanEvaluateShifted()
220 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
262 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
349 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
388 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
389 unsigned DstSize = TI->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
754 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); in visitLShr()
[all …]
DInstCombineSimplifyDemanded.cpp56 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits()
113 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
434 unsigned truncBf = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits()
471 unsigned SrcBitWidth =I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits()
489 unsigned SrcBitWidth =I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits()
DInstCombineAddSub.cpp916 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); in WillNotOverflowSignedAdd()
953 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); in WillNotOverflowSignedSub()
1083 uint32_t TySizeBits = I.getType()->getScalarSizeInBits(); in visitAdd()
1581 unsigned BitWidth = I.getType()->getScalarSizeInBits(); in visitSub()
DInstCombineSelect.cpp382 unsigned SizeOfInBits = Count->getType()->getScalarSizeInBits(); in foldSelectCttzCtlz()
444 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp()
/external/llvm/lib/Transforms/Instrumentation/
DSanitizerCoverage.cpp385 if (Cond->getType()->getScalarSizeInBits() > in InjectTraceForSwitch()
386 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
390 ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits())); in InjectTraceForSwitch()
391 if (Cond->getType()->getScalarSizeInBits() < in InjectTraceForSwitch()
392 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
396 if (C->getType()->getScalarSizeInBits() < in InjectTraceForSwitch()
397 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp84 unsigned ScalarSizeInBits = VT.getScalarSizeInBits(); in DecodeMOVDDUPMask()
273 unsigned NumElementsInLane = 128 / VT.getScalarSizeInBits(); in decodeVSHUF64x2FamilyMask()
370 int ElementBits = VT.getScalarSizeInBits(); in DecodeBLENDMask()
396 int ElementBits = MaskTy->getScalarSizeInBits(); in DecodeVPERMILPMask()
433 unsigned SrcScalarBits = SrcVT.getScalarSizeInBits(); in DecodeZeroExtendMask()
434 unsigned DstScalarBits = DstVT.getScalarSizeInBits(); in DecodeZeroExtendMask()
/external/llvm/lib/IR/
DInstructions.cpp2313 return IntPtrTy->getScalarSizeInBits() == in isNoopCast()
2314 DestTy->getScalarSizeInBits(); in isNoopCast()
2316 return IntPtrTy->getScalarSizeInBits() == in isNoopCast()
2317 SrcTy->getScalarSizeInBits(); in isNoopCast()
2460 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair()
2471 unsigned PtrSize = SrcIntPtrTy->getScalarSizeInBits(); in isEliminableCastPair()
2480 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair()
2481 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2501 unsigned PtrSize = MidIntPtrTy->getScalarSizeInBits(); in isEliminableCastPair()
2502 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair()
[all …]
DConstants.cpp1566 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getZExtOrBitCast()
1572 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getSExtOrBitCast()
1578 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getTruncOrBitCast()
1613 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast()
1614 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast()
1625 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast()
1626 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast()
1642 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getTrunc()
1656 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getSExt()
1670 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getZExt()
[all …]
DVerifier.cpp2029 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst()
2030 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitTruncInst()
2051 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst()
2052 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitZExtInst()
2065 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst()
2066 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitSExtInst()
2082 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst()
2083 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitFPTruncInst()
2100 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst()
2101 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitFPExtInst()
/external/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h76 unsigned OpSize = OpTy->getScalarSizeInBits(); in getOperationCost()
87 unsigned DestSize = Ty->getScalarSizeInBits(); in getOperationCost()
/external/llvm/utils/TableGen/
DCodeGenDAGPatterns.cpp393 return A.getScalarSizeInBits() < B.getScalarSizeInBits() || in EnforceSmallerThan()
394 (A.getScalarSizeInBits() == B.getScalarSizeInBits() && in EnforceSmallerThan()
405 return OtherVT.getScalarSizeInBits() <= Smallest.getScalarSizeInBits()|| in EnforceSmallerThan()
427 return A.getScalarSizeInBits() < B.getScalarSizeInBits() || in EnforceSmallerThan()
428 (A.getScalarSizeInBits() == B.getScalarSizeInBits() && in EnforceSmallerThan()
436 return OtherVT.getScalarSizeInBits() >= Largest.getScalarSizeInBits() || in EnforceSmallerThan()
/external/llvm/include/llvm/IR/
DIRBuilder.h1265 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1267 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
1279 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1281 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
DType.h291 unsigned getScalarSizeInBits() const LLVM_READONLY;
/external/llvm/lib/Analysis/
DVectorUtils.cpp470 I.getOperand(0)->getType()->getScalarSizeInBits() <= 64) { in computeMinimumValueSizes()
561 if (MinBW < Ty->getScalarSizeInBits()) in computeMinimumValueSizes()
DValueTracking.cpp76 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth()
1196 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator()
1381 unsigned GEPOpiBits = Index->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator()
1516 APInt SignBit = APInt::getSignBit(Ty->getScalarSizeInBits()); in computeKnownBitsFromOperator()
1624 V->getType()->getScalarSizeInBits() == BitWidth) && in computeKnownBits()
1783 unsigned BitWidth = V->getType()->getScalarSizeInBits(); in isKnownToBeAPowerOfTwo()
2162 Tmp = TyBits - U->getOperand(0)->getType()->getScalarSizeInBits(); in ComputeNumSignBits()
3551 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); in computeOverflowForUnsignedMul()
DInlineCost.cpp425 unsigned IntegerSize = I.getType()->getScalarSizeInBits(); in visitPtrToInt()
463 unsigned IntegerSize = Op->getType()->getScalarSizeInBits(); in visitIntToPtr()
/external/llvm/include/llvm/CodeGen/
DValueTypes.h257 unsigned getScalarSizeInBits() const { in getScalarSizeInBits() function
DMachineValueType.h508 unsigned getScalarSizeInBits() const { in getScalarSizeInBits() function
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp319 if (ValTy->isVectorTy() && ValTy->getScalarSizeInBits() == 1) in Act()
339 if (Val0->getType()->getScalarSizeInBits() == 1) in Act()
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp250 ValTy->getScalarSizeInBits() <= 32) in getVectorInstrCost()
263 ValTy->getScalarSizeInBits() <= 32) in getVectorInstrCost()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp1267 if (VT.getScalarSizeInBits() >= 32) { in X86TargetLowering()
6779 int LaneSize = 128 / VT.getScalarSizeInBits(); in is128BitLaneCrossingShuffleMask()
6801 int LaneSize = 128 / VT.getScalarSizeInBits(); in is128BitLaneRepeatedShuffleMask()
6932 int NumEltsInLane = 128 / VT.getScalarSizeInBits(); in lowerVectorShuffleWithUNPCK()
7113 int Scale = VT.getScalarSizeInBits() / 32; in lowerVectorShuffleAsBlend()
7160 int Scale = VT.getScalarSizeInBits() / 8; in lowerVectorShuffleAsBlend()
7450 int ShiftEltBits = VT.getScalarSizeInBits() * Scale; in lowerVectorShuffleAsShift()
7454 int ShiftAmt = Shift * VT.getScalarSizeInBits() / (ByteShift ? 8 : 1); in lowerVectorShuffleAsShift()
7461 MVT ShiftSVT = MVT::getIntegerVT(VT.getScalarSizeInBits() * Scale); in lowerVectorShuffleAsShift()
7478 for (int Scale = 2; Scale * VT.getScalarSizeInBits() <= 128; Scale *= 2) in lowerVectorShuffleAsShift()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeIntegerTypes.cpp313 unsigned DiffBits = NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(); in PromoteIntRes_BSWAP()
326 unsigned DiffBits = NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(); in PromoteIntRes_BITREVERSE()
378 DAG.getConstant(NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(), dl, in PromoteIntRes_CTLZ()
397 auto TopBit = APInt::getOneBitSet(NVT.getScalarSizeInBits(), in PromoteIntRes_CTTZ()
398 OVT.getScalarSizeInBits()); in PromoteIntRes_CTTZ()
DDAGCombiner.cpp2276 DAG.getConstant(VT.getScalarSizeInBits() - 1, DL, in visitSDIV()
2283 DAG.getConstant(VT.getScalarSizeInBits() - lg2, DL, in visitSDIV()
3959 if (matchRotateSub(InnerPos, InnerNeg, VT.getScalarSizeInBits())) { in MatchRotatePosNeg()
4005 unsigned EltSizeInBits = VT.getScalarSizeInBits(); in MatchRotate()
4329 TruncC = TruncC.trunc(TruncVT.getScalarSizeInBits()); in distributeTruncateThroughAnd()
4358 unsigned OpSizeInBits = VT.getScalarSizeInBits(); in visitSHL()
4446 uint64_t InnerShiftSize = InnerShiftVT.getScalarSizeInBits(); in visitSHL()
4467 if (c1 < VT.getScalarSizeInBits()) { in visitSHL()
4529 unsigned BitSize = VT.getScalarSizeInBits(); in visitSHL()
4686 if (LargeVT.getScalarSizeInBits() - OpSizeInBits == LargeShiftVal) { in visitSRA()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp467 if (I->getScalarSizeInBits() * I->getVectorNumElements() == 128) in getCostOfKeepingLiveOverCall()

123