[Mlir-commits] [mlir] [mlir][gpu] Add gpu.rotate operation (PR #142796)
Hsiangkai Wang
llvmlistbot at llvm.org
Tue Jul 1 02:30:49 PDT 2025
================
@@ -1365,8 +1365,12 @@ LogicalResult RotateOp::verify() {
if (!widthValue.isPowerOf2())
return emitOpError() << "width must be a power of two";
- if (offsetValue.sge(widthValue) || offsetValue.slt(0))
- return emitOpError() << "offset must be in the range [0, width)";
+ if (offsetValue.sge(widthValue) || offsetValue.slt(0)) {
+ SmallString<8> widthStr;
+ widthValue.toStringUnsigned(widthStr);
+ return emitOpError() << "offset must be in the range [0, "
+ << std::string(std::move(widthStr)) << ")";
----------------
Hsiangkai wrote:
Updated.
https://github.com/llvm/llvm-project/pull/142796
More information about the Mlir-commits
mailing list