diff options
author | George Mitenkov <georgemitenk0v@gmail.com> | 2020-10-23 10:33:53 -0400 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2020-10-26 08:11:04 -0400 |
commit | cae4067ec1cdf7846aa46dab13d3bc1f58b76016 (patch) | |
tree | 7d56d65358896f10d8c4b0e78b3164955f09be06 /llvm/lib/Object/ArchiveWriter.cpp | |
parent | efa9aaad703e6b150980ed1a74b4e7c9da7d85a2 (diff) | |
download | llvm-cae4067ec1cdf7846aa46dab13d3bc1f58b76016.zip llvm-cae4067ec1cdf7846aa46dab13d3bc1f58b76016.tar.gz llvm-cae4067ec1cdf7846aa46dab13d3bc1f58b76016.tar.bz2 |
[MLIR][mlir-spirv-cpu-runner] A pass to emulate a call to kernel in LLVM
This patch introduces a pass for running
`mlir-spirv-cpu-runner` - LowerHostCodeToLLVMPass.
This pass emulates `gpu.launch_func` call in LLVM dialect and lowers
the host module code to LLVM. It removes the `gpu.module`, creates a
sequence of global variables that are later linked to the varables
in the kernel module, as well as a series of copies to/from
them to emulate the memory transfer to/from the host or to/from the
device sides. It also converts the remaining Standard dialect into
LLVM dialect, emitting C wrappers.
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D86112
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions