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 *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()
1522 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local1523 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()