Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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 *FrameRaw = SubFn->getFrame(); in lowerSubFn()
33 int Index = SubFn->getIndex(); in lowerSubFn()
36 SubFn->getContext(), {Builder.getInt8PtrTy(), Builder.getInt8PtrTy()}); in lowerSubFn()
39 Builder.SetInsertPoint(SubFn); in lowerSubFn()
44 SubFn->replaceAllUsesWith(Load); in lowerSubFn()
H A DCoroSplit.cpp1522 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local
1523 if (!SubFn) in simplifySuspendPoint()
1527 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint()
1539 Suspend->replaceAllUsesWith(SubFn->getRawIndex()); in simplifySuspendPoint()
1553 if (CalledValue != SubFn && CalledValue->user_empty()) in simplifySuspendPoint()
1558 if (SubFn->user_empty()) in simplifySuspendPoint()
1559 SubFn->eraseFromParent(); in simplifySuspendPoint()