Lines Matching refs:Alloca
338 // coroutine frame and if the alignment specified on the Alloca instruction
1108 auto Alloca = Builder.CreateAlloca(Builder.getInt8Ty(), AI->getSize());
1109 Alloca->setAlignment(MaybeAlign(AI->getAlignment()));
1114 U->replaceAllUsesWith(Alloca);
1197 AllocaInst *Alloca,
1199 auto ValueTy = Alloca->getAllocatedType();
1204 auto ValueBeforeCall = Builder.CreateLoad(ValueTy, Alloca);
1219 Builder.CreateStore(ValueAfterCall, Alloca);
1226 static void eliminateSwiftErrorAlloca(Function &F, AllocaInst *Alloca,
1228 for (auto UI = Alloca->use_begin(), UE = Alloca->use_end(); UI != UE; ) {
1243 auto Addr = emitSetAndGetSwiftErrorValueAround(Call, Alloca, Shape);
1250 assert(isAllocaPromotable(Alloca));
1268 auto Alloca = Builder.CreateAlloca(ValueTy, ArgTy->getAddressSpace());
1269 Arg.replaceAllUsesWith(Alloca);
1273 Builder.CreateStore(InitialValue, Alloca);
1277 (void) emitSetAndGetSwiftErrorValueAround(Suspend, Alloca, Shape);
1283 auto FinalValue = Builder.CreateLoad(ValueTy, Alloca);
1288 AllocasToPromote.push_back(Alloca);
1289 eliminateSwiftErrorAlloca(F, Alloca, Shape);
1307 auto Alloca = dyn_cast<AllocaInst>(&Inst);
1308 if (!Alloca || !Alloca->isSwiftError()) continue;
1311 Alloca->setSwiftError(false);
1313 AllocasToPromote.push_back(Alloca);
1314 eliminateSwiftErrorAlloca(F, Alloca, Shape);