Lines Matching refs:getConstant
93 Constant *getConstant() const { in getConstant() function in __anon10360b9e0111::LatticeVal
110 assert(getConstant() == V && "Marking constant with different value"); in markConstant()
122 if (V == getConstant()) return false; in markConstant()
136 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt()
355 markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
356 else if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
686 OperandVal = IV.getConstant(); in visitPHINode()
696 if (IV.getConstant() != OperandVal) in visitPHINode()
754 OpSt.getConstant(), I.getType())); in visitCastInst()
836 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
837 return markConstant(&I, FVal.getConstant()); in visitSelectInst()
856 ConstantExpr::get(I.getOpcode(), V1State.getConstant(), in visitBinaryOperator()
857 V2State.getConstant())); in visitBinaryOperator()
890 if (NonOverdefVal->getConstant()->isNullValue()) in visitBinaryOperator()
891 return markConstant(IV, &I, NonOverdefVal->getConstant()); in visitBinaryOperator()
895 return markConstant(IV, &I, NonOverdefVal->getConstant()); in visitBinaryOperator()
914 V1State.getConstant(), in visitCmpInst()
915 V2State.getConstant())); in visitCmpInst()
935 markConstant(&I, ConstantExpr::getExtractElement(ValState.getConstant(), in visitExtractElementInst()
936 IdxState.getConstant())); in visitExtractElementInst()
953 markConstant(&I, ConstantExpr::getInsertElement(ValState.getConstant(), in visitInsertElementInst()
954 EltState.getConstant(), in visitInsertElementInst()
955 IdxState.getConstant())); in visitInsertElementInst()
959 EltState.getConstant(), in visitInsertElementInst()
960 IdxState.getConstant())); in visitInsertElementInst()
982 V1State.getConstant() : UndefValue::get(I.getType()); in visitShuffleVectorInst()
984 V2State.getConstant() : UndefValue::get(I.getType()); in visitShuffleVectorInst()
986 MaskState.getConstant() : UndefValue::get(I.getOperand(2)->getType()); in visitShuffleVectorInst()
1010 Operands.push_back(State.getConstant()); in visitGetElementPtrInst()
1054 Constant *Ptr = PtrVal.getConstant(); in visitLoadInst()
1109 Operands.push_back(State.getConstant()); in visitCallSite()
1413 markForcedConstant(I, Op1LV.getConstant()); in ResolvedUndefsIn()
1615 ? IV.getConstant() : UndefValue::get(Inst->getType()); in runOnFunction()
1778 IV.getConstant() : UndefValue::get(AI->getType()); in runOnModule()
1823 ? IV.getConstant() : UndefValue::get(Inst->getType()); in runOnModule()