Lines Matching refs:CDS
1846 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(V)) in isRepeatedByteSequence() local
1847 return isRepeatedByteSequence(CDS); in isRepeatedByteSequence()
1852 static void emitGlobalConstantDataSequential(const ConstantDataSequential *CDS, in emitGlobalConstantDataSequential() argument
1856 int Value = isRepeatedByteSequence(CDS, AP.TM); in emitGlobalConstantDataSequential()
1860 CDS->getType()); in emitGlobalConstantDataSequential()
1867 if (CDS->isString()) in emitGlobalConstantDataSequential()
1868 return AP.OutStreamer.EmitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
1871 unsigned ElementByteSize = CDS->getElementByteSize(); in emitGlobalConstantDataSequential()
1872 if (isa<IntegerType>(CDS->getElementType())) { in emitGlobalConstantDataSequential()
1873 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in emitGlobalConstantDataSequential()
1876 CDS->getElementAsInteger(i)); in emitGlobalConstantDataSequential()
1877 AP.OutStreamer.EmitIntValue(CDS->getElementAsInteger(i), in emitGlobalConstantDataSequential()
1883 assert(CDS->getElementType()->isFloatTy()); in emitGlobalConstantDataSequential()
1884 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in emitGlobalConstantDataSequential()
1890 F = CDS->getElementAsFloat(i); in emitGlobalConstantDataSequential()
1896 assert(CDS->getElementType()->isDoubleTy()); in emitGlobalConstantDataSequential()
1897 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in emitGlobalConstantDataSequential()
1903 F = CDS->getElementAsDouble(i); in emitGlobalConstantDataSequential()
1911 unsigned Size = DL.getTypeAllocSize(CDS->getType()); in emitGlobalConstantDataSequential()
1912 unsigned EmittedSize = DL.getTypeAllocSize(CDS->getType()->getElementType()) * in emitGlobalConstantDataSequential()
1913 CDS->getNumElements(); in emitGlobalConstantDataSequential()
2210 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV)) in emitGlobalConstantImpl() local
2211 return emitGlobalConstantDataSequential(CDS, AP); in emitGlobalConstantImpl()