• Home
  • Raw
  • Download

Lines Matching refs:CV

448 void ELFWriter::EmitGlobalConstant(const Constant *CV, ELFSection &GblS) {  in EmitGlobalConstant()  argument
450 unsigned Size = TD->getTypeAllocSize(CV->getType()); in EmitGlobalConstant()
452 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) { in EmitGlobalConstant()
456 } else if (isa<ConstantAggregateZero>(CV)) { in EmitGlobalConstant()
459 } else if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) { in EmitGlobalConstant()
462 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) { in EmitGlobalConstant()
475 } else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in EmitGlobalConstant()
485 } else if (const ConstantVector *CP = dyn_cast<ConstantVector>(CV)) { in EmitGlobalConstant()
490 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { in EmitGlobalConstant()
506 } else if (CV->getType()->getTypeID() == Type::PointerTyID) { in EmitGlobalConstant()
508 if (isa<ConstantPointerNull>(CV)) in EmitGlobalConstant()
511 EmitGlobalDataRelocation(cast<const GlobalValue>(CV), in EmitGlobalConstant()
514 } else if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) { in EmitGlobalConstant()
523 ErrorMsg << "Constant unimp for type: " << *CV->getType(); in EmitGlobalConstant()
529 CstExprResTy ELFWriter::ResolveConstantExpr(const Constant *CV) { in ResolveConstantExpr() argument
533 if (!isa<ConstantExpr>(CV)) in ResolveConstantExpr()
534 return std::make_pair(CV, 0); in ResolveConstantExpr()
536 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); in ResolveConstantExpr()
549 Op = ConstantExpr::getIntegerCast(Op, TD->getIntPtrType(CV->getContext()), in ResolveConstantExpr()
591 return std::make_pair(CV, 0); // silence warning in ResolveConstantExpr()