Lines Matching defs:CV

1500 static const MCExpr *lowerConstant(const Constant *CV, AsmPrinter &AP) {
1503 if (CV->isNullValue() || isa<UndefValue>(CV))
1506 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV))
1509 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
1512 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV))
1515 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV);
1568 Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()),
1765 static void emitGlobalConstantVector(const ConstantVector *CV, AsmPrinter &AP) {
1766 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i)
1767 emitGlobalConstantImpl(CV->getOperand(i), AP);
1770 unsigned Size = DL.getTypeAllocSize(CV->getType());
1771 unsigned EmittedSize = DL.getTypeAllocSize(CV->getType()->getElementType()) *
1772 CV->getType()->getNumElements();
1905 static void emitGlobalConstantImpl(const Constant *CV, AsmPrinter &AP) {
1907 uint64_t Size = DL->getTypeAllocSize(CV->getType());
1908 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
1911 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
1928 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
1931 if (isa<ConstantPointerNull>(CV)) {
1936 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV))
1939 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
1942 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV))
1945 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
1961 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV))
1966 AP.OutStreamer.EmitValue(lowerConstant(CV, AP), Size);
1970 void AsmPrinter::EmitGlobalConstant(const Constant *CV) {
1971 uint64_t Size = TM.getDataLayout()->getTypeAllocSize(CV->getType());
1973 emitGlobalConstantImpl(CV, *this);