================ @@ -123,6 +123,17 @@ bool coro::declaresIntrinsics(const Module &M, return false; } +// Verifies if a module has any intrinsics. +bool coro::declaresIntrinsics(const Module &M, + const DenseSet<Intrinsic::ID> &Identifiers) { + for (const Function &F : M.functions()) { + if (Identifiers.contains(F.getIntrinsicID())) ---------------- jhuber6 wrote:
I don't know how the code was originally put together, since it seems to be a subset of coroutine functions that are used here. https://github.com/llvm/llvm-project/pull/102096 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits