Lines Matching refs:CV

2704 const MCExpr *AsmPrinter::lowerConstant(const Constant *CV) {  in lowerConstant()  argument
2707 if (CV->isNullValue() || isa<UndefValue>(CV)) in lowerConstant()
2710 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) in lowerConstant()
2713 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) in lowerConstant()
2716 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) in lowerConstant()
2719 if (const auto *Equiv = dyn_cast<DSOLocalEquivalent>(CV)) in lowerConstant()
2722 if (const NoCFIValue *NC = dyn_cast<NoCFIValue>(CV)) in lowerConstant()
2725 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); in lowerConstant()
2774 Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()), in lowerConstant()
2996 const ConstantVector *CV, AsmPrinter &AP, in emitGlobalConstantVector() argument
2998 Type *ElementType = CV->getType()->getElementType(); in emitGlobalConstantVector()
3009 IntegerType::get(CV->getContext(), DL.getTypeSizeInBits(CV->getType())); in emitGlobalConstantVector()
3011 ConstantExpr::getBitCast(const_cast<ConstantVector *>(CV), IntT), DL)); in emitGlobalConstantVector()
3018 EmittedSize = DL.getTypeStoreSize(CV->getType()); in emitGlobalConstantVector()
3020 for (unsigned I = 0, E = CV->getType()->getNumElements(); I != E; ++I) { in emitGlobalConstantVector()
3021 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList); in emitGlobalConstantVector()
3022 emitGlobalConstantImpl(DL, CV->getOperand(I), AP); in emitGlobalConstantVector()
3025 DL.getTypeAllocSize(ElementType) * CV->getType()->getNumElements(); in emitGlobalConstantVector()
3028 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
3260 static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV, in emitGlobalConstantImpl() argument
3265 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantImpl()
3270 if (!BaseCV && CV->hasOneUse()) in emitGlobalConstantImpl()
3271 BaseCV = dyn_cast<Constant>(CV->user_back()); in emitGlobalConstantImpl()
3273 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in emitGlobalConstantImpl()
3276 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in emitGlobalConstantImpl()
3277 const uint64_t StoreSize = DL.getTypeStoreSize(CV->getType()); in emitGlobalConstantImpl()
3295 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) in emitGlobalConstantImpl()
3298 if (isa<ConstantPointerNull>(CV)) { in emitGlobalConstantImpl()
3303 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV)) in emitGlobalConstantImpl()
3306 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) in emitGlobalConstantImpl()
3309 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) in emitGlobalConstantImpl()
3312 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { in emitGlobalConstantImpl()
3328 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV)) in emitGlobalConstantImpl()
3333 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3345 void AsmPrinter::emitGlobalConstant(const DataLayout &DL, const Constant *CV, in emitGlobalConstant() argument
3347 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstant()
3349 emitGlobalConstantImpl(DL, CV, *this, nullptr, 0, AliasList); in emitGlobalConstant()