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

Jean-Didier PAILLEUX via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 23 07:00:58 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};
----------------
JDPailleux wrote:

I agree with what you said, and Dan's speculation is also correct. I'll correct that ;)

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


More information about the llvm-commits mailing list