Lines Matching refs:CV
2118 const MCExpr *AsmPrinter::lowerConstant(const Constant *CV) { in lowerConstant() argument
2121 if (CV->isNullValue() || isa<UndefValue>(CV)) in lowerConstant()
2124 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) in lowerConstant()
2127 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) in lowerConstant()
2130 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) in lowerConstant()
2133 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); in lowerConstant()
2185 Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()), in lowerConstant()
2384 const ConstantVector *CV, AsmPrinter &AP) { in emitGlobalConstantVector() argument
2385 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i) in emitGlobalConstantVector()
2386 emitGlobalConstantImpl(DL, CV->getOperand(i), AP); in emitGlobalConstantVector()
2388 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
2389 unsigned EmittedSize = DL.getTypeAllocSize(CV->getType()->getElementType()) * in emitGlobalConstantVector()
2390 CV->getType()->getNumElements(); in emitGlobalConstantVector()
2621 static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV, in emitGlobalConstantImpl() argument
2624 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantImpl()
2629 if (!BaseCV && CV->hasOneUse()) in emitGlobalConstantImpl()
2630 BaseCV = dyn_cast<Constant>(CV->user_back()); in emitGlobalConstantImpl()
2632 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in emitGlobalConstantImpl()
2635 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in emitGlobalConstantImpl()
2652 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) in emitGlobalConstantImpl()
2655 if (isa<ConstantPointerNull>(CV)) { in emitGlobalConstantImpl()
2660 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV)) in emitGlobalConstantImpl()
2663 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) in emitGlobalConstantImpl()
2666 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) in emitGlobalConstantImpl()
2669 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { in emitGlobalConstantImpl()
2685 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV)) in emitGlobalConstantImpl()
2690 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
2702 void AsmPrinter::EmitGlobalConstant(const DataLayout &DL, const Constant *CV) { in EmitGlobalConstant() argument
2703 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in EmitGlobalConstant()
2705 emitGlobalConstantImpl(DL, CV, *this); in EmitGlobalConstant()