[Mlir-commits] [mlir] [mlir] AMDGPUToROCDL: lower `amdgpu.swizzle_bitmode` (PR #136223)
Ivan Butygin
llvmlistbot at llvm.org
Fri Apr 18 02:00:02 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);
----------------
Hardcode84 wrote:
Good catch, updated verifier to reject scalable vectors, added assert here.
https://github.com/llvm/llvm-project/pull/136223
More information about the Mlir-commits
mailing list