Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/
DCoroCleanup.cpp41 static void lowerSubFn(IRBuilder<> &Builder, CoroSubFnInst *SubFn) { in lowerSubFn() argument
42 Builder.SetInsertPoint(SubFn); in lowerSubFn()
43 Value *FrameRaw = SubFn->getFrame(); in lowerSubFn()
44 int Index = SubFn->getIndex(); in lowerSubFn()
47 SubFn->getContext(), {Builder.getInt8PtrTy(), Builder.getInt8PtrTy()}); in lowerSubFn()
50 Builder.SetInsertPoint(SubFn); in lowerSubFn()
55 SubFn->replaceAllUsesWith(Load); in lowerSubFn()
DCoroElide.cpp260 if (auto *SubFn = dyn_cast<CoroSubFnInst>(&I)) in replaceDevirtTrigger() local
261 if (SubFn->getIndex() == CoroSubFnInst::RestartTrigger) in replaceDevirtTrigger()
262 DevirtAddr.push_back(SubFn); in replaceDevirtTrigger()
DCoroSplit.cpp580 auto *SubFn = dyn_cast<CoroSubFnInst>(Callee); in simplifySuspendPoint() local
581 if (!SubFn) in simplifySuspendPoint()
585 if (SubFn->getFrame() != CoroBegin) in simplifySuspendPoint()
590 Suspend->replaceAllUsesWith(SubFn->getRawIndex()); in simplifySuspendPoint()
597 if (SubFn->user_empty()) in simplifySuspendPoint()
598 SubFn->eraseFromParent(); in simplifySuspendPoint()