Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h81 CoroBeginInst *CoroBegin; member
156 return cast<CoroIdInst>(CoroBegin->getId()); in getSwitchCoroId()
162 return cast<AnyCoroIdRetconInst>(CoroBegin->getId()); in getRetconCoroId()
167 return cast<CoroIdAsyncInst>(CoroBegin->getId()); in getAsyncCoroId()
210 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
H A DCoroutines.cpp149 Shape.CoroBegin = nullptr; in clear()
159 static CoroSaveInst *createCoroSave(CoroBeginInst *CoroBegin, in createCoroSave() argument
164 CallInst::Create(Fn, CoroBegin, "", SuspendInst->getIterator())); in createCoroSave()
234 if (CoroBegin) in buildFrom()
240 CoroBegin = CB; in buildFrom()
270 if (!CoroBegin) { in buildFrom()
295 auto Id = CoroBegin->getId(); in buildFrom()
316 createCoroSave(CoroBegin, Suspend); in buildFrom()
431 CF->replaceAllUsesWith(CoroBegin); in buildFrom()
H A DCoroSplit.cpp1118 Value *OldVFrame = cast<Value>(VMap[Shape.CoroBegin]); in create()
1163 coro::replaceCoroFree(cast<CoroIdInst>(VMap[Shape.CoroBegin->getId()]), in create()
1223 auto *CoroBegin = Shape.CoroBegin; in handleNoSuspendCoroutine() local
1224 auto *CoroId = CoroBegin->getId(); in handleNoSuspendCoroutine()
1236 CoroBegin->replaceAllUsesWith(Frame); in handleNoSuspendCoroutine()
1238 CoroBegin->replaceAllUsesWith(CoroBegin->getMem()); in handleNoSuspendCoroutine()
1246 CoroBegin->replaceAllUsesWith(UndefValue::get(CoroBegin->getType())); in handleNoSuspendCoroutine()
1250 CoroBegin->eraseFromParent(); in handleNoSuspendCoroutine()
1251 Shape.CoroBegin = nullptr; in handleNoSuspendCoroutine()
1324 CoroBeginInst *CoroBegin) { in simplifySuspendPoint() argument
[all …]
H A DCoroFrame.cpp1461 !DT.dominates(CoroShape.CoroBegin, PI.getEscapingInst())) { in visit()
1678 if (!DT.dominates(CoroShape.CoroBegin, &I)) in handleMayWrite()
1684 if (DT.dominates(CoroShape.CoroBegin, U)) in usedAfterCoroBegin()
1693 if (DT.dominates(CoroShape.CoroBegin, &I) || !usedAfterCoroBegin(I)) in handleAlias()
1755 auto *CB = Shape.CoroBegin; in insertSpills()
2715 CoroBeginInst *CoroBegin) { in sinkSpillUsesAfterCoroBegin() argument
2725 if (Inst->getParent() != CoroBegin->getParent() || in sinkSpillUsesAfterCoroBegin()
2726 Dom.dominates(CoroBegin, Inst)) in sinkSpillUsesAfterCoroBegin()
2737 if (Dom.dominates(CoroBegin, Inst)) in sinkSpillUsesAfterCoroBegin()
2751 Instruction *InsertPt = CoroBegin->getNextNode(); in sinkSpillUsesAfterCoroBegin()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCoroutine.cpp73 llvm::CallInst *CoroBegin = nullptr; member
254 assert(CGF.CurCoro.Data && CGF.CurCoro.Data->CoroBegin && in emitSuspendExpression()
261 SuspendIntrinsicCallArgs.push_back(CGF.CurCoro.Data->CoroBegin); in emitSuspendExpression()
831 auto *CoroBegin = Builder.CreateCall( in EmitCoroutineBody() local
833 CurCoro.Data->CoroBegin = CoroBegin; in EmitCoroutineBody()
967 if (CurCoro.Data && CurCoro.Data->CoroBegin) { in EmitCoroutineIntrinsic()
968 return RValue::get(CurCoro.Data->CoroBegin); in EmitCoroutineIntrinsic()
1034 CurCoro.Data->CoroBegin = Call; in EmitCoroutineIntrinsic()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltins.td4401 def CoroBegin : CoroLangBuiltin {