[mlir][NVGPUToNVVM] Add option for emitting opaque pointers
authorMarkus Böck <markus.boeck02@gmail.com>
Fri, 24 Feb 2023 15:59:46 +0000 (16:59 +0100)
committerMarkus Böck <markus.boeck02@gmail.com>
Fri, 24 Feb 2023 16:43:38 +0000 (17:43 +0100)
commit53689fdfb29767a12b4d5ad41c67a705a3c622de
tree8ce1d3cf2e32f24eb8b4e328baf3e6935d03d450
parent8ae5e9edcdb394794d8c4d1ee286f1b500aaf826
[mlir][NVGPUToNVVM] Add option for emitting opaque pointers

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

The 'use-opaque-pointers' options, when enabled, changes the patterns to emit opaque pointers instead of typed pointers. As part of the migration effort the test have been converted to typed pointers, with an extra file for testing just typed pointers specific code paths.

Differential Revision: https://reviews.llvm.org/D144736
mlir/include/mlir/Conversion/NVGPUToNVVM/NVGPUToNVVM.h
mlir/include/mlir/Conversion/Passes.td
mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp
mlir/test/Conversion/NVGPUToNVVM/nvgpu-to-nvvm.mlir
mlir/test/Conversion/NVGPUToNVVM/typed-pointers.mlir [new file with mode: 0644]