[Bazel] Use gloab instead of explicit files (#1529)

pull/1530/head
Ahmed S. Taei 2022-10-26 13:28:00 -07:00 committed by GitHub
parent ce01c4f9a7
commit 8da8d971c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 7 deletions

View File

@ -412,10 +412,10 @@ cc_library(
name = "TorchMLIRTorchToMhlo", name = "TorchMLIRTorchToMhlo",
srcs = glob([ srcs = glob([
"lib/Conversion/*.h", "lib/Conversion/*.h",
"lib/Conversion/TorchToMhlo/*.h",
"lib/Conversion/TorchToMhlo/*.cpp", "lib/Conversion/TorchToMhlo/*.cpp",
"lib/Conversion/TorchToMhlo/*.h"
]), ]),
hdrs = glob(["include/torch-mlir/Conversion/TorchToMhlo/TorchToMhlo.h"]), hdrs = glob(["include/torch-mlir/Conversion/TorchToMhlo/*.h"]),
strip_include_prefix = "include", strip_include_prefix = "include",
deps = [ deps = [
":TorchMLIRConversionPassesIncGen", ":TorchMLIRConversionPassesIncGen",
@ -450,7 +450,7 @@ cc_library(
name = "TorchMLIRTorchConversionPasses", name = "TorchMLIRTorchConversionPasses",
srcs = glob([ srcs = glob([
"lib/Dialect/TorchConversion/Transforms/*.cpp", "lib/Dialect/TorchConversion/Transforms/*.cpp",
"lib/Dialect/TorchConversion/Transforms/*.h" "lib/Dialect/TorchConversion/Transforms/*.h",
]), ]),
hdrs = glob(["include/torch-mlir/Dialect/TorchConversion/Transforms/*.h"]), hdrs = glob(["include/torch-mlir/Dialect/TorchConversion/Transforms/*.h"]),
strip_include_prefix = "include", strip_include_prefix = "include",
@ -616,8 +616,18 @@ gentbl_cc_library(
cc_library( cc_library(
name = "TorchMLIRTMTensorDialect", name = "TorchMLIRTMTensorDialect",
srcs = glob(["externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/*.cpp"]), srcs = [
hdrs = glob(["externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/IR/*.h"]), "externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/ScalarLoopOpInterface.cpp",
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/TMTensorDialect.cpp",
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/TMTensorInterfaces.cpp",
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/TMTensorOps.cpp",
],
hdrs = [
"externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/IR/ScalarLoopOpInterface.h",
"externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorDialect.h",
"externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorInterfaces.h",
"externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorOps.h",
],
strip_include_prefix = "externals/llvm-external-projects/torch-mlir-dialects/include", strip_include_prefix = "externals/llvm-external-projects/torch-mlir-dialects/include",
deps = [ deps = [
":TorchMLIRTMTensorInterfacesIncGen", ":TorchMLIRTMTensorInterfacesIncGen",
@ -669,8 +679,15 @@ gentbl_cc_library(
cc_library( cc_library(
name = "TorchMLIRTMTensorPasses", name = "TorchMLIRTMTensorPasses",
srcs = glob(["externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/Transforms/*.cpp"]), srcs = [
hdrs = ["externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/Transforms/*.h"], "externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/Transforms/Bufferize.cpp",
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/Transforms/ConvertToLoops.cpp",
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/Transforms/Passes.cpp",
],
hdrs = [
"externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/Transforms/PassDetail.h",
"externals/llvm-external-projects/torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/Transforms/Passes.h",
],
strip_include_prefix = "externals/llvm-external-projects/torch-mlir-dialects/include", strip_include_prefix = "externals/llvm-external-projects/torch-mlir-dialects/include",
deps = [ deps = [
":TorchMLIRTMTensorDialect", ":TorchMLIRTMTensorDialect",