[mlir][vulkan-runner] Update mlir-vulkan-runner execution driver.
authorDenis Khalikov <khalikov.denis@huawei.com>
Tue, 10 Mar 2020 19:17:07 +0000 (15:17 -0400)
committerLei Zhang <antiagainst@gmail.com>
Tue, 10 Mar 2020 19:58:31 +0000 (15:58 -0400)
commit1090a830692a863ccb091e3fad8cc1a287417493
tree823aaee0ff0de8f8c83900875780fcf384f42df2
parent153720a0a567bf37f51b465a093790ebd3555549
[mlir][vulkan-runner] Update mlir-vulkan-runner execution driver.

* Adds GpuLaunchFuncToVulkanLaunchFunc conversion pass.
* Moves a serialization of the `spirv::Module` from LaunchFuncToVulkanCalls pass to newly created pass.
* Updates LaunchFuncToVulkanCalls instrumentation pass, adds `initVulkan` and `deinitVulkan` runtime calls.
* Adds `bindResource` call to bind specifc resource by the given descriptor set and descriptor binding.
* Eliminates static construction and desctruction of `VulkanRuntimeManager`.

Differential Revision: https://reviews.llvm.org/D75192
mlir/include/mlir/Conversion/GPUToVulkan/ConvertGPUToVulkanPass.h
mlir/include/mlir/InitAllPasses.h
mlir/lib/Conversion/GPUToVulkan/CMakeLists.txt
mlir/lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp [new file with mode: 0644]
mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
mlir/test/Conversion/GPUToVulkan/invoke-vulkan.mlir
mlir/test/Conversion/GPUToVulkan/lower-gpu-launch-vulkan-launch.mlir [new file with mode: 0644]
mlir/test/mlir-vulkan-runner/addf.mlir
mlir/tools/mlir-vulkan-runner/VulkanRuntime.h
mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
mlir/tools/mlir-vulkan-runner/vulkan-runtime-wrappers.cpp