Lines Matching defs:constant

168     const Constant *constant = dyn_cast<Constant>(value);
170 if (constant) {
171 if (constant->getValueID() == Value::ConstantFPVal) {
172 if (auto *cfp = dyn_cast<ConstantFP>(constant)) {
185 if (!ResolveConstantValue(value_apint, constant))
258 bool ResolveConstantValue(APInt &value, const Constant *constant) {
259 switch (constant->getValueID()) {
263 if (const Function *constant_func = dyn_cast<Function>(constant)) {
274 if (const ConstantInt *constant_int = dyn_cast<ConstantInt>(constant)) {
280 if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) {
287 dyn_cast<ConstantExpr>(constant)) {
330 if (isa<ConstantPointerNull>(constant)) {
370 bool ResolveConstant(lldb::addr_t process_address, const Constant *constant) {
373 if (!ResolveConstantValue(resolved_value, constant))
376 size_t constant_size = m_target_data.getTypeStoreSize(constant->getType());
449 if (const Constant *constant = dyn_cast<Constant>(value)) {
450 if (!ResolveConstant(data_address, constant)) {
481 static bool CanResolveConstant(llvm::Constant *constant) {
482 switch (constant->getValueID()) {
490 if (const ConstantExpr *constant_expr = dyn_cast<ConstantExpr>(constant)) {
499 // Check that the base can be constant-resolved.
669 if (Constant *constant = llvm::dyn_cast<Constant>(operand)) {
670 if (!CanResolveConstant(constant)) {
671 LLDB_LOGF(log, "Unsupported constant: %s",
672 PrintValue(constant).c_str());
1085 LLDB_LOGF(log, "Evaluated constant index %s as %llu",
1506 // Check if this is a string literal or constant string pointer