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()
1286 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local1287 if (!SubFn) in simplifySuspendPoint()1291 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint()1303 Suspend->replaceAllUsesWith(SubFn->getRawIndex()); in simplifySuspendPoint()1317 if (CalledValue != SubFn && CalledValue->user_empty()) in simplifySuspendPoint()1322 if (SubFn->user_empty()) in simplifySuspendPoint()1323 SubFn->eraseFromParent(); in simplifySuspendPoint()