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