llvm-project/mlir
Sameer Sahasrabuddhe d8f99bb6e0 [AMDGPU] replace hostcall module flag with function attribute
The module flag to indicate use of hostcall is insufficient to catch
all cases where hostcall might be in use by a kernel. This is now
replaced by a function attribute that gets propagated to top-level
kernel functions via their respective call-graph.

If the attribute "amdgpu-no-hostcall-ptr" is absent on a kernel, the
default behaviour is to emit kernel metadata indicating that the
kernel uses the hostcall buffer pointer passed as an implicit
argument.

The attribute may be placed explicitly by the user, or inferred by the
AMDGPU attributor by examining the call-graph. The attribute is
inferred only if the function is not being sanitized, and the
implictarg_ptr does not result in a load of any byte in the hostcall
pointer argument.

Reviewed By: jdoerfert, arsenm, kpyzhov

Differential Revision: https://reviews.llvm.org/D119216
2022-02-11 22:51:56 +05:30
..
benchmark/python [mlir] Use sparse-compiler pass in sparse benchmark 2022-02-09 20:16:47 +00:00
cmake/modules [mlir] Do not use an empty source file when building aggregate libraries. 2022-02-05 23:06:28 -08:00
docs [mlir][OpDSL] Add support for basic rank polymorphism. 2022-02-11 08:27:49 +00:00
examples [mlir] Update Toy operations to use the `hasCustomAssemblyFormat` field 2022-02-07 19:03:58 -08:00
include [mlir][LLVM] Add support for adding a garbage collector to a LLVM function 2022-02-11 10:23:51 +01:00
lib [AMDGPU] replace hostcall module flag with function attribute 2022-02-11 22:51:56 +05:30
python [mlir][OpDSL] Add support for basic rank polymorphism. 2022-02-11 08:27:49 +00:00
test [mlir][MemRef] Fix MemRefCopyOpLowering to use correct number of bytes 2022-02-11 13:59:08 +01:00
tools [mlir][OpDSL] Add support for basic rank polymorphism. 2022-02-11 08:27:49 +00:00
unittests [MLIR][Presburger] normalizeDivisionByGCD: fix bug when constant term is negative 2022-02-11 17:02:52 +05:30
utils [mlir] Set up boilerplate build for MLIR benchmarks 2022-01-27 21:38:15 +00:00
.clang-format
.clang-tidy Enable readability-redundant-smartptr-get in MLIR local clang-tidy config 2022-01-08 20:07:11 +00:00
CMakeLists.txt [mlir] Set up boilerplate build for MLIR benchmarks 2022-01-27 21:38:15 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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