Home | History | Annotate | Download | only in IR

Lines Matching refs:ConstantInt

428 static bool tryMergeRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low,
429 ConstantInt *High) {
432 APInt LB = cast<ConstantInt>(EndPoints[Size - 2])->getValue();
433 APInt LE = cast<ConstantInt>(EndPoints[Size - 1])->getValue();
438 EndPoints[Size - 2] = ConstantInt::get(Ty, Union.getLower());
439 EndPoints[Size - 1] = ConstantInt::get(Ty, Union.getUpper());
445 static void addRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low,
446 ConstantInt *High) {
474 ConstantInt *ALow = cast<ConstantInt>(A->getOperand(2 * AI));
475 ConstantInt *BLow = cast<ConstantInt>(B->getOperand(2 * BI));
478 addRange(EndPoints, ALow, cast<ConstantInt>(A->getOperand(2 * AI + 1)));
481 addRange(EndPoints, BLow, cast<ConstantInt>(B->getOperand(2 * BI + 1)));
486 addRange(EndPoints, cast<ConstantInt>(A->getOperand(2 * AI)),
487 cast<ConstantInt>(A->getOperand(2 * AI + 1)));
491 addRange(EndPoints, cast<ConstantInt>(B->getOperand(2 * BI)),
492 cast<ConstantInt>(B->getOperand(2 * BI + 1)));
500 ConstantInt *FB = cast<ConstantInt>(EndPoints[0]);
501 ConstantInt *FE = cast<ConstantInt>(EndPoints[1]);
513 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(),
514 cast<ConstantInt>(EndPoints[1])->getValue());