llvm-project/mlir
Krzysztof Drewniak a6f53afbcb [MLIR][GPU] Link in device libraries during HSA compilation if needed
To perform some operations, such as sin() or printf(), code compiled
for AMD GPUs must be linked to a series of device libraries. This
commit adds support for linking in these libraries.

However, since these device libraries are delivered as LLVM bitcode,
raising the possibility of version incompatibilities, this commit only
links in libraries when the functions from those libraries are called
by the code being compiled.

This code also sets the math flags to their most conservative values,
as MLIR doesn't have a `-ffast-math` equivalent.

Depends on D114114

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D114117
2021-11-19 22:29:37 +00:00
..
cmake/modules Re-apply "[mlir] Allow out-of-tree python building from installed MLIR." 2021-11-14 20:31:34 -08:00
docs NFC: Callout restriction on folding 0-result ops in documentation. 2021-11-19 20:35:01 +00:00
examples [mlir][NFC] Replace references to Identifier with StringAttr 2021-11-16 17:36:26 +00:00
include [MLIR][GPU] Run generic LLVM optimizations when serializing (on AMD) 2021-11-19 19:21:24 +00:00
lib [MLIR][GPU] Link in device libraries during HSA compilation if needed 2021-11-19 22:29:37 +00:00
python [mlir][Python] Fix generation of accessors for Optional 2021-11-18 09:42:57 +01:00
test [mlir][gpu] Extend shuffle op modes and add nvvm lowering 2021-11-19 11:14:31 -08:00
tools [mlir] Fully qualify default generated type/attribute printer and parser 2021-11-18 20:24:00 +01:00
unittests [mlir] Convert NamedAttribute to be a class 2021-11-18 05:39:29 +00:00
utils [mlir][NFC] Replace references to Identifier with StringAttr 2021-11-16 17:36:26 +00:00
.clang-format
.clang-tidy NFC: .clang-tidy: Inherit configs from parents to improve maintainability 2021-06-08 08:25:59 -07:00
CMakeLists.txt [mlir] Add MLIR-C dylib. 2021-11-11 22:58:13 -08:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.