llvm-project/mlir/lib/Conversion/GPUToROCDL
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] Use target-specific GPU kernel attributes in lowering pipelines 2021-02-12 14:09:24 +01:00
GPUToROCDL.td [mlir][rocdl] add rocdl.barier op. 2020-05-04 10:35:01 +02:00
LowerGpuOpsToROCDLOps.cpp [mlir] introduce data layout entry for index type 2021-03-24 15:13:42 +01:00