[Mlir-commits] [mlir] [mlir][transform] LISH: Add transform op (PR #70630)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Mon Oct 30 02:58:44 PDT 2023


================
@@ -1395,6 +1395,26 @@ transform::GetTypeOp::apply(transform::TransformRewriter &rewriter,
   return DiagnosedSilenceableFailure::success();
 }
 
+//===----------------------------------------------------------------------===//
+// HoistLoopInvariantSubsetsOp
+//===----------------------------------------------------------------------===//
+
+DiagnosedSilenceableFailure transform::HoistLoopInvariantSubsetsOp::applyToOne(
+    transform::TransformRewriter &rewriter, Operation *target,
+    transform::ApplyToEachResultList &results,
+    transform::TransformState &state) {
+  target->walk([&](LoopLikeOpInterface loopLike) {
+    (void)hoistLoopInvariantSubsets(rewriter, loopLike);
----------------
ftynse wrote:

Looks like this op could use `FailurePropagationMode` instead of always suppressing failure to hoist here.

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


More information about the Mlir-commits mailing list