Lines Matching refs:Const
77 Constant *Const = getConstantOrNull(V); in tryToReplaceWithConstant() local
78 if (!Const) in tryToReplaceWithConstant()
99 LLVM_DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n'); in tryToReplaceWithConstant()
102 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant()
112 if (auto *Const = dyn_cast<ConstantInt>(Op)) in refineInstruction() local
113 return ConstantRange(Const->getValue()); in refineInstruction()
917 Constant *Const = nullptr; in getConstantOrNull() local
930 Const = ConstantStruct::get(ST, ConstVals); in getConstantOrNull()
935 Const = SCCPSolver::isConstant(LV) ? getConstant(LV, V->getType()) in getConstantOrNull()
938 assert(Const && "Constant is nullptr here!"); in getConstantOrNull()
939 return Const; in getConstantOrNull()