[flang-commits] [flang] [flang][Runtime] Add SIGNAL intrinisic (PR #79337)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Wed Jan 24 12:37:45 PST 2024


================
@@ -137,6 +137,13 @@ constexpr TypeBuilderFunc getModel<void *>() {
   };
 }
 template <>
+constexpr TypeBuilderFunc getModel<void (*)(int)>() {
+  return [](mlir::MLIRContext *context) -> mlir::Type {
+    return fir::LLVMPointerType::get(context,
----------------
vzakhari wrote:

I am not sure if it matters, but why not use a function pointer type? I guess a `void (*)()` type would do for any function pointer returning void.

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


More information about the flang-commits mailing list