Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/Dialect/Async/Transforms/
H A DAsyncRuntimeRefCounting.cpp289 Operation *lastUser = blockLiveness->getEndOperation(value, userInTheBlock); in addDropRefAfterLastUse() local
290 assert(lastUsers.count(lastUser) == 0 && "last users must be unique"); in addDropRefAfterLastUse()
291 lastUsers.insert(lastUser); in addDropRefAfterLastUse()
296 for (Operation *lastUser : lastUsers) { in addDropRefAfterLastUse()
298 if (lastUser->hasTrait<OpTrait::ReturnLike>()) in addDropRefAfterLastUse()
302 if (lastUser->hasTrait<OpTrait::IsTerminator>()) in addDropRefAfterLastUse()
303 return lastUser->emitError() << "async reference counting can't handle " in addDropRefAfterLastUse()
307 builder.setInsertionPointAfter(lastUser); in addDropRefAfterLastUse()