mirror of https://github.com/llvm/torch-mlir
[Bazel] Use glob instead of explicit files (#1520)
parent
3e199aaf11
commit
d865c1de7a
|
@ -163,25 +163,10 @@ gentbl_cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchPasses",
|
name = "TorchMLIRTorchPasses",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Dialect/Torch/Transforms/AdjustCallingConventions.cpp",
|
"lib/Dialect/Torch/Transforms/*.cpp",
|
||||||
"lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp",
|
"lib/Dialect/Torch/Transforms/*.h",
|
||||||
"lib/Dialect/Torch/Transforms/DropShapeCalculations.cpp",
|
]),
|
||||||
"lib/Dialect/Torch/Transforms/EraseModuleInitializer.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/LowerToBackendContract.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/MaximizeValueSemantics.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/PassDetail.h",
|
|
||||||
"lib/Dialect/Torch/Transforms/Passes.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/PrepareForGlobalizeObjectGraph.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/ReduceOpVariants.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/RefinePublicReturn.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/RefineTypes.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/ReifyShapeCalculations.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/ShapeLibrary.cpp",
|
|
||||||
"lib/Dialect/Torch/Transforms/SimplifyShapeCalculations.cpp",
|
|
||||||
],
|
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"include/torch-mlir/Dialect/Torch/Transforms/Passes.h",
|
"include/torch-mlir/Dialect/Torch/Transforms/Passes.h",
|
||||||
],
|
],
|
||||||
|
@ -252,14 +237,8 @@ gentbl_cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchConversionDialect",
|
name = "TorchMLIRTorchConversionDialect",
|
||||||
srcs = [
|
srcs = glob(["lib/Dialect/TorchConversion/IR/*.cpp"]),
|
||||||
"lib/Dialect/TorchConversion/IR/TorchConversionDialect.cpp",
|
hdrs = glob(["include/torch-mlir/Dialect/TorchConversion/IR/*.h"]),
|
||||||
"lib/Dialect/TorchConversion/IR/TorchConversionOps.cpp",
|
|
||||||
],
|
|
||||||
hdrs = [
|
|
||||||
"include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionDialect.h",
|
|
||||||
"include/torch-mlir/Dialect/TorchConversion/IR/TorchConversionOps.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":MLIRTorchConversionOpsIncGen",
|
":MLIRTorchConversionOpsIncGen",
|
||||||
|
@ -347,25 +326,12 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchToLinalg",
|
name = "TorchMLIRTorchToLinalg",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Conversion/PassDetail.h",
|
"lib/Conversion/*.h",
|
||||||
"lib/Conversion/TorchToLinalg/DataMovement.cpp",
|
"lib/Conversion/TorchToLinalg/*.cpp",
|
||||||
"lib/Conversion/TorchToLinalg/IndirectDataMovement.cpp",
|
"lib/Conversion/TorchToLinalg/*.h",
|
||||||
"lib/Conversion/TorchToLinalg/Linear.cpp",
|
]),
|
||||||
"lib/Conversion/TorchToLinalg/Pooling.cpp",
|
hdrs = glob(["include/torch-mlir/Conversion/TorchToLinalg/*.h"]),
|
||||||
"lib/Conversion/TorchToLinalg/PopulatePatterns.h",
|
|
||||||
"lib/Conversion/TorchToLinalg/Random.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/Reduction.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/TensorConstructors.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/TensorScalarInterop.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/TorchToLinalg.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/Uncategorized.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/Utils.cpp",
|
|
||||||
"lib/Conversion/TorchToLinalg/Utils.h",
|
|
||||||
],
|
|
||||||
hdrs = [
|
|
||||||
"include/torch-mlir/Conversion/TorchToLinalg/TorchToLinalg.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRConversionPassesIncGen",
|
":TorchMLIRConversionPassesIncGen",
|
||||||
|
@ -385,13 +351,11 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchToSCF",
|
name = "TorchMLIRTorchToSCF",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Conversion/PassDetail.h",
|
"lib/Conversion/*.h",
|
||||||
"lib/Conversion/TorchToSCF/TorchToSCF.cpp",
|
"lib/Conversion/TorchToSCF/*.cpp",
|
||||||
],
|
]),
|
||||||
hdrs = [
|
hdrs = glob(["include/torch-mlir/Conversion/TorchToSCF/*.h"]),
|
||||||
"include/torch-mlir/Conversion/TorchToSCF/TorchToSCF.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRConversionPassesIncGen",
|
":TorchMLIRConversionPassesIncGen",
|
||||||
|
@ -409,13 +373,13 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchToArith",
|
name = "TorchMLIRTorchToArith",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Conversion/PassDetail.h",
|
"lib/Conversion/*.h",
|
||||||
"lib/Conversion/TorchToArith/TorchToArith.cpp",
|
"lib/Conversion/TorchToArith/*.cpp",
|
||||||
],
|
]),
|
||||||
hdrs = [
|
hdrs = glob([
|
||||||
"include/torch-mlir/Conversion/TorchToArith/TorchToArith.h",
|
"include/torch-mlir/Conversion/TorchToArith/*.h",
|
||||||
],
|
]),
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRConversionPassesIncGen",
|
":TorchMLIRConversionPassesIncGen",
|
||||||
|
@ -428,13 +392,11 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchToTMTensor",
|
name = "TorchMLIRTorchToTMTensor",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Conversion/PassDetail.h",
|
"lib/Conversion/*.h",
|
||||||
"lib/Conversion/TorchToTMTensor/TorchToTMTensor.cpp",
|
"lib/Conversion/TorchToTMTensor/*.cpp",
|
||||||
],
|
]),
|
||||||
hdrs = [
|
hdrs = glob(["include/torch-mlir/Conversion/TorchToTMTensor/*.h"]),
|
||||||
"include/torch-mlir/Conversion/TorchToTMTensor/TorchToTMTensor.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRConversionPassesIncGen",
|
":TorchMLIRConversionPassesIncGen",
|
||||||
|
@ -448,22 +410,12 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchToMhlo",
|
name = "TorchMLIRTorchToMhlo",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Conversion/PassDetail.h",
|
"lib/Conversion/*.h",
|
||||||
"lib/Conversion/TorchToMhlo/Basic.cpp",
|
"lib/Conversion/TorchToMhlo/*.cpp",
|
||||||
"lib/Conversion/TorchToMhlo/Gather.cpp",
|
"lib/Conversion/TorchToMhlo/*.h"
|
||||||
"lib/Conversion/TorchToMhlo/Linear.cpp",
|
]),
|
||||||
"lib/Conversion/TorchToMhlo/MhloLegalizeUtils.cpp",
|
hdrs = glob(["include/torch-mlir/Conversion/TorchToMhlo/TorchToMhlo.h"]),
|
||||||
"lib/Conversion/TorchToMhlo/MhloLegalizeUtils.h",
|
|
||||||
"lib/Conversion/TorchToMhlo/Pooling.cpp",
|
|
||||||
"lib/Conversion/TorchToMhlo/PopulatePatterns.h",
|
|
||||||
"lib/Conversion/TorchToMhlo/Reduction.cpp",
|
|
||||||
"lib/Conversion/TorchToMhlo/TorchToMhlo.cpp",
|
|
||||||
"lib/Conversion/TorchToMhlo/ViewLike.cpp",
|
|
||||||
],
|
|
||||||
hdrs = [
|
|
||||||
"include/torch-mlir/Conversion/TorchToMhlo/TorchToMhlo.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRConversionPassesIncGen",
|
":TorchMLIRConversionPassesIncGen",
|
||||||
|
@ -496,17 +448,11 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchConversionPasses",
|
name = "TorchMLIRTorchConversionPasses",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Dialect/TorchConversion/Transforms/BackendTypeConversionPasses.cpp",
|
"lib/Dialect/TorchConversion/Transforms/*.cpp",
|
||||||
"lib/Dialect/TorchConversion/Transforms/PassDetail.h",
|
"lib/Dialect/TorchConversion/Transforms/*.h"
|
||||||
"lib/Dialect/TorchConversion/Transforms/Passes.cpp",
|
]),
|
||||||
"lib/Dialect/TorchConversion/Transforms/VerifyLinalgOnTensorsBackendContract.cpp",
|
hdrs = glob(["include/torch-mlir/Dialect/TorchConversion/Transforms/*.h"]),
|
||||||
"lib/Dialect/TorchConversion/Transforms/VerifyTosaBackendContract.cpp",
|
|
||||||
"lib/Dialect/TorchConversion/Transforms/VerifyMhloBackendContract.cpp",
|
|
||||||
],
|
|
||||||
hdrs = [
|
|
||||||
"include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRTorchBackendTypeConversion",
|
":TorchMLIRTorchBackendTypeConversion",
|
||||||
|
@ -533,17 +479,11 @@ cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTorchToTosa",
|
name = "TorchMLIRTorchToTosa",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"lib/Conversion/PassDetail.h",
|
"lib/Conversion/*.h",
|
||||||
"lib/Conversion/TorchToTosa/TorchToTosa.cpp",
|
"lib/Conversion/TorchToTosa/*.cpp",
|
||||||
"lib/Conversion/TorchToTosa/TosaLegalizeCommon.cpp",
|
]),
|
||||||
"lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp",
|
hdrs = glob(["include/torch-mlir/Conversion/TorchToTosa/*.h"]),
|
||||||
],
|
|
||||||
hdrs = [
|
|
||||||
"include/torch-mlir/Conversion/TorchToTosa/TorchToTosa.h",
|
|
||||||
"include/torch-mlir/Conversion/TorchToTosa/TosaLegalizeCommon.h",
|
|
||||||
"include/torch-mlir/Conversion/TorchToTosa/TosaLegalizeUtils.h",
|
|
||||||
],
|
|
||||||
strip_include_prefix = "include",
|
strip_include_prefix = "include",
|
||||||
deps = [
|
deps = [
|
||||||
":TorchMLIRConversionPassesIncGen",
|
":TorchMLIRConversionPassesIncGen",
|
||||||
|
@ -676,18 +616,8 @@ gentbl_cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTMTensorDialect",
|
name = "TorchMLIRTMTensorDialect",
|
||||||
srcs = [
|
srcs = glob(["externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/*.cpp"]),
|
||||||
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/IR/ScalarLoopOpInterface.cpp",
|
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/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",
|
||||||
|
@ -739,15 +669,8 @@ gentbl_cc_library(
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "TorchMLIRTMTensorPasses",
|
name = "TorchMLIRTMTensorPasses",
|
||||||
srcs = [
|
srcs = glob(["externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/Transforms/*.cpp"]),
|
||||||
"externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/TMTensor/Transforms/Bufferize.cpp",
|
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/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",
|
||||||
|
|
Loading…
Reference in New Issue