[Mlir-commits] [mlir] [mlir][Interfaces] Add `ExecutionProgressOpInterface` + folding pattern (PR #179039)
Mehdi Amini
llvmlistbot at llvm.org
Mon Feb 2 05:29:17 PST 2026
================
@@ -0,0 +1,23 @@
+//===- ExecutionProgressOpInterface.cpp -- Execution Progress Interface ---===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir/Interfaces/ExecutionProgressOpInterface.h"
+
+using namespace mlir;
+
+namespace mlir {
+#include "mlir/Interfaces/ExecutionProgressOpInterface.cpp.inc"
+} // namespace mlir
+
+bool mlir::mustProgress(Operation *op) {
+ auto executionProgressOpInterface =
+ dyn_cast<ExecutionProgressOpInterface>(op);
+ if (!executionProgressOpInterface)
+ return false;
----------------
joker-eph wrote:
I thought the default would be true here?
https://github.com/llvm/llvm-project/pull/179039
More information about the Mlir-commits
mailing list