Searched refs:CoroBegin (Results 1 – 10 of 10) sorted by relevance
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroInternal.h | 94 CoroBeginInst *CoroBegin; member 162 return cast<CoroIdInst>(CoroBegin->getId()); in getSwitchCoroId() 168 return cast<AnyCoroIdRetconInst>(CoroBegin->getId()); in getRetconCoroId() 173 return cast<CoroIdAsyncInst>(CoroBegin->getId()); in getAsyncCoroId() 215 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
|
D | Coroutines.cpp | 232 Shape.CoroBegin = nullptr; in clear() 242 static CoroSaveInst *createCoroSave(CoroBeginInst *CoroBegin, in createCoroSave() argument 247 cast<CoroSaveInst>(CallInst::Create(Fn, CoroBegin, "", SuspendInst)); in createCoroSave() 309 if (CoroBegin) in buildFrom() 316 CoroBegin = CB; in buildFrom() 337 if (!CoroBegin) { in buildFrom() 362 auto Id = CoroBegin->getId(); in buildFrom() 382 createCoroSave(CoroBegin, Suspend); in buildFrom() 501 CF->replaceAllUsesWith(CoroBegin); in buildFrom()
|
D | CoroSplit.cpp | 826 Value *OldVFrame = cast<Value>(VMap[Shape.CoroBegin]); in create() 860 coro::replaceCoroFree(cast<CoroIdInst>(VMap[Shape.CoroBegin->getId()]), in create() 1143 auto *CoroBegin = Shape.CoroBegin; in handleNoSuspendCoroutine() local 1144 auto *CoroId = CoroBegin->getId(); in handleNoSuspendCoroutine() 1157 CoroBegin->replaceAllUsesWith(VFrame); in handleNoSuspendCoroutine() 1159 CoroBegin->replaceAllUsesWith(CoroBegin->getMem()); in handleNoSuspendCoroutine() 1166 CoroBegin->replaceAllUsesWith(UndefValue::get(CoroBegin->getType())); in handleNoSuspendCoroutine() 1170 CoroBegin->eraseFromParent(); in handleNoSuspendCoroutine() 1243 CoroBeginInst *CoroBegin) { in simplifySuspendPoint() argument 1264 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint() [all …]
|
D | CoroFrame.cpp | 842 : PtrUseVisitor(DL), DT(DT), CoroBegin(CB), Checker(Checker) {} in AllocaUseVisitor() 849 if (PI.isEscaped() && !DT.dominates(&CoroBegin, PI.getEscapingInst())) { in visit() 976 const CoroBeginInst &CoroBegin; member 1000 if (!DT.dominates(&CoroBegin, &I)) in handleMayWrite() 1006 if (DT.dominates(&CoroBegin, U)) in usedAfterCoroBegin() 1015 if (DT.dominates(&CoroBegin, &I) || !usedAfterCoroBegin(I)) in handleAlias() 1079 auto *CB = Shape.CoroBegin; in insertSpills() 1963 CoroBeginInst *CoroBegin) { in sinkSpillUsesAfterCoroBegin() argument 1973 if (Inst->getParent() != CoroBegin->getParent() || in sinkSpillUsesAfterCoroBegin() 1974 Dom.dominates(CoroBegin, Inst)) in sinkSpillUsesAfterCoroBegin() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroInternal.h | 89 CoroBeginInst *CoroBegin; member 135 return cast<CoroIdInst>(CoroBegin->getId()); in getSwitchCoroId() 141 return cast<AnyCoroIdRetconInst>(CoroBegin->getId()); in getRetconCoroId() 175 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
|
D | Coroutines.cpp | 227 Shape.CoroBegin = nullptr; in clear() 237 static CoroSaveInst *createCoroSave(CoroBeginInst *CoroBegin, in createCoroSave() argument 242 cast<CoroSaveInst>(CallInst::Create(Fn, CoroBegin, "", SuspendInst)); in createCoroSave() 298 if (CoroBegin) in buildFrom() 305 CoroBegin = CB; in buildFrom() 326 if (!CoroBegin) { in buildFrom() 351 auto Id = CoroBegin->getId(); in buildFrom() 371 createCoroSave(CoroBegin, Suspend); in buildFrom() 474 CF->replaceAllUsesWith(CoroBegin); in buildFrom()
|
D | CoroSplit.cpp | 737 Value *OldVFrame = cast<Value>(VMap[Shape.CoroBegin]); in create() 771 coro::replaceCoroFree(cast<CoroIdInst>(VMap[Shape.CoroBegin->getId()]), in create() 987 auto *CoroBegin = Shape.CoroBegin; in handleNoSuspendCoroutine() local 988 auto *CoroId = CoroBegin->getId(); in handleNoSuspendCoroutine() 1001 CoroBegin->replaceAllUsesWith(VFrame); in handleNoSuspendCoroutine() 1003 CoroBegin->replaceAllUsesWith(CoroBegin->getMem()); in handleNoSuspendCoroutine() 1010 CoroBegin->replaceAllUsesWith(UndefValue::get(CoroBegin->getType())); in handleNoSuspendCoroutine() 1014 CoroBegin->eraseFromParent(); in handleNoSuspendCoroutine() 1087 CoroBeginInst *CoroBegin) { in simplifySuspendPoint() argument 1110 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint() [all …]
|
D | CoroFrame.cpp | 497 : PtrUseVisitor(DL), DT(DT), CoroBegin(CB) {} in AllocaUseVisitor() 501 if (DT.dominates(&I, &CoroBegin)) in visit() 521 const CoroBeginInst &CoroBegin; member 587 auto *CB = Shape.CoroBegin; in insertSpills() 1388 if (isCoroutineStructureIntrinsic(I) || &I == Shape.CoroBegin) in buildCoroutineFrame()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGCoroutine.cpp | 73 llvm::CallInst *CoroBegin = nullptr; member 594 auto *CoroBegin = Builder.CreateCall( in EmitCoroutineBody() local 596 CurCoro.Data->CoroBegin = CoroBegin; in EmitCoroutineBody() 705 if (CurCoro.Data && CurCoro.Data->CoroBegin) { in EmitCoroutineIntrinsic() 706 return RValue::get(CurCoro.Data->CoroBegin); in EmitCoroutineIntrinsic() 749 CurCoro.Data->CoroBegin = Call; in EmitCoroutineIntrinsic()
|
/external/llvm-project/llvm/test/Transforms/Coroutines/ |
D | coro-spill-defs-before-corobegin.ll | 1 ; Verifies that phi and invoke definitions before CoroBegin are spilled properly.
|