message: [mlir] update BUILD files to include CAPI for Async and GPU dialects
diff: @@ -306,6 +306,25 @@ cc_library(
  ],
  )
  +cc_library(
  + name = "CAPIAsync",
  + srcs = [
  + "lib/CAPI/Dialect/Async.cpp",
  + "lib/CAPI/Dialect/AsyncPasses.cpp",
  + ],
  + hdrs = [
  + "include/mlir-c/Dialect/Async.h",
  + ],
  + includes = ["include"],
  + deps = [
  + ":Async",
  + ":AsyncPassIncGen",
  + ":AsyncTransforms",
  + ":CAPIIR",
  + ":Pass",
  + ],
  +)
  +
  cc_library(
  name = "CAPILinalg",
  srcs = [
  @@ -325,6 +344,25 @@ cc_library(
  ],
  )
  +cc_library(
  + name = "CAPIGPU",
  + srcs = [
  + "lib/CAPI/Dialect/GPU.cpp",
  + "lib/CAPI/Dialect/GPUPasses.cpp",
  + ],
  + hdrs = [
  + "include/mlir-c/Dialect/GPU.h",
  + ],
  + includes = ["include"],
  + deps = [
  + ":CAPIIR",
  + ":GPUDialect",
  + ":GPUPassIncGen",
  + ":GPUTransforms",
  + ":Pass",
  + ],
  +)
  +
  cc_library(
  name = "CAPIConversion",
  srcs = ["lib/CAPI/Conversion/Passes.cpp"],
  @@ -735,6 +773,14 @@ gentbl(
  "-gen-pass-decls -name Async",
  "include/mlir/Dialect/Async/Passes.h.inc",
  ),
  + (
  + "-gen-pass-capi-header --prefix Async",
  + "include/mlir/Dialect/Async/Passes.capi.h.inc",
  + ),
  + (
  + "-gen-pass-capi-impl --prefix Async",
  + "include/mlir/Dialect/Async/Passes.capi.cpp.inc",
  + ),
  ],
  tblgen = ":mlir-tblgen",
  td_file = "include/mlir/Dialect/Async/Passes.td",
  @@ -2141,6 +2187,14 @@ gentbl(
  "-gen-pass-decls -name GPU",
  "include/mlir/Dialect/GPU/Passes.h.inc",
  ),
  + (
  + "-gen-pass-capi-header --prefix GPU",
  + "include/mlir/Dialect/GPU/Passes.capi.h.inc",
  + ),
  + (
  + "-gen-pass-capi-impl --prefix GPU",
  + "include/mlir/Dialect/GPU/Passes.capi.cpp.inc",
  + ),
  ],
  tblgen = ":mlir-tblgen",
  td_file = "include/mlir/Dialect/GPU/Passes.td",
  