[Mlir-commits] [mlir] [MLIR] Introduce a SelectLikeOpInterface (PR #104751)

Mehdi Amini llvmlistbot at llvm.org
Mon Aug 19 07:14:10 PDT 2024


================
@@ -343,6 +343,27 @@ def RegionBranchTerminatorOpInterface :
   }];
 }
 
+def SelectLikeOpInterface : OpInterface<"SelectLikeOpInterface"> {
+  let description = [{
+    This interface provides information for select-like operations, i.e.,
+    operations that forward specific operands to the output, depending on a
----------------
joker-eph wrote:

This needs a bit more documentation in terms of the invariant and promises associated with the interface I believe, in particular in terms of transforms: can we always fold or propagate based on the only behavior of a regular select?

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


More information about the Mlir-commits mailing list