Searched refs:CPA (Results 1 – 3 of 3) sorted by relevance
216 void printConstantArray(ConstantArray *CPA, bool Static);560 void CWriter::printConstantArray(ConstantArray *CPA, bool Static) { in printConstantArray() argument565 Type *ETy = CPA->getType()->getElementType(); in printConstantArray()566 bool isString = (ETy == Type::getInt8Ty(CPA->getContext()) || in printConstantArray()567 ETy == Type::getInt8Ty(CPA->getContext())); in printConstantArray()570 if (isString && (CPA->getNumOperands() == 0 || in printConstantArray()571 !cast<Constant>(*(CPA->op_end()-1))->isNullValue())) in printConstantArray()580 for (unsigned i = 0, e = CPA->getNumOperands()-1; i != e; ++i) { in printConstantArray()581 unsigned char C = cast<ConstantInt>(CPA->getOperand(i))->getZExtValue(); in printConstantArray()617 if (CPA->getNumOperands()) { in printConstantArray()[all …]
958 } else if (const ConstantArray *CPA = dyn_cast<ConstantArray>(Init)) { in InitializeMemory() local960 getTargetData()->getTypeAllocSize(CPA->getType()->getElementType()); in InitializeMemory()961 for (unsigned i = 0, e = CPA->getNumOperands(); i != e; ++i) in InitializeMemory()962 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
1199 if (const ConstantArray *CPA = dyn_cast<ConstantArray>(Init)) { in InitializeMemory() local1201 getDataLayout().getTypeAllocSize(CPA->getType()->getElementType()); in InitializeMemory()1202 for (unsigned i = 0, e = CPA->getNumOperands(); i != e; ++i) in InitializeMemory()1203 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()