llvm-project/mlir/tools/mlir-vulkan-runner
Alex Zinenko b3386a734e [mlir] introduce data layout entry for index type
Index type is an integer type of target-specific bitwidth present in many MLIR
operations (loops, memory accesses). Converting values of this type to
fixed-size integers has always been problematic. Introduce a data layout entry
to specify the bitwidth of `index` in a given layout scope, defaulting to 64
bits, which is a commonly used assumption, e.g., in constants.

Port builtin-to-LLVM type conversion to use this data layout entry when
converting `index` type and untie it from pointer size. This is particularly
relevant for GPU targets. Keep a possibility to forcibly override the index
type in lowerings.

Depends On D98525

Reviewed By: herhut

Differential Revision: https://reviews.llvm.org/D98937
2021-03-24 15:13:42 +01:00
..
CMakeLists.txt [mlir] fix SPIR-V CPU and Vulkan runners after e2310704d8 2021-03-15 18:36:58 +01:00
VulkanRuntime.cpp [mlir] Mark LogicalResult as LLVM_NODISCARD 2021-02-04 15:10:10 -08:00
VulkanRuntime.h [mlir][vulkan-runner] Make vulkan runner use GPU device memory 2020-06-26 08:03:06 -07:00
mlir-vulkan-runner.cpp [mlir] introduce data layout entry for index type 2021-03-24 15:13:42 +01:00
vulkan-runtime-wrappers.cpp [mlir] Export CUDA and Vulkan runtime wrappers on Windows 2021-02-21 22:58:55 -08:00