Home
last modified time | relevance | path

Searched refs:SubFn (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp31 static void lowerSubFn(IRBuilder<> &Builder, CoroSubFnInst *SubFn) { in lowerSubFn() argument
32 Builder.SetInsertPoint(SubFn); in lowerSubFn()
33 Value *FramePtr = SubFn->getFrame(); in lowerSubFn()
34 int Index = SubFn->getIndex(); in lowerSubFn()
36 auto *FrameTy = StructType::get(SubFn->getContext(), in lowerSubFn()
39 Builder.SetInsertPoint(SubFn); in lowerSubFn()
43 SubFn->replaceAllUsesWith(Load); in lowerSubFn()
H A DCoroSplit.cpp1340 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local
1341 if (!SubFn) in simplifySuspendPoint()
1345 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint()
1357 Suspend->replaceAllUsesWith(SubFn->getRawIndex()); in simplifySuspendPoint()
1371 if (CalledValue != SubFn && CalledValue->user_empty()) in simplifySuspendPoint()
1376 if (SubFn->user_empty()) in simplifySuspendPoint()
1377 SubFn->eraseFromParent(); in simplifySuspendPoint()