Added build rules for HLO and LHLO ops MD.
PiperOrigin-RevId: 373373920
This commit is contained in:
parent
8895262330
commit
30779f0c2f
22
BUILD
22
BUILD
|
@ -1,4 +1,4 @@
|
|||
load("@llvm-project//mlir:tblgen.bzl", "gentbl", "td_library")
|
||||
load("@llvm-project//mlir:tblgen.bzl", "gentbl", "gentbl_filegroup", "td_library")
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
|
@ -236,6 +236,26 @@ gentbl(
|
|||
deps = [":hlo_ops_td_files"],
|
||||
)
|
||||
|
||||
gentbl_filegroup(
|
||||
name = "hlo_ops_doc_gen",
|
||||
tbl_outs = [
|
||||
("-gen-dialect-doc", "g3doc/hlo_ops.md"),
|
||||
],
|
||||
tblgen = "@llvm-project//mlir:mlir-tblgen",
|
||||
td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td",
|
||||
deps = [":hlo_ops_td_files"],
|
||||
)
|
||||
|
||||
gentbl_filegroup(
|
||||
name = "lhlo_ops_doc_gen",
|
||||
tbl_outs = [
|
||||
("-gen-dialect-doc", "g3doc/lhlo_ops.md"),
|
||||
],
|
||||
tblgen = "@llvm-project//mlir:mlir-tblgen",
|
||||
td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td",
|
||||
deps = [":hlo_ops_td_files"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "hlo_ops_common",
|
||||
srcs = ["lib/Dialect/mhlo/IR/hlo_ops_common.cc"],
|
||||
|
|
Loading…
Reference in New Issue