Lines Matching refs:constant

168     const Constant *constant = dyn_cast<Constant>(value);  in EvaluateValue()  local
170 if (constant) { in EvaluateValue()
171 if (constant->getValueID() == Value::ConstantFPVal) { in EvaluateValue()
172 if (auto *cfp = dyn_cast<ConstantFP>(constant)) { in EvaluateValue()
185 if (!ResolveConstantValue(value_apint, constant)) in EvaluateValue()
258 bool ResolveConstantValue(APInt &value, const Constant *constant) { in ResolveConstantValue() argument
259 switch (constant->getValueID()) { in ResolveConstantValue()
263 if (const Function *constant_func = dyn_cast<Function>(constant)) { in ResolveConstantValue()
274 if (const ConstantInt *constant_int = dyn_cast<ConstantInt>(constant)) { in ResolveConstantValue()
280 if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) { in ResolveConstantValue()
287 dyn_cast<ConstantExpr>(constant)) { in ResolveConstantValue()
330 if (isa<ConstantPointerNull>(constant)) { in ResolveConstantValue()
370 bool ResolveConstant(lldb::addr_t process_address, const Constant *constant) { in ResolveConstant() argument
373 if (!ResolveConstantValue(resolved_value, constant)) in ResolveConstant()
376 size_t constant_size = m_target_data.getTypeStoreSize(constant->getType()); in ResolveConstant()
449 if (const Constant *constant = dyn_cast<Constant>(value)) { in ResolveValue() local
450 if (!ResolveConstant(data_address, constant)) { in ResolveValue()
481 static bool CanResolveConstant(llvm::Constant *constant) { in CanResolveConstant() argument
482 switch (constant->getValueID()) { in CanResolveConstant()
490 if (const ConstantExpr *constant_expr = dyn_cast<ConstantExpr>(constant)) { in CanResolveConstant()
669 if (Constant *constant = llvm::dyn_cast<Constant>(operand)) { in CanInterpret() local
670 if (!CanResolveConstant(constant)) { in CanInterpret()
672 PrintValue(constant).c_str()); in CanInterpret()