Home
last modified time | relevance | path

Searched refs:CoroBegin (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/
DCoroSplit.cpp302 Value *OldVFrame = cast<Value>(VMap[Shape.CoroBegin]); in createClone()
331 coro::replaceCoroFree(cast<CoroIdInst>(VMap[Shape.CoroBegin->getId()]), in createClone()
380 static void setCoroInfo(Function &F, CoroBeginInst *CoroBegin, in setCoroInfo() argument
396 CoroBegin->getId()->setInfo(BC); in setCoroInfo()
410 CoroIdInst *CoroId = Shape.CoroBegin->getId(); in updateCoroFrame()
523 static void handleNoSuspendCoroutine(CoroBeginInst *CoroBegin, Type *FrameTy) { in handleNoSuspendCoroutine() argument
524 auto *CoroId = CoroBegin->getId(); in handleNoSuspendCoroutine()
534 CoroBegin->replaceAllUsesWith(VFrame); in handleNoSuspendCoroutine()
536 CoroBegin->replaceAllUsesWith(CoroBegin->getMem()); in handleNoSuspendCoroutine()
538 CoroBegin->eraseFromParent(); in handleNoSuspendCoroutine()
[all …]
DCoroutines.cpp212 Shape.CoroBegin = nullptr; in clear()
225 static CoroSaveInst *createCoroSave(CoroBeginInst *CoroBegin, in createCoroSave() argument
230 cast<CoroSaveInst>(CallInst::Create(Fn, CoroBegin, "", SuspendInst)); in createCoroSave()
273 if (CoroBegin) in buildFrom()
280 CoroBegin = CB; in buildFrom()
302 if (!CoroBegin) { in buildFrom()
329 CF->replaceAllUsesWith(CoroBegin); in buildFrom()
336 createCoroSave(CoroBegin, CS); in buildFrom()
DCoroFrame.cpp473 auto *CB = Shape.CoroBegin; in insertSpills()
809 CoroBeginInst *CoroBegin) { in moveSpillUsesAfterCoroBegin() argument
823 if (!DT.dominates(CoroBegin, I)) { in moveSpillUsesAfterCoroBegin()
830 if (!DT.dominates(CoroBegin, cast<Instruction>(UI))) in moveSpillUsesAfterCoroBegin()
840 Instruction *InsertPt = CoroBegin->getNextNode(); in moveSpillUsesAfterCoroBegin()
870 Shape.PromiseAlloca = Shape.CoroBegin->getId()->getPromise(); in buildCoroutineFrame()
872 Shape.CoroBegin->getId()->clearPromise(); in buildCoroutineFrame()
923 if (isCoroutineStructureIntrinsic(I) || &I == Shape.CoroBegin) in buildCoroutineFrame()
940 moveSpillUsesAfterCoroBegin(F, Spills, Shape.CoroBegin); in buildCoroutineFrame()
DCoroInternal.h68 CoroBeginInst *CoroBegin; member