reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1184 uint64_t Size = getAllocaSizeInBytes(*AI); 1186 AI->setAlignment( 1187 MaybeAlign(std::max(AI->getAlignment(), Mapping.getObjectAlignment()))); 1189 Type *AllocatedType = AI->getAllocatedType(); 1190 if (AI->isArrayAllocation()) { 1192 cast<ConstantInt>(AI->getArraySize())->getZExtValue(); 1198 TypeWithPadding, AI->getType()->getAddressSpace(), nullptr, "", AI); 1198 TypeWithPadding, AI->getType()->getAddressSpace(), nullptr, "", AI); 1199 NewAI->takeName(AI); 1200 NewAI->setAlignment(MaybeAlign(AI->getAlignment())); 1201 NewAI->setUsedWithInAlloca(AI->isUsedWithInAlloca()); 1202 NewAI->setSwiftError(AI->isSwiftError()); 1203 NewAI->copyMetadata(*AI); 1204 auto *Bitcast = new BitCastInst(NewAI, AI->getType(), "", AI); 1204 auto *Bitcast = new BitCastInst(NewAI, AI->getType(), "", AI); 1205 AI->replaceAllUsesWith(Bitcast); 1206 AllocaToPaddedAllocaMap[AI] = NewAI;