Lines Matching refs:CV
2468 const MCExpr *AsmPrinter::lowerConstant(const Constant *CV) { in lowerConstant() argument
2471 if (CV->isNullValue() || isa<UndefValue>(CV)) in lowerConstant()
2474 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) in lowerConstant()
2477 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) in lowerConstant()
2480 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) in lowerConstant()
2483 if (const auto *Equiv = dyn_cast<DSOLocalEquivalent>(CV)) in lowerConstant()
2486 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); in lowerConstant()
2547 Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()), in lowerConstant()
2757 const ConstantVector *CV, AsmPrinter &AP) { in emitGlobalConstantVector() argument
2758 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i) in emitGlobalConstantVector()
2759 emitGlobalConstantImpl(DL, CV->getOperand(i), AP); in emitGlobalConstantVector()
2761 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
2762 unsigned EmittedSize = DL.getTypeAllocSize(CV->getType()->getElementType()) * in emitGlobalConstantVector()
2763 CV->getType()->getNumElements(); in emitGlobalConstantVector()
2992 static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV, in emitGlobalConstantImpl() argument
2995 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantImpl()
3000 if (!BaseCV && CV->hasOneUse()) in emitGlobalConstantImpl()
3001 BaseCV = dyn_cast<Constant>(CV->user_back()); in emitGlobalConstantImpl()
3003 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in emitGlobalConstantImpl()
3006 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in emitGlobalConstantImpl()
3007 const uint64_t StoreSize = DL.getTypeStoreSize(CV->getType()); in emitGlobalConstantImpl()
3025 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) in emitGlobalConstantImpl()
3028 if (isa<ConstantPointerNull>(CV)) { in emitGlobalConstantImpl()
3033 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV)) in emitGlobalConstantImpl()
3036 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) in emitGlobalConstantImpl()
3039 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) in emitGlobalConstantImpl()
3042 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { in emitGlobalConstantImpl()
3058 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV)) in emitGlobalConstantImpl()
3063 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3075 void AsmPrinter::emitGlobalConstant(const DataLayout &DL, const Constant *CV) { in emitGlobalConstant() argument
3076 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstant()
3078 emitGlobalConstantImpl(DL, CV, *this); in emitGlobalConstant()