[mlir][cf] Add support for opaque pointers to ControlFlowToLLVM lowering
authorMarkus Böck <markus.boeck02@gmail.com>
Wed, 8 Feb 2023 15:09:04 +0000 (16:09 +0100)
committerMarkus Böck <markus.boeck02@gmail.com>
Wed, 8 Feb 2023 20:23:23 +0000 (21:23 +0100)
commitcbd7aaacebb6c00cfaefd3b6978b7d2c62d09e90
tree92611de639c8c72465582f92906e1d413329c9ac
parent785009e19fbcbeaca206f7e5a786cb034a374e19
[mlir][cf] Add support for opaque pointers to ControlFlowToLLVM lowering

Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179

This is a very simple patch since there is only one use of pointers types in `cf.assert` that has to be changed. Pointer types are conditionally created with element types and the GEP had to be adjusted to use the array type as base type.

Differential Revision: https://reviews.llvm.org/D143583
mlir/include/mlir/Conversion/Passes.td
mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
mlir/test/Conversion/ControlFlowToLLVM/assert.mlir [new file with mode: 0644]