Change hardcoded external/ include to match repository name

This is the preferred name for the Bazel repository when included from
another project.

Note: These hardcoded "external/" includes are a horrible hack that we
can hopefully get rid of soon with more robust Bazel tablegen rules.
PiperOrigin-RevId: 350810768
This commit is contained in:
Geoffrey Martin-Noble 2021-01-08 12:06:39 -08:00 committed by TensorFlow MLIR Team
parent ac38478350
commit 47848764a5
1 changed files with 17 additions and 17 deletions

34
BUILD
View File

@ -49,7 +49,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/transforms/mhlo_passes.td", td_file = "include/mlir-hlo/Dialect/mhlo/transforms/mhlo_passes.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_srcs = [ td_srcs = [
@ -69,7 +69,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/transforms/lmhlo_passes.td", td_file = "include/mlir-hlo/Dialect/mhlo/transforms/lmhlo_passes.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_srcs = [ td_srcs = [
@ -87,7 +87,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/chlo_ops.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/chlo_ops.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -106,7 +106,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
"include/mlir-hlo/Dialect/mhlo/IR/hlo_utils.td", "include/mlir-hlo/Dialect/mhlo/IR/hlo_utils.td",
], ],
@ -130,7 +130,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_base.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_base.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -148,7 +148,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_base.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_base.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -166,7 +166,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_base.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_base.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -187,7 +187,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "lib/Dialect/mhlo/IR/hlo_patterns.td", td_file = "lib/Dialect/mhlo/IR/hlo_patterns.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -213,7 +213,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -232,7 +232,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_gpu_ops_structs.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_gpu_ops_structs.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -254,7 +254,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_gpu_ops_enums.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_gpu_ops_enums.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -308,7 +308,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_gpu_ops.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_gpu_ops.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -332,7 +332,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "lib/Dialect/mhlo/IR/mhlo_canonicalize.td", td_file = "lib/Dialect/mhlo/IR/mhlo_canonicalize.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -356,7 +356,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/infer_fusibility_op_interface.td", td_file = "include/mlir-hlo/Dialect/mhlo/IR/infer_fusibility_op_interface.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -798,7 +798,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "lib/Dialect/mhlo/transforms/legalize_to_standard_patterns.td", td_file = "lib/Dialect/mhlo/transforms/legalize_to_standard_patterns.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -891,7 +891,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "lib/Dialect/mhlo/transforms/lower_complex_patterns.td", td_file = "lib/Dialect/mhlo/transforms/lower_complex_patterns.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [
@ -992,7 +992,7 @@ gentbl(
tblgen = "@llvm-project//mlir:mlir-tblgen", tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "lib/Dialect/mhlo/transforms/chlo_legalize_to_hlo_patterns.td", td_file = "lib/Dialect/mhlo/transforms/chlo_legalize_to_hlo_patterns.td",
td_includes = [ td_includes = [
"external/mlir_hlo/include", "external/mlir-hlo/include",
"include", "include",
], ],
td_relative_includes = [ td_relative_includes = [