[flang-commits] [flang] [llvm] [flang][MIF] Adding Stop and ErrorStop operations (PR #166787)

via flang-commits flang-commits at lists.llvm.org
Thu Jan 22 10:00:50 PST 2026


================
@@ -112,9 +113,23 @@ class Terminator {
   else \
     Terminator{__FILE__, __LINE__}.CheckFailed(#pred)
 
-RT_API_ATTRS void NotifyOtherImagesOfNormalEnd();
+struct ExitHandler {
+  ExitHandler() {};
+
+  void Configure(bool multiImageFeatureEnabled);
+  [[noreturn]] void NormalExit(int exitCode);
+  [[noreturn]] void ErrorExit(int exitCode);
+
+  bool multiImageFeatureEnabled{false};
----------------
jeanPerier wrote:

What is the goal of this boolean? Isn't it enough for the callbacks to be setup (if they have a nullptr default value, this can be used as the guard)?

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


More information about the flang-commits mailing list