aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMarkus Böck <markus.boeck02@gmail.com>2023-02-21 07:51:44 +0100
committerMarkus Böck <markus.boeck02@gmail.com>2023-02-21 20:46:33 +0100
commit0e5aeae6f58244485e1ebe89e639fa9048dfd07f (patch)
tree3a9a0ea4e507d18d31cb1d94076663e18065d1f2 /flang/lib/Frontend/CompilerInvocation.cpp
parentafcceec744097a22037da3f426d1088b360ba164 (diff)
downloadllvm-0e5aeae6f58244485e1ebe89e639fa9048dfd07f.zip
llvm-0e5aeae6f58244485e1ebe89e639fa9048dfd07f.tar.gz
llvm-0e5aeae6f58244485e1ebe89e639fa9048dfd07f.tar.bz2
[mlir][GPUToLLVM] Add support for emitting opaque pointers
Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the new pass option `use-opaque-pointers` to the GPU to LLVM lowerings (including ROCD and NVVM) and adapts the code to support using opaque pointers in addition to typed pointers. The required changes mostly boil down to avoiding `getElementType` and specifying base types in GEP and Alloca. In the future opaque pointers will be the only supported model, hence tests have been ported to using opaque pointers by default. Additional regression tests for typed-pointers have been added to avoid breaking existing clients. Note: This does not yet port the `GpuToVulkan` passes. Differential Revision: https://reviews.llvm.org/D144448
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions