@@ -398,7 +398,7 @@ createDecomposeOffsetFromExpr(RewriterBase &rewriter, Location loc, Value expr,
398398 // boundaries (TODO: giuseros).
399399 if (llvm::isa<BlockArgument>(expr)) {
400400 Value scalarZero = arith::ConstantIntOp::create (
401- rewriter, loc, static_cast <int64_t >(0 ), bitness);
401+ rewriter, loc, static_cast <int64_t >(0 ), static_cast < unsigned >( bitness) );
402402 return {scalarZero, expr};
403403 }
404404
@@ -431,7 +431,8 @@ createDecomposeOffsetFromExpr(RewriterBase &rewriter, Location loc, Value expr,
431431 // Base case 3: it is not a supported operation. We assume no
432432 // uniform part
433433 Value scalarZero = arith::ConstantIntOp::create (
434- rewriter, loc, static_cast <int64_t >(0 ), bitness);
434+ rewriter, loc, static_cast <int64_t >(0 ),
435+ static_cast <unsigned >(bitness));
435436 return std::make_pair (scalarZero, expr);
436437 });
437438
@@ -1677,7 +1678,7 @@ struct InitFuncPtrArgs : OpRewritePattern<tt::FuncOp> {
16771678 if (!isa<tt::PointerType>(arg.getType ()))
16781679 continue ;
16791680
1680- int64_t bitness = 64 ;
1681+ unsigned bitness = 64 ;
16811682 if (auto pointerRangeAttr =
16821683 newOp.getArgAttrOfType <IntegerAttr>(idx, " tt.pointer_range" ))
16831684 bitness = pointerRangeAttr.getInt ();
0 commit comments