Lines Matching refs:getConstant
92 Constant *getConstant() const { in getConstant() function in __anona95eefe80111::LatticeVal
109 assert(getConstant() == V && "Marking constant with different value"); in markConstant()
121 if (V == getConstant()) return false; in markConstant()
135 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt()
353 markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
354 else if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
683 OperandVal = IV.getConstant(); in visitPHINode()
693 if (IV.getConstant() != OperandVal) in visitPHINode()
751 OpSt.getConstant(), I.getType())); in visitCastInst()
833 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
834 return markConstant(&I, FVal.getConstant()); in visitSelectInst()
853 ConstantExpr::get(I.getOpcode(), V1State.getConstant(), in visitBinaryOperator()
854 V2State.getConstant())); in visitBinaryOperator()
887 if (NonOverdefVal->getConstant()->isNullValue()) in visitBinaryOperator()
888 return markConstant(IV, &I, NonOverdefVal->getConstant()); in visitBinaryOperator()
892 return markConstant(IV, &I, NonOverdefVal->getConstant()); in visitBinaryOperator()
911 V1State.getConstant(), in visitCmpInst()
912 V2State.getConstant())); in visitCmpInst()
932 markConstant(&I, ConstantExpr::getExtractElement(ValState.getConstant(), in visitExtractElementInst()
933 IdxState.getConstant())); in visitExtractElementInst()
950 markConstant(&I, ConstantExpr::getInsertElement(ValState.getConstant(), in visitInsertElementInst()
951 EltState.getConstant(), in visitInsertElementInst()
952 IdxState.getConstant())); in visitInsertElementInst()
956 EltState.getConstant(), in visitInsertElementInst()
957 IdxState.getConstant())); in visitInsertElementInst()
979 V1State.getConstant() : UndefValue::get(I.getType()); in visitShuffleVectorInst()
981 V2State.getConstant() : UndefValue::get(I.getType()); in visitShuffleVectorInst()
983 MaskState.getConstant() : UndefValue::get(I.getOperand(2)->getType()); in visitShuffleVectorInst()
1007 Operands.push_back(State.getConstant()); in visitGetElementPtrInst()
1050 Constant *Ptr = PtrVal.getConstant(); in visitLoadInst()
1105 Operands.push_back(State.getConstant()); in visitCallSite()
1408 markForcedConstant(I, Op1LV.getConstant()); in ResolvedUndefsIn()
1606 ? IV.getConstant() : UndefValue::get(Inst->getType()); in runOnFunction()
1769 IV.getConstant() : UndefValue::get(AI->getType()); in runOnModule()
1814 ? IV.getConstant() : UndefValue::get(Inst->getType()); in runOnModule()