Lines Matching refs:constant
167 const Constant *constant = dyn_cast<Constant>(value); in EvaluateValue() local
169 if (constant) { in EvaluateValue()
172 if (!ResolveConstantValue(value_apint, constant)) in EvaluateValue()
230 bool ResolveConstantValue(APInt &value, const Constant *constant) { in ResolveConstantValue() argument
231 switch (constant->getValueID()) { in ResolveConstantValue()
235 if (const Function *constant_func = dyn_cast<Function>(constant)) { in ResolveConstantValue()
245 if (const ConstantInt *constant_int = dyn_cast<ConstantInt>(constant)) { in ResolveConstantValue()
251 if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) { in ResolveConstantValue()
258 dyn_cast<ConstantExpr>(constant)) { in ResolveConstantValue()
299 if (isa<ConstantPointerNull>(constant)) { in ResolveConstantValue()
339 bool ResolveConstant(lldb::addr_t process_address, const Constant *constant) { in ResolveConstant() argument
342 if (!ResolveConstantValue(resolved_value, constant)) in ResolveConstant()
345 size_t constant_size = m_target_data.getTypeStoreSize(constant->getType()); in ResolveConstant()
418 if (const Constant *constant = dyn_cast<Constant>(value)) { in ResolveValue() local
419 if (!ResolveConstant(data_address, constant)) { in ResolveValue()
451 static bool CanResolveConstant(llvm::Constant *constant) { in CanResolveConstant() argument
452 switch (constant->getValueID()) { in CanResolveConstant()
460 if (const ConstantExpr *constant_expr = dyn_cast<ConstantExpr>(constant)) { in CanResolveConstant()
628 if (Constant *constant = llvm::dyn_cast<Constant>(operand)) { in CanInterpret() local
629 if (!CanResolveConstant(constant)) { in CanInterpret()
632 PrintValue(constant).c_str()); in CanInterpret()