Lines Matching refs:CV
872 static const MCExpr *lowerConstant(const Constant *CV, AsmPrinter &AP);
1550 static const MCExpr *lowerConstant(const Constant *CV, AsmPrinter &AP) {
1553 if (CV->isNullValue() || isa<UndefValue>(CV))
1556 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV))
1559 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
1562 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV))
1565 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV);
1623 Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()),
1820 static void emitGlobalConstantVector(const ConstantVector *CV, AsmPrinter &AP) {
1821 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i)
1822 emitGlobalConstantImpl(CV->getOperand(i), AP);
1825 unsigned Size = DL.getTypeAllocSize(CV->getType());
1826 unsigned EmittedSize = DL.getTypeAllocSize(CV->getType()->getElementType()) *
1827 CV->getType()->getNumElements();
1964 static void emitGlobalConstantImpl(const Constant *CV, AsmPrinter &AP) {
1966 uint64_t Size = DL->getTypeAllocSize(CV->getType());
1967 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
1970 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
1987 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
1990 if (isa<ConstantPointerNull>(CV)) {
1995 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV))
1998 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
2001 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV))
2004 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
2020 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV))
2025 AP.OutStreamer.EmitValue(lowerConstant(CV, AP), Size);
2029 void AsmPrinter::EmitGlobalConstant(const Constant *CV) {
2030 uint64_t Size = TM.getDataLayout()->getTypeAllocSize(CV->getType());
2032 emitGlobalConstantImpl(CV, *this);