[PATCH] D25166: [CUDA] Mark device functions as nounwind.

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 16:38:41 PDT 2016


rnk accepted this revision.
rnk added a reviewer: rnk.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm



> nothrow.cu:16
> +// DEVICE: define void @_Z3foov() [[DEVICE_ATTR:#[0-9]+]]
> +__device__ void foo() { f(); }
> +

I would check for `call void @_Z1fv` here, and make foo noexcept. The noexcept is useful because it forces us to essentially emit `try { ... } catch (...) { std::terminate(); }` around the whole function, but we probably allow noexcept.

https://reviews.llvm.org/D25166





More information about the cfe-commits mailing list