message: Add BULID rules for mlir-vulkan-runner
diff: @@ -2677,6 +2677,37 @@ cc_binary(
  ],
  )
  +cc_library(
  + name = "VulkanRuntime",
  + srcs = [
  + "tools/mlir-vulkan-runner/VulkanRuntime.cpp",
  + ],
  + hdrs = [
  + "tools/mlir-vulkan-runner/VulkanRuntime.h",
  + ],
  + deps = [
  + ":IR",
  + ":Pass",
  + ":SPIRVDialect",
  + ":SideEffects",
  + ":StandardOps",
  + ":Support",
  + "//third_party/vulkan_loader",
  + "@llvm-project//llvm:support",
  + "@vulkan_headers",
  + ],
  +)
  +
  +cc_binary(
  + name = "tools/libvulkan-runtime-wrappers.so",
  + srcs = ["tools/mlir-vulkan-runner/vulkan-runtime-wrappers.cpp"],
  + linkshared = True,
  + deps = [
  + ":VulkanRuntime",
  + "@llvm-project//llvm:support",
  + ],
  +)
  +
  cc_binary(
  name = "mlir-cuda-runner",
  srcs = ["tools/mlir-cuda-runner/mlir-cuda-runner.cpp"],
  @@ -2706,6 +2737,28 @@ cc_binary(
  ],
  )
  +cc_binary(
  + name = "mlir-vulkan-runner",
  + srcs = ["tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp"],
  + data = [
  + ":tools/libvulkan-runtime-wrappers.so",
  + "@llvm-project//mlir/test/mlir-cpu-runner:libmlir_runner_utils.so",
  + ],
  + deps = [
  + ":AllPassesAndDialectsNoRegistration",
  + ":ExecutionEngineUtils",
  + ":GPUToSPIRVTransforms",
  + ":GPUToVulkanTransforms",
  + ":GPUTransforms",
  + ":LLVMTransforms",
  + ":MlirJitRunner",
  + ":Pass",
  + ":SPIRVDialect",
  + ":StandardToSPIRVConversions",
  + "@llvm-project//llvm:support",
  + ],
  +)
  +
  cc_library(
  name = "TableGen",
  srcs = glob(["lib/TableGen/*.cpp"]),
  