SmallVector<CoroAllocInst *, 1> CoroAllocs;
SmallVector<CoroSubFnInst *, 4> ResumeAddr;
DenseMap<CoroBeginInst *, SmallVector<CoroSubFnInst *, 4>> DestroyAddr;
- SmallVector<CoroFreeInst *, 1> CoroFrees;
SmallPtrSet<const SwitchInst *, 4> CoroSuspendSwitches;
Lowerer(Module &M) : LowererBase(M) {}
DominatorTree &DT) {
CoroBegins.clear();
CoroAllocs.clear();
- CoroFrees.clear();
ResumeAddr.clear();
DestroyAddr.clear();
CoroBegins.push_back(CB);
else if (auto *CA = dyn_cast<CoroAllocInst>(U))
CoroAllocs.push_back(CA);
- else if (auto *CF = dyn_cast<CoroFreeInst>(U))
- CoroFrees.push_back(CF);
}
// Collect all coro.subfn.addrs associated with coro.begin.