[flang-commits] [flang] [Flang] Adjust pass plugin support to match Clang (PR #174006)
Alexis Engelke via flang-commits
flang-commits at lists.llvm.org
Mon Jan 5 08:59:42 PST 2026
================
@@ -0,0 +1,26 @@
+! Verify that the static and dynamically loaded pass plugins work as expected.
+
+! UNSUPPORTED: system-windows
+
+! REQUIRES: plugins, shell, examples
+
+! RUN: %flang_fc1 -S %s -o - %loadbye \
+! RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-INACTIVE
+
+! RUN: %flang_fc1 -S %s -o - %loadbye -mllvm -last-words \
+! RUN: | FileCheck %s --check-prefix=CHECK-ACTIVE
+
+! RUN: %flang_fc1 -emit-llvm %s -o - %loadbye -mllvm -last-words \
----------------
aengelke wrote:
Yes: that the back-end hook is not run when LLVM IR should be emitted. (This is mainly for consistency with the Clang test, which I added because a previous version of the patch crashed with plugin + -emit-llvm.)
https://github.com/llvm/llvm-project/pull/174006
More information about the flang-commits
mailing list