Lines Matching refs:constant
166 const Constant *constant = dyn_cast<Constant>(value); in EvaluateValue() local
168 if (constant) { in EvaluateValue()
171 if (!ResolveConstantValue(value_apint, constant)) in EvaluateValue()
231 bool ResolveConstantValue(APInt &value, const Constant *constant) { in ResolveConstantValue() argument
232 switch (constant->getValueID()) { in ResolveConstantValue()
236 if (const Function *constant_func = dyn_cast<Function>(constant)) { in ResolveConstantValue()
247 if (const ConstantInt *constant_int = dyn_cast<ConstantInt>(constant)) { in ResolveConstantValue()
253 if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) { in ResolveConstantValue()
260 dyn_cast<ConstantExpr>(constant)) { in ResolveConstantValue()
301 if (isa<ConstantPointerNull>(constant)) { in ResolveConstantValue()
342 bool ResolveConstant(lldb::addr_t process_address, const Constant *constant) { in ResolveConstant() argument
345 if (!ResolveConstantValue(resolved_value, constant)) in ResolveConstant()
348 size_t constant_size = m_target_data.getTypeStoreSize(constant->getType()); in ResolveConstant()
421 if (const Constant *constant = dyn_cast<Constant>(value)) { in ResolveValue() local
422 if (!ResolveConstant(data_address, constant)) { in ResolveValue()
450 static bool CanResolveConstant(llvm::Constant *constant) { in CanResolveConstant() argument
451 switch (constant->getValueID()) { in CanResolveConstant()
459 if (const ConstantExpr *constant_expr = dyn_cast<ConstantExpr>(constant)) { in CanResolveConstant()
618 if (Constant *constant = llvm::dyn_cast<Constant>(operand)) { in CanInterpret() local
619 if (!CanResolveConstant(constant)) { in CanInterpret()
621 PrintValue(constant).c_str()); in CanInterpret()