[PATCH] D22998: [coroutines] Part 4a: Coroutine Devirtualization: Lower coro.resume and coro.destroy.
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 11:55:51 PDT 2016
mehdi_amini added inline comments.
================
Comment at: lib/Transforms/Coroutines/CoroEarly.cpp:71
@@ +70,3 @@
+std::unique_ptr<Lowerer> Lowerer::createIfNeeded(Module& M) {
+ if (M.getNamedValue(CORO_RESUME_STR) || M.getNamedValue(CORO_DESTROY_STR))
+ return std::unique_ptr<Lowerer>(new Lowerer(M));
----------------
majnemer wrote:
> Could you use the llvm_coro_{destroy,resume} intrinsic IDs instead?
Can we find if an intrinsic is declared/used in a Module using the ID?
Repository:
rL LLVM
https://reviews.llvm.org/D22998
More information about the llvm-commits
mailing list