[mlir][AMDGPU] Set ABI version constant when linking device libs
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Thu, 2 Jun 2022 20:19:41 +0000 (20:19 +0000)
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Fri, 10 Jun 2022 18:40:52 +0000 (18:40 +0000)
commita2cdb9791bf8085d3e6aee2f86c181b971c4a4e0
tree6d6f02cb4614f7d8fef04c10cd10f01f7fb8e9ee
parentf62baddac052b4e746a3ec817b31adafec79427c
[mlir][AMDGPU] Set ABI version constant when linking device libs

Currently, linking the device libraries requires setting a constant
that indicates the code object ABI version the compilation is
targeting.

This fixes the MLIR linking process by setting this constant to 400,
which is the value corresponding to the current code object ABI
default, version 4.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D126913
mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp