Searched refs:SubFn (Results 1 – 2 of 2) sorted by relevance
30 static void lowerSubFn(IRBuilder<> &Builder, CoroSubFnInst *SubFn) { in lowerSubFn() argument31 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()
1597 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local1598 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()