[flang-commits] [flang] [flang][cuda] duplicate host_device procedures early and outline the copies under their original name (PR #224400)

via flang-commits flang-commits at lists.llvm.org
Fri Sep 18 06:48:54 PDT 2026


================
@@ -0,0 +1,111 @@
+// RUN: fir-opt --cuf-duplicate-device-func %s | FileCheck %s
----------------
jeanPerier wrote:

Can you add a test where a host_device calls a host_device that calls a host_device (3 levels) and check that we end-up with two stacks (the one with .device calling .device and the original one)?



https://github.com/llvm/llvm-project/pull/224400


More information about the flang-commits mailing list