Home
last modified time | relevance | path

Searched refs:TyBits (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp902 unsigned TyBits = TD ? TD->getTypeSizeInBits(V->getType()->getScalarType()) : in ComputeNumSignBits() local
917 Tmp = TyBits - U->getOperand(0)->getType()->getScalarSizeInBits(); in ComputeNumSignBits()
925 if (Tmp > TyBits) Tmp = TyBits; in ComputeNumSignBits()
931 if (Tmp > TyBits) Tmp = TyBits; in ComputeNumSignBits()
939 if (C->getZExtValue() >= TyBits || // Bad shift. in ComputeNumSignBits()
973 APInt KnownZero(TyBits, 0), KnownOne(TyBits, 0); in ComputeNumSignBits()
974 APInt Mask = APInt::getAllOnesValue(TyBits); in ComputeNumSignBits()
980 if ((KnownZero | APInt(TyBits, 1)) == Mask) in ComputeNumSignBits()
981 return TyBits; in ComputeNumSignBits()
1000 APInt KnownZero(TyBits, 0), KnownOne(TyBits, 0); in ComputeNumSignBits()
[all …]
/external/llvm/lib/Analysis/
DValueTracking.cpp1930 static unsigned computeNumSignBitsVectorConstant(Value *V, unsigned TyBits) { in computeNumSignBitsVectorConstant() argument
1935 unsigned MinSignBits = TyBits; in computeNumSignBitsVectorConstant()
1960 unsigned TyBits = Q.DL.getTypeSizeInBits(V->getType()->getScalarType()); in ComputeNumSignBits() local
1974 Tmp = TyBits - U->getOperand(0)->getType()->getScalarSizeInBits(); in ComputeNumSignBits()
1990 return std::min(TyBits, NumBits + Denominator->logBase2()); in ComputeNumSignBits()
2024 unsigned ResBits = TyBits - Denominator->ceilLogBase2(); in ComputeNumSignBits()
2036 if (Tmp > TyBits) Tmp = TyBits; in ComputeNumSignBits()
2046 if (Tmp2 >= TyBits || // Bad shift. in ComputeNumSignBits()
2081 APInt KnownZero(TyBits, 0), KnownOne(TyBits, 0); in ComputeNumSignBits()
2086 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue()) in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1136 uint32_t TyBits = Ty->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() local
1137 int ShAmtVal = TyBits - ShAmt->getLimitedValue(TyBits); in visitICmpInstWithInstAndIntCst()