Lines Matching refs:getConstant

117   Constant *getConstant() const {  in getConstant()  function in __anon86856d210111::LatticeVal
134 assert(getConstant() == V && "Marking constant with different value"); in markConstant()
146 if (V == getConstant()) return false; in markConstant()
160 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt()
168 return dyn_cast<BlockAddress>(getConstant()); in getBlockAddress()
182 return ValueLatticeElement::get(getConstant()); in toValueLattice()
473 return markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
474 if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
798 OperandVal = IV.getConstant(); in visitPHINode()
808 if (IV.getConstant() != OperandVal) in visitPHINode()
864 Constant *C = ConstantFoldCastOperand(I.getOpcode(), OpSt.getConstant(), in visitCastInst()
951 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
952 return (void)markConstant(&I, FVal.getConstant()); in visitSelectInst()
970 Constant *C = ConstantExpr::get(I.getOpcode(), V1State.getConstant(), in visitBinaryOperator()
971 V2State.getConstant()); in visitBinaryOperator()
987 if (V1State.isConstant() && V1State.getConstant()->isNullValue()) in visitBinaryOperator()
988 return (void)markConstant(IV, &I, V1State.getConstant()); in visitBinaryOperator()
1010 if (NonOverdefVal->getConstant()->isNullValue()) in visitBinaryOperator()
1011 return (void)markConstant(IV, &I, NonOverdefVal->getConstant()); in visitBinaryOperator()
1016 return (void)markConstant(IV, &I, NonOverdefVal->getConstant()); in visitBinaryOperator()
1080 Operands.push_back(State.getConstant()); in visitGetElementPtrInst()
1126 Constant *Ptr = PtrVal.getConstant(); in visitLoadInst()
1248 Operands.push_back(State.getConstant()); in visitCallSite()
1523 if (Op1LV.isConstant() && Op1LV.getConstant()->isZeroValue()) in ResolvedUndefsIn()
1580 markForcedConstant(&I, Op1LV.getConstant()); in ResolvedUndefsIn()
1718 ? V.getConstant() in tryToReplaceWithConstant()
1727 Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(V->getType()); in tryToReplaceWithConstant()