Lines Matching refs:CV

3123 const MCExpr *AsmPrinter::lowerConstant(const Constant *CV) {  in lowerConstant()  argument
3126 if (CV->isNullValue() || isa<UndefValue>(CV)) in lowerConstant()
3129 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) in lowerConstant()
3132 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) in lowerConstant()
3135 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) in lowerConstant()
3138 if (const auto *Equiv = dyn_cast<DSOLocalEquivalent>(CV)) in lowerConstant()
3141 if (const NoCFIValue *NC = dyn_cast<NoCFIValue>(CV)) in lowerConstant()
3144 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); in lowerConstant()
3193 Op = ConstantFoldIntegerCast(Op, DL.getIntPtrType(CV->getType()), in lowerConstant()
3418 const ConstantVector *CV, AsmPrinter &AP, in emitGlobalConstantVector() argument
3420 Type *ElementType = CV->getType()->getElementType(); in emitGlobalConstantVector()
3431 IntegerType::get(CV->getContext(), DL.getTypeSizeInBits(CV->getType())); in emitGlobalConstantVector()
3433 ConstantExpr::getBitCast(const_cast<ConstantVector *>(CV), IntT), DL)); in emitGlobalConstantVector()
3440 EmittedSize = DL.getTypeStoreSize(CV->getType()); in emitGlobalConstantVector()
3442 for (unsigned I = 0, E = CV->getType()->getNumElements(); I != E; ++I) { in emitGlobalConstantVector()
3443 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList); in emitGlobalConstantVector()
3444 emitGlobalConstantImpl(DL, CV->getOperand(I), AP); in emitGlobalConstantVector()
3447 DL.getTypeAllocSize(ElementType) * CV->getType()->getNumElements(); in emitGlobalConstantVector()
3450 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
3678 static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV, in emitGlobalConstantImpl() argument
3683 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantImpl()
3688 if (!BaseCV && CV->hasOneUse()) in emitGlobalConstantImpl()
3689 BaseCV = dyn_cast<Constant>(CV->user_back()); in emitGlobalConstantImpl()
3691 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in emitGlobalConstantImpl()
3694 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in emitGlobalConstantImpl()
3695 const uint64_t StoreSize = DL.getTypeStoreSize(CV->getType()); in emitGlobalConstantImpl()
3713 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) in emitGlobalConstantImpl()
3716 if (isa<ConstantPointerNull>(CV)) { in emitGlobalConstantImpl()
3721 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV)) in emitGlobalConstantImpl()
3724 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) in emitGlobalConstantImpl()
3727 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) in emitGlobalConstantImpl()
3730 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { in emitGlobalConstantImpl()
3746 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV)) in emitGlobalConstantImpl()
3751 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3763 void AsmPrinter::emitGlobalConstant(const DataLayout &DL, const Constant *CV, in emitGlobalConstant() argument
3765 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstant()
3767 emitGlobalConstantImpl(DL, CV, *this, nullptr, 0, AliasList); in emitGlobalConstant()