================ @@ -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 thought that's what this function does, takes a subset and checks the module for any matching intrinsic IDs. 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