Lines Matching refs:Result
367 LVILatticeVal &Result);
535 LVILatticeVal Result; in solveBlockValue() local
587 LVILatticeVal Result; // Start Undefined. in solveBlockValueNonLocal() local
617 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
619 Result.markOverdefined(); in solveBlockValueNonLocal()
621 BBLV = Result; in solveBlockValueNonLocal()
634 Result.mergeIn(EdgeResult); in solveBlockValueNonLocal()
638 if (Result.isOverdefined()) { in solveBlockValueNonLocal()
645 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
648 BBLV = Result; in solveBlockValueNonLocal()
656 assert(!Result.isOverdefined()); in solveBlockValueNonLocal()
657 BBLV = Result; in solveBlockValueNonLocal()
663 LVILatticeVal Result; // Start Undefined. in solveBlockValuePHINode() local
676 Result.mergeIn(EdgeResult); in solveBlockValuePHINode()
680 if (Result.isOverdefined()) { in solveBlockValuePHINode()
684 BBLV = Result; in solveBlockValuePHINode()
692 assert(!Result.isOverdefined() && "Possible PHI in entry block?"); in solveBlockValuePHINode()
693 BBLV = Result; in solveBlockValuePHINode()
727 LVILatticeVal Result; in solveBlockValueConstantRange() local
730 Result.markConstantRange(LHSRange.add(RHSRange)); in solveBlockValueConstantRange()
733 Result.markConstantRange(LHSRange.sub(RHSRange)); in solveBlockValueConstantRange()
736 Result.markConstantRange(LHSRange.multiply(RHSRange)); in solveBlockValueConstantRange()
739 Result.markConstantRange(LHSRange.udiv(RHSRange)); in solveBlockValueConstantRange()
742 Result.markConstantRange(LHSRange.shl(RHSRange)); in solveBlockValueConstantRange()
745 Result.markConstantRange(LHSRange.lshr(RHSRange)); in solveBlockValueConstantRange()
748 Result.markConstantRange(LHSRange.truncate(ResultTy->getBitWidth())); in solveBlockValueConstantRange()
751 Result.markConstantRange(LHSRange.signExtend(ResultTy->getBitWidth())); in solveBlockValueConstantRange()
754 Result.markConstantRange(LHSRange.zeroExtend(ResultTy->getBitWidth())); in solveBlockValueConstantRange()
757 Result.markConstantRange(LHSRange); in solveBlockValueConstantRange()
760 Result.markConstantRange(LHSRange.binaryAnd(RHSRange)); in solveBlockValueConstantRange()
763 Result.markConstantRange(LHSRange.binaryOr(RHSRange)); in solveBlockValueConstantRange()
770 Result.markOverdefined(); in solveBlockValueConstantRange()
774 BBLV = Result; in solveBlockValueConstantRange()
781 BasicBlock *BBTo, LVILatticeVal &Result) { in getEdgeValueLocal() argument
796 Result = LVILatticeVal::get(ConstantInt::get( in getEdgeValueLocal()
809 Result = LVILatticeVal::get(cast<Constant>(ICI->getOperand(1))); in getEdgeValueLocal()
811 Result = LVILatticeVal::getNot(cast<Constant>(ICI->getOperand(1))); in getEdgeValueLocal()
835 Result = LVILatticeVal::getRange(TrueValues); in getEdgeValueLocal()
863 Result = LVILatticeVal::getRange(EdgesVals); in getEdgeValueLocal()
872 BasicBlock *BBTo, LVILatticeVal &Result) { in getEdgeValue() argument
875 Result = LVILatticeVal::get(VC); in getEdgeValue()
879 if (getEdgeValueLocal(Val, BBFrom, BBTo, Result)) { in getEdgeValue()
880 if (!Result.isConstantRange() || in getEdgeValue()
881 Result.getConstantRange().getSingleElement()) in getEdgeValue()
898 Result.getConstantRange().intersectWith(InBlock.getConstantRange()); in getEdgeValue()
899 Result = LVILatticeVal::getRange(Range); in getEdgeValue()
909 Result = getBlockValue(Val, BBFrom); in getEdgeValue()
919 LVILatticeVal Result = getBlockValue(V, BB); in getValueInBlock() local
921 DEBUG(dbgs() << " Result = " << Result << "\n"); in getValueInBlock()
922 return Result; in getValueInBlock()
930 LVILatticeVal Result; in getValueOnEdge() local
931 if (!getEdgeValue(V, FromBB, ToBB, Result)) { in getValueOnEdge()
933 bool WasFastQuery = getEdgeValue(V, FromBB, ToBB, Result); in getValueOnEdge()
938 DEBUG(dbgs() << " Result = " << Result << "\n"); in getValueOnEdge()
939 return Result; in getValueOnEdge()
1039 LVILatticeVal Result = getCache(PImpl).getValueInBlock(V, BB); in getConstant() local
1041 if (Result.isConstant()) in getConstant()
1042 return Result.getConstant(); in getConstant()
1043 if (Result.isConstantRange()) { in getConstant()
1044 ConstantRange CR = Result.getConstantRange(); in getConstant()
1055 LVILatticeVal Result = getCache(PImpl).getValueOnEdge(V, FromBB, ToBB); in getConstantOnEdge() local
1057 if (Result.isConstant()) in getConstantOnEdge()
1058 return Result.getConstant(); in getConstantOnEdge()
1059 if (Result.isConstantRange()) { in getConstantOnEdge()
1060 ConstantRange CR = Result.getConstantRange(); in getConstantOnEdge()
1073 LVILatticeVal Result = getCache(PImpl).getValueOnEdge(V, FromBB, ToBB); in getPredicateOnEdge() local
1077 if (Result.isConstant()) { in getPredicateOnEdge()
1078 Res = ConstantFoldCompareInstOperands(Pred, Result.getConstant(), C, DL, in getPredicateOnEdge()
1085 if (Result.isConstantRange()) { in getPredicateOnEdge()
1089 ConstantRange CR = Result.getConstantRange(); in getPredicateOnEdge()
1114 if (Result.isNotConstant()) { in getPredicateOnEdge()
1120 Result.getNotConstant(), C, DL, in getPredicateOnEdge()
1127 Result.getNotConstant(), C, DL, in getPredicateOnEdge()