Lines Matching refs:CV

1443 static const MCExpr *lowerConstant(const Constant *CV, AsmPrinter &AP) {
1446 if (CV->isNullValue() || isa<UndefValue>(CV))
1449 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV))
1452 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
1455 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV))
1458 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV);
1516 Op = ConstantExpr::getIntegerCast(Op, TD.getIntPtrType(CV->getContext()),
1715 static void emitGlobalConstantVector(const ConstantVector *CV,
1717 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i)
1718 emitGlobalConstantImpl(CV->getOperand(i), AddrSpace, AP);
1721 unsigned Size = TD.getTypeAllocSize(CV->getType());
1722 unsigned EmittedSize = TD.getTypeAllocSize(CV->getType()->getElementType()) *
1723 CV->getType()->getNumElements();
1857 static void emitGlobalConstantImpl(const Constant *CV, unsigned AddrSpace,
1860 uint64_t Size = TD->getTypeAllocSize(CV->getType());
1861 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
1864 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
1881 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
1884 if (isa<ConstantPointerNull>(CV)) {
1889 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV))
1892 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
1895 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV))
1898 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
1914 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV))
1919 AP.OutStreamer.EmitValue(lowerConstant(CV, AP), Size, AddrSpace);
1923 void AsmPrinter::EmitGlobalConstant(const Constant *CV, unsigned AddrSpace) {
1924 uint64_t Size = TM.getTargetData()->getTypeAllocSize(CV->getType());
1926 emitGlobalConstantImpl(CV, AddrSpace, *this);