Home | History | Annotate | Download | only in AsmPrinter

Lines Matching refs:CV

1461 static const MCExpr *lowerConstant(const Constant *CV, AsmPrinter &AP) {
1464 if (CV->isNullValue() || isa<UndefValue>(CV))
1467 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV))
1470 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
1473 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV))
1476 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV);
1529 Op = ConstantExpr::getIntegerCast(Op, TD.getIntPtrType(CV->getContext()),
1726 static void emitGlobalConstantVector(const ConstantVector *CV, AsmPrinter &AP) {
1727 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i)
1728 emitGlobalConstantImpl(CV->getOperand(i), AP);
1731 unsigned Size = TD.getTypeAllocSize(CV->getType());
1732 unsigned EmittedSize = TD.getTypeAllocSize(CV->getType()->getElementType()) *
1733 CV->getType()->getNumElements();
1866 static void emitGlobalConstantImpl(const Constant *CV, AsmPrinter &AP) {
1868 uint64_t Size = TD->getTypeAllocSize(CV->getType());
1869 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
1872 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
1889 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
1892 if (isa<ConstantPointerNull>(CV)) {
1897 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV))
1900 if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
1903 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV))
1906 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
1922 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV))
1927 AP.OutStreamer.EmitValue(lowerConstant(CV, AP), Size);
1931 void AsmPrinter::EmitGlobalConstant(const Constant *CV) {
1932 uint64_t Size = TM.getDataLayout()->getTypeAllocSize(CV->getType());
1934 emitGlobalConstantImpl(CV, *this);