llvm-project/mlir/lib/Dialect/LLVMIR
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
..
IR [mlir][LLVM] Fix `DataLayoutTypeInterface` for opqaue pointers with non-default address space 2022-04-23 00:10:31 +02:00
Transforms [mlir] Make locations required when adding/creating block arguments 2022-01-19 17:35:35 -08:00
CMakeLists.txt [mlir] Split intrinsics out of LLVMOps.td 2022-04-14 13:23:31 +02:00