Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp30 static void lowerSubFn(IRBuilder<> &Builder, CoroSubFnInst *SubFn) { in lowerSubFn() argument
31 Builder.SetInsertPoint(SubFn); in lowerSubFn()
32 Value *FramePtr = SubFn->getFrame(); in lowerSubFn()
33 int Index = SubFn->getIndex(); in lowerSubFn()
35 auto *FrameTy = StructType::get(SubFn->getContext(), in lowerSubFn()
38 Builder.SetInsertPoint(SubFn); in lowerSubFn()
42 SubFn->replaceAllUsesWith(Load); in lowerSubFn()
H A DCoroSplit.cpp1597 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local
1598 if (!SubFn) in simplifySuspendPoint()
1602 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint()
1614 Suspend->replaceAllUsesWith(SubFn->getRawIndex()); in simplifySuspendPoint()
1628 if (CalledValue != SubFn && CalledValue->user_empty()) in simplifySuspendPoint()
1633 if (SubFn->user_empty()) in simplifySuspendPoint()
1634 SubFn->eraseFromParent(); in simplifySuspendPoint()