[Mlir-commits] [mlir] [mlir][xegpu] Lower lane_data repack convert_layout to bitcast_shuffle (PR #210837)

Artem Kroviakov llvmlistbot at llvm.org
Wed Jul 29 07:44:44 PDT 2026


================
@@ -937,6 +937,35 @@ LogicalResult TruncfOp::verify() {
   return success();
 }
 
+//===----------------------------------------------------------------------===//
+// XeGPU_BitcastShuffleOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult BitcastShuffleOp::verify() {
+  Type srcType = getSourceType();
+  Type resType = getResultType();
+
+  // A bitcast_shuffle only makes sense between two different types; a
+  // same-type shuffle is a no-op.
----------------
akroviakov wrote:

Could you please explain why it should be a no-op?

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


More information about the Mlir-commits mailing list