[Mlir-commits] [mlir] [mlir][gpu] Allow integer attribute as `dynamic_shared_memory_size` (PR #71509)

Guray Ozen llvmlistbot at llvm.org
Tue Nov 7 08:17:54 PST 2023


================
@@ -588,7 +588,7 @@ def GPU_LaunchOp : GPU_Op<"launch", [
                Index:$gridSizeX, Index:$gridSizeY, Index:$gridSizeZ,
                Index:$blockSizeX, Index:$blockSizeY, Index:$blockSizeZ,
                Optional<I32>:$dynamicSharedMemorySize,
-               OptionalAttr<SI32Attr>:$dynamicSharedMemorySizeConstant)>,
+               OptionalAttr<I32Attr>:$dynamicSharedMemorySizeConstant)>,
----------------
grypp wrote:

I32Attr becomes `uint32`, SI32Attr becomes `int32`. `uint32` larger range. 

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


More information about the Mlir-commits mailing list