[flang-commits] [flang] [flang][debug] Add debug type support for procedure pointers (PR #166764)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Thu Nov 6 08:17:24 PST 2025


================
@@ -718,6 +718,30 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
     return convertRecordType(recTy, fileAttr, scope, declOp);
   } else if (auto tupleTy = mlir::dyn_cast_if_present<mlir::TupleType>(Ty)) {
     return convertTupleType(tupleTy, fileAttr, scope, declOp);
+  } else if (mlir::isa<mlir::FunctionType>(Ty)) {
+    // Handle function types - these represent procedure pointers after the
----------------
abidh wrote:

I have added a comment. I was trying to add a test but noticed that somehow `DeclareOp` is not being generated for the dummy procedure. I will investigate that separately.

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


More information about the flang-commits mailing list