Internal change

PiperOrigin-RevId: 327285397
Change-Id: Ie8bc88a2210b810b3c6037cfd5bd051b9fdea2bb
This commit is contained in:
Mehdi Amini 2020-08-18 12:40:56 -07:00 committed by TensorFlower Gardener
parent 1fc05b28f5
commit 6547301e98

View File

@ -974,9 +974,14 @@ cc_library(
"lib/Support/MlirOptMain.cpp",
],
),
hdrs = glob([
"include/mlir/Support/*.h",
]),
hdrs = glob(
[
"include/mlir/Support/*.h",
],
exclude = [
"include/mlir/Support/MlirOptMain.h",
],
),
includes = ["include"],
deps = [
"@llvm-project//llvm:Support",
@ -2921,9 +2926,8 @@ cc_library(
alwayslink = 1,
)
# TODO(jpienaar): This library should be removed.
cc_library(
name = "MlirOptMain",
cc_binary(
name = "mlir-opt",
srcs = [
"tools/mlir-opt/mlir-opt.cpp",
],
@ -2933,22 +2937,11 @@ cc_library(
":Analysis",
":IR",
":MlirOptLib",
":Pass",
":Support",
"@llvm-project//llvm:Support",
],
)
cc_binary(
name = "mlir-opt",
deps = [
":Analysis",
":IR",
":MlirOptLib",
":MlirOptMain",
":OpenMPDialect",
":Pass",
":QuantOps",
":SCFToGPUPass",
":Support",
":Transforms",
"@llvm-project//llvm:AllTargetsCodeGens",
"@llvm-project//llvm:Support",