[Mlir-commits] [mlir] [mlir] AMDGPUToROCDL: lower `amdgpu.swizzle_bitmode` (PR #136223)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Apr 17 17:57:18 PDT 2025
================
@@ -381,3 +381,95 @@ LogicalResult LLVM::detail::oneToOneRewrite(
rewriter.replaceOp(op, results);
return success();
}
+
+static unsigned getBitWidth(Type type) {
+ if (type.isIntOrFloat())
+ return type.getIntOrFloatBitWidth();
+
+ auto vec = cast<VectorType>(type);
----------------
kuhar wrote:
I think we need to assert this is not a scalable vector or bail out in some other way
https://github.com/llvm/llvm-project/pull/136223
More information about the Mlir-commits
mailing list