llvm-project/mlir/docs/Dialects
Alex Zinenko cba733edf5 [mlir] LLVM dialect: use addressof instead of constant to create function pointers
`llvm.mlir.constant` was originally introduced as an LLVM dialect counterpart
to `std.constant`. As such, it was supporting "function pointer" constants
derived from the symbol name. This is different from `std.constant` that allows
for creation of a "function" constant since MLIR, unlike LLVM IR, supports
this. Later, `llvm.mlir.addressof` was introduced as an Op that obtains a
constant pointer to a global in the LLVM dialect. It naturally extends to
functions (in LLVM IR, functions are globals) and should be used for defining
"function pointer" values instead.

Fixes PR46344.

Differential Revision: https://reviews.llvm.org/D82667
2020-06-29 12:21:33 +02:00
..
Affine.md [mlir] Affine symbols: do not expect AffineScope to always exist 2020-06-15 17:55:49 +02:00
GPU.md [mlir] Update all dialects docs to use 'dialect-namespace' in the header 2020-03-30 12:25:15 -07:00
LLVM.md [mlir] LLVM dialect: use addressof instead of constant to create function pointers 2020-06-29 12:21:33 +02:00
Linalg.md [mlir][Linalg][Doc] Fix of misleading example in Property 2 2020-06-11 10:50:34 +02:00
SPIR-V.md [MLIR] Remove document references to gpu.kernel_module and gpu.kernel. 2020-04-27 10:00:15 +02:00
Standard.md [mlir] NFC: Fix trivial typo 2020-04-05 11:30:30 +09:00
Vector.md [mlir][doc] Add missing ` that breaks rendering 2020-04-27 11:25:32 -04:00