Home | History | Annotate | Download | only in IR

Lines Matching refs:ConstantInt

425 static bool tryMergeRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low,
426 ConstantInt *High) {
429 APInt LB = cast<ConstantInt>(EndPoints[Size - 2])->getValue();
430 APInt LE = cast<ConstantInt>(EndPoints[Size - 1])->getValue();
435 EndPoints[Size - 2] = ConstantInt::get(Ty, Union.getLower());
436 EndPoints[Size - 1] = ConstantInt::get(Ty, Union.getUpper());
442 static void addRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low,
443 ConstantInt *High) {
471 ConstantInt *ALow = cast<ConstantInt>(A->getOperand(2 * AI));
472 ConstantInt *BLow = cast<ConstantInt>(B->getOperand(2 * BI));
475 addRange(EndPoints, ALow, cast<ConstantInt>(A->getOperand(2 * AI + 1)));
478 addRange(EndPoints, BLow, cast<ConstantInt>(B->getOperand(2 * BI + 1)));
483 addRange(EndPoints, cast<ConstantInt>(A->getOperand(2 * AI)),
484 cast<ConstantInt>(A->getOperand(2 * AI + 1)));
488 addRange(EndPoints, cast<ConstantInt>(B->getOperand(2 * BI)),
489 cast<ConstantInt>(B->getOperand(2 * BI + 1)));
497 ConstantInt *FB = cast<ConstantInt>(EndPoints[0]);
498 ConstantInt *FE = cast<ConstantInt>(EndPoints[1]);
510 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(),
511 cast<ConstantInt>(EndPoints[1])->getValue());