aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorGeorge Mitenkov <georgemitenk0v@gmail.com>2020-10-23 10:33:53 -0400
committerLei Zhang <antiagainst@google.com>2020-10-26 08:11:04 -0400
commitcae4067ec1cdf7846aa46dab13d3bc1f58b76016 (patch)
tree7d56d65358896f10d8c4b0e78b3164955f09be06 /llvm/lib/Object/ArchiveWriter.cpp
parentefa9aaad703e6b150980ed1a74b4e7c9da7d85a2 (diff)
downloadllvm-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