[flang-commits] [flang] [flang][acc][lowering] Declare undeclared acc routine bind(name) targets (PR #203088)

via flang-commits flang-commits at lists.llvm.org
Fri Jun 12 01:26:05 PDT 2026


================
@@ -477,6 +477,14 @@ mlir::func::FuncOp
 getOrDeclareFunction(const Fortran::evaluate::ProcedureDesignator &,
                      Fortran::lower::AbstractConverter &);
 
+/// Declare or find the mlir::func::FuncOp for an external procedure named
+/// verbatim by \p name (not mangled). Declare it with \p type, or () -> () when
+/// \p type is null.
+mlir::func::FuncOp
+getOrDeclareNamedFunction(llvm::StringRef name,
+                          Fortran::lower::AbstractConverter &,
+                          mlir::FunctionType type = {});
+
----------------
jeanPerier wrote:

+1 for inlining it or having it static where you need it.

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


More information about the flang-commits mailing list