llvm-project/mlir/lib
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
..
Analysis [MLIR][Presburger] normalizeDivisionByGCD: fix bug when constant term is negative 2022-02-11 17:02:52 +05:30
Bindings/Python [mlir][python] 8b/16b DenseIntElements access 2022-01-21 05:21:09 +00:00
CAPI [mlir][capi] Add DialectRegistry to MLIR C-API 2022-02-01 13:42:06 -07:00
Conversion [mlir][MemRef] Fix MemRefCopyOpLowering to use correct number of bytes 2022-02-11 13:59:08 +01:00
Dialect [AMDGPU] replace hostcall module flag with function attribute 2022-02-11 22:51:56 +05:30
ExecutionEngine [mlir][sparse] Rename index_t to index_type again 2022-02-09 21:59:52 +01:00
IR Add a new interface method `getAsmBlockName()` on OpAsmOpInterface to control block names 2022-02-11 08:46:08 +00:00
Interfaces [mlir] Add isa/dyn_cast support for dialect interfaces 2022-01-31 19:24:34 -08:00
Parser [mlir] Silence warnings when building with MSVC 2022-01-30 17:31:35 -05:00
Pass [mlir][NFC] Add a using for llvm::SMLoc/llvm::SMRange to LLVM.h 2022-01-26 21:37:23 -08:00
Reducer Apply clang-tidy fixes for performance-move-const-arg in ReductionNode.cpp (NFC) 2022-01-10 01:05:14 +00:00
Rewrite [MLIR][PDL] Integration test of multi-root matching and related fixes. 2022-01-04 08:03:45 +05:30
Support Replace OwningModuleRef with OwningOpRef<ModuleOp> 2022-01-30 14:07:10 -08:00
TableGen [mlir][ods] Optional Attribute or Type Parameters 2022-02-08 20:09:44 +00:00
Target [mlir][LLVM] Add support for adding a garbage collector to a LLVM function 2022-02-11 10:23:51 +01:00
Tools [PDLL] Attempt to fix the gcc5 build by adding this-> to auto lambda 2022-02-10 16:59:03 -08:00
Transforms [mlir] Add pass to privatize symbols unless excluded. 2022-02-03 20:20:54 -08:00
Translation [mlir-translate] Teach these tools about --allow-unregistered-dialect 2022-02-03 09:00:38 -08:00
CMakeLists.txt [mlir] Ensure a newline at the end of a file (NFC) 2022-01-23 13:59:59 -08:00