refine tdfiles in interface

This commit is contained in:
colin 2020-10-14 11:53:46 +08:00
parent 4aa456585e
commit 70a7733278
2 changed files with 8 additions and 1 deletions

View File

@ -13,8 +13,10 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "ONNXOps.td", td_file = "ONNXOps.td",
td_includes = ["."], td_includes = ["."],
# td_relative_includes = ["../../"]
td_srcs = [ td_srcs = [
"ONNXOps.td.inc", "ONNXOps.td.inc",
"//src/Interface:TdFiles",
# "//src/Interface:PromotableConstOperandsOpInterface.td", # "//src/Interface:PromotableConstOperandsOpInterface.td",
# "//src/Interface:ResultTypeInferenceOpInterface.td", # "//src/Interface:ResultTypeInferenceOpInterface.td",
# "//src/Interface:ShapeInferenceInterface.td", # "//src/Interface:ShapeInferenceInterface.td",

View File

@ -90,3 +90,8 @@ cc_library(
"@llvm-project//mlir:Shape", "@llvm-project//mlir:Shape",
], ],
) )
filegroup(
name = "TdFiles",
srcs = glob(["**/*.td"]),
)