Lines Matching defs:CV
3131 const MCExpr *AsmPrinter::lowerConstant(const Constant *CV) {
3134 if (CV->isNullValue() || isa<UndefValue>(CV))
3137 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV))
3140 if (const ConstantPtrAuth *CPA = dyn_cast<ConstantPtrAuth>(CV))
3143 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
3146 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV))
3149 if (const auto *Equiv = dyn_cast<DSOLocalEquivalent>(CV))
3152 if (const NoCFIValue *NC = dyn_cast<NoCFIValue>(CV))
3155 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV);
3204 Op = ConstantFoldIntegerCast(Op, DL.getIntPtrType(CV->getType()),
3429 const ConstantVector *CV, AsmPrinter &AP,
3431 Type *ElementType = CV->getType()->getElementType();
3442 IntegerType::get(CV->getContext(), DL.getTypeSizeInBits(CV->getType()));
3444 ConstantExpr::getBitCast(const_cast<ConstantVector *>(CV), IntT), DL));
3451 EmittedSize = DL.getTypeStoreSize(CV->getType());
3453 for (unsigned I = 0, E = CV->getType()->getNumElements(); I != E; ++I) {
3454 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList);
3455 emitGlobalConstantImpl(DL, CV->getOperand(I), AP);
3458 DL.getTypeAllocSize(ElementType) * CV->getType()->getNumElements();
3461 unsigned Size = DL.getTypeAllocSize(CV->getType());
3689 static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV,
3694 uint64_t Size = DL.getTypeAllocSize(CV->getType());
3699 if (!BaseCV && CV->hasOneUse())
3700 BaseCV = dyn_cast<Constant>(CV->user_back());
3702 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
3705 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
3706 const uint64_t StoreSize = DL.getTypeStoreSize(CV->getType());
3724 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
3727 if (isa<ConstantPointerNull>(CV)) {
3732 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV))
3735 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
3738 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV))
3741 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
3757 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV))
3762 const MCExpr *ME = AP.lowerConstant(CV);
3774 void AsmPrinter::emitGlobalConstant(const DataLayout &DL, const Constant *CV,
3776 uint64_t Size = DL.getTypeAllocSize(CV->getType());
3778 emitGlobalConstantImpl(DL, CV, *this, nullptr, 0, AliasList);