llvm-project/mlir
Markus Böck 8ed2bd1e74 [mlir][LLVM] Fix `DataLayoutTypeInterface` for opqaue pointers with non-default address space
As a fallback mechanism, if no entry was supplied for a given address space, the size or alignment for a pointer type with the default address space is returned instead.
This code currently crashes with opaque pointers, as it tries to construct a typed pointer type from the opaque pointer type, leading to a null pointer dereference when fetching the element type.

This patch fixes the issue by handling the opaque pointer cases explicitly.

Differential Revision: https://reviews.llvm.org/D124290
2022-04-23 00:10:31 +02:00
..
benchmark/python [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
cmake/modules Remove include_directories() from cmake `mlir_tablegen()` function (NFC) 2022-03-14 04:36:24 +00:00
docs [mlir] enable doc generation for the transform dialect 2022-04-21 18:52:08 +02:00
examples [mlir][NFC] Update textual references of `func` to `func.func` in examples+python scripts 2022-04-20 22:17:26 -07:00
include [mlir] use side effects in the Transform dialect 2022-04-22 23:29:11 +02:00
lib [mlir][LLVM] Fix `DataLayoutTypeInterface` for opqaue pointers with non-default address space 2022-04-23 00:10:31 +02:00
python [mlir][Linalg] Add pooling_nchw_sum op. 2022-04-08 17:57:47 +05:30
test [mlir][LLVM] Fix `DataLayoutTypeInterface` for opqaue pointers with non-default address space 2022-04-23 00:10:31 +02:00
tools [mlir] Fix `Region`s `takeBody` method if the region is not empty 2022-04-21 15:32:59 +02:00
unittests [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
utils [mlir][NFC] Update textual references of `func` to `func.func` in examples+python scripts 2022-04-20 22:17:26 -07: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 CMAKE_INCLUDE_CURRENT_DIR to fix out-of-tree builds 2022-03-19 18:22:09 -05:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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