Re-land D139865 "Add known_block_size and known_grid_size to gpu.func"
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Thu, 29 Dec 2022 21:36:12 +0000 (21:36 +0000)
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Mon, 2 Jan 2023 16:39:00 +0000 (16:39 +0000)
commitbe575c5dfc55a2ebac463be97d863a6f2962926a
tree84fc1bc223deaa1b3664ee7906b1edcd51c0efdd
parente730e7d2aa403cc87cc7ce9021ad035b385f4357
Re-land D139865 "Add known_block_size and known_grid_size to gpu.func"

This should fix the MSVC warning that caused the previous revert.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D140766
mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/lib/Dialect/GPU/IR/InferIntRangeInterfaceImpls.cpp
mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp
mlir/test/Dialect/GPU/int-range-interface.mlir
mlir/test/Dialect/GPU/invalid.mlir
mlir/test/Dialect/GPU/outlining.mlir