Lines Matching defs:constant
166 const Constant *constant = dyn_cast<Constant>(value);
168 if (constant) {
169 if (constant->getValueID() == Value::ConstantFPVal) {
170 if (auto *cfp = dyn_cast<ConstantFP>(constant)) {
183 if (!ResolveConstantValue(value_apint, constant))
256 bool ResolveConstantValue(APInt &value, const Constant *constant) {
257 switch (constant->getValueID()) {
261 if (const Function *constant_func = dyn_cast<Function>(constant)) {
272 if (const ConstantInt *constant_int = dyn_cast<ConstantInt>(constant)) {
278 if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) {
285 dyn_cast<ConstantExpr>(constant)) {
328 if (isa<ConstantPointerNull>(constant)) {
368 bool ResolveConstant(lldb::addr_t process_address, const Constant *constant) {
371 if (!ResolveConstantValue(resolved_value, constant))
374 size_t constant_size = m_target_data.getTypeStoreSize(constant->getType());
447 if (const Constant *constant = dyn_cast<Constant>(value)) {
448 if (!ResolveConstant(data_address, constant)) {
479 static bool CanResolveConstant(llvm::Constant *constant) {
480 switch (constant->getValueID()) {
488 if (const ConstantExpr *constant_expr = dyn_cast<ConstantExpr>(constant)) {
497 // Check that the base can be constant-resolved.
667 if (Constant *constant = llvm::dyn_cast<Constant>(operand)) {
668 if (!CanResolveConstant(constant)) {
669 LLDB_LOGF(log, "Unsupported constant: %s",
670 PrintValue(constant).c_str());
1070 LLDB_LOGF(log, "Evaluated constant index %s as %llu",
1476 // Check if this is a string literal or constant string pointer