[clang] [llvm] [Coroutines] Change `llvm.coro.noop` to accept `llvm_anyptr_ty` instead (PR #102096)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 12 06:19:55 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list