Lines Matching refs:APInt
54 APInt Low, High;
119 const APInt &NumMergedCases) { in FixPhis()
125 APInt LocalNumMergedCases = NumMergedCases; in FixPhis()
210 APInt Range = Leaf.High->getValue() - Leaf.Low->getValue(); in NewLeafBlock()
211 for (APInt j(Range.getBitWidth(), 0, false); j.ult(Range); ++j) { in NewLeafBlock()
242 APInt NumMergedCases = UpperBound->getValue() - LowerBound->getValue(); in SwitchConvert()
273 APInt GapLow = LHS.back().High->getValue() + 1; in SwitchConvert()
274 APInt GapHigh = NewLowerBound->getValue() - 1; in SwitchConvert()
327 const APInt &nextValue = J->Low->getValue(); in Clusterify()
328 const APInt ¤tValue = I->High->getValue(); in Clusterify()
374 APInt UnsignedZero(BitWidth + 1, 0); in ProcessSwitchInst()
375 APInt UnsignedMax = APInt::getMaxValue(BitWidth); in ProcessSwitchInst()
422 const APInt &Low = Cases.front().Low->getValue(); in ProcessSwitchInst()
423 const APInt &High = Cases.back().High->getValue(); in ProcessSwitchInst()
424 APInt Min = APIntOps::smin(ValRange.getSignedMin(), Low); in ProcessSwitchInst()
425 APInt Max = APIntOps::smax(ValRange.getSignedMax(), High); in ProcessSwitchInst()
435 DenseMap<BasicBlock *, APInt> Popularity; in ProcessSwitchInst()
436 APInt MaxPop(UnsignedZero); in ProcessSwitchInst()
439 APInt SignedMax = APInt::getSignedMaxValue(BitWidth); in ProcessSwitchInst()
440 APInt SignedMin = APInt::getSignedMinValue(BitWidth); in ProcessSwitchInst()
444 const APInt &Low = I.Low->getValue(); in ProcessSwitchInst()
445 const APInt &High = I.High->getValue(); in ProcessSwitchInst()
463 APInt N = High.sext(BitWidth + 1) - Low.sext(BitWidth + 1) + 1; in ProcessSwitchInst()
465 APInt &Pop = Popularity.insert({I.BB, APInt(UnsignedZero)}).first->second; in ProcessSwitchInst()
502 for (APInt I(UnsignedZero); I.ult(MaxPop - 1); ++I) in ProcessSwitchInst()