[flang-commits] [flang] [flang][debug] Support fir::ReferenceType. (PR #113480)
via flang-commits
flang-commits at lists.llvm.org
Thu Oct 24 02:54:21 PDT 2024
================
@@ -0,0 +1,10 @@
+// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
+
----------------
jeanPerier wrote:
Could you also verify the handling of `!fir.ref<none>`?
This will for instance be generated for the signature of `foo` after the abtsract-result pass:
```
subroutine test()
use iso_c_binding, only : c_ptr
interface
function foo() bind(c)
import :: c_ptr
type(c_ptr) foo
end function
end interface
call bar(foo())
end subroutine
```
```
func.func private @foo() -> !fir.ref<none> attributes {fir.bindc_name = "foo", fir.proc_attrs = #fir.proc_attrs<bind_c>}
```
https://github.com/llvm/llvm-project/pull/113480
More information about the flang-commits
mailing list