[mlir][OpenACCToLLVM] Add pass option to emit opaque pointers
authorMarkus Böck <markus.boeck02@gmail.com>
Tue, 21 Feb 2023 10:05:27 +0000 (11:05 +0100)
committerMarkus Böck <markus.boeck02@gmail.com>
Tue, 21 Feb 2023 13:06:10 +0000 (14:06 +0100)
commitb068c87f182dbfa972bdb2f4fe0615232d0da085
tree528561c3eeb6ca0c39d8e126097d0e3544f94ba8
parent5c39ec73efb50f0f673b48565d3901395d2bba96
[mlir][OpenACCToLLVM] Add pass option to emit opaque pointers

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

This patch simply adds the pass option use-opaque-pointers to instruct the pass to use opaque-pointers instead of typed pointers during conversion.
The pass itself does not actually make use of any pointers or anything, so did not require any changes except simply setting the option in the type converter. The tests have also been converted to using opaque-pointers

Differential Revision: https://reviews.llvm.org/D144462
mlir/include/mlir/Conversion/Passes.td
mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp
mlir/test/Conversion/OpenACCToLLVM/convert-data-operands-to-llvmir.mlir