Lines Matching refs:Result
366 LVILatticeVal &Result);
534 LVILatticeVal Result; in solveBlockValue() local
586 LVILatticeVal Result; // Start Undefined. in solveBlockValueNonLocal() local
616 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
618 Result.markOverdefined(); in solveBlockValueNonLocal()
620 BBLV = Result; in solveBlockValueNonLocal()
633 Result.mergeIn(EdgeResult); in solveBlockValueNonLocal()
637 if (Result.isOverdefined()) { in solveBlockValueNonLocal()
644 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
647 BBLV = Result; in solveBlockValueNonLocal()
655 assert(!Result.isOverdefined()); in solveBlockValueNonLocal()
656 BBLV = Result; in solveBlockValueNonLocal()
662 LVILatticeVal Result; // Start Undefined. in solveBlockValuePHINode() local
675 Result.mergeIn(EdgeResult); in solveBlockValuePHINode()
679 if (Result.isOverdefined()) { in solveBlockValuePHINode()
683 BBLV = Result; in solveBlockValuePHINode()
691 assert(!Result.isOverdefined() && "Possible PHI in entry block?"); in solveBlockValuePHINode()
692 BBLV = Result; in solveBlockValuePHINode()
726 LVILatticeVal Result; in solveBlockValueConstantRange() local
729 Result.markConstantRange(LHSRange.add(RHSRange)); in solveBlockValueConstantRange()
732 Result.markConstantRange(LHSRange.sub(RHSRange)); in solveBlockValueConstantRange()
735 Result.markConstantRange(LHSRange.multiply(RHSRange)); in solveBlockValueConstantRange()
738 Result.markConstantRange(LHSRange.udiv(RHSRange)); in solveBlockValueConstantRange()
741 Result.markConstantRange(LHSRange.shl(RHSRange)); in solveBlockValueConstantRange()
744 Result.markConstantRange(LHSRange.lshr(RHSRange)); in solveBlockValueConstantRange()
747 Result.markConstantRange(LHSRange.truncate(ResultTy->getBitWidth())); in solveBlockValueConstantRange()
750 Result.markConstantRange(LHSRange.signExtend(ResultTy->getBitWidth())); in solveBlockValueConstantRange()
753 Result.markConstantRange(LHSRange.zeroExtend(ResultTy->getBitWidth())); in solveBlockValueConstantRange()
756 Result.markConstantRange(LHSRange); in solveBlockValueConstantRange()
759 Result.markConstantRange(LHSRange.binaryAnd(RHSRange)); in solveBlockValueConstantRange()
762 Result.markConstantRange(LHSRange.binaryOr(RHSRange)); in solveBlockValueConstantRange()
769 Result.markOverdefined(); in solveBlockValueConstantRange()
773 BBLV = Result; in solveBlockValueConstantRange()
780 BasicBlock *BBTo, LVILatticeVal &Result) { in getEdgeValueLocal() argument
795 Result = LVILatticeVal::get(ConstantInt::get( in getEdgeValueLocal()
808 Result = LVILatticeVal::get(cast<Constant>(ICI->getOperand(1))); in getEdgeValueLocal()
810 Result = LVILatticeVal::getNot(cast<Constant>(ICI->getOperand(1))); in getEdgeValueLocal()
834 Result = LVILatticeVal::getRange(TrueValues); in getEdgeValueLocal()
862 Result = LVILatticeVal::getRange(EdgesVals); in getEdgeValueLocal()
871 BasicBlock *BBTo, LVILatticeVal &Result) { in getEdgeValue() argument
874 Result = LVILatticeVal::get(VC); in getEdgeValue()
878 if (getEdgeValueLocal(Val, BBFrom, BBTo, Result)) { in getEdgeValue()
879 if (!Result.isConstantRange() || in getEdgeValue()
880 Result.getConstantRange().getSingleElement()) in getEdgeValue()
897 Result.getConstantRange().intersectWith(InBlock.getConstantRange()); in getEdgeValue()
898 Result = LVILatticeVal::getRange(Range); in getEdgeValue()
908 Result = getBlockValue(Val, BBFrom); in getEdgeValue()
918 LVILatticeVal Result = getBlockValue(V, BB); in getValueInBlock() local
920 DEBUG(dbgs() << " Result = " << Result << "\n"); in getValueInBlock()
921 return Result; in getValueInBlock()
929 LVILatticeVal Result; in getValueOnEdge() local
930 if (!getEdgeValue(V, FromBB, ToBB, Result)) { in getValueOnEdge()
932 bool WasFastQuery = getEdgeValue(V, FromBB, ToBB, Result); in getValueOnEdge()
937 DEBUG(dbgs() << " Result = " << Result << "\n"); in getValueOnEdge()
938 return Result; in getValueOnEdge()
1056 LVILatticeVal Result = getCache(PImpl).getValueInBlock(V, BB); in getConstant() local
1058 if (Result.isConstant()) in getConstant()
1059 return Result.getConstant(); in getConstant()
1060 if (Result.isConstantRange()) { in getConstant()
1061 ConstantRange CR = Result.getConstantRange(); in getConstant()
1072 LVILatticeVal Result = getCache(PImpl).getValueOnEdge(V, FromBB, ToBB); in getConstantOnEdge() local
1074 if (Result.isConstant()) in getConstantOnEdge()
1075 return Result.getConstant(); in getConstantOnEdge()
1076 if (Result.isConstantRange()) { in getConstantOnEdge()
1077 ConstantRange CR = Result.getConstantRange(); in getConstantOnEdge()
1090 LVILatticeVal Result = getCache(PImpl).getValueOnEdge(V, FromBB, ToBB); in getPredicateOnEdge() local
1094 if (Result.isConstant()) { in getPredicateOnEdge()
1095 Res = ConstantFoldCompareInstOperands(Pred, Result.getConstant(), C, TD, in getPredicateOnEdge()
1102 if (Result.isConstantRange()) { in getPredicateOnEdge()
1106 ConstantRange CR = Result.getConstantRange(); in getPredicateOnEdge()
1131 if (Result.isNotConstant()) { in getPredicateOnEdge()
1137 Result.getNotConstant(), C, TD, in getPredicateOnEdge()
1144 Result.getNotConstant(), C, TD, in getPredicateOnEdge()