Rename and alias MLIR targets to match CMake

These differ from the CMake library names somewhat arbitrarily, which just creates confusion.

PiperOrigin-RevId: 317735676
Change-Id: Ia9d3d1645467b1af72f917b01d1a3f6061bceb34
This commit is contained in:
Geoffrey Martin-Noble 2020-06-22 14:27:36 -07:00 committed by TensorFlower Gardener
parent 0c227aed65
commit 20572f9ed0
1 changed files with 71 additions and 46 deletions

117
third_party/mlir/BUILD vendored
View File

@ -282,7 +282,7 @@ cc_library(
deps = [ deps = [
":AVX512IncGen", ":AVX512IncGen",
":IR", ":IR",
":SideEffects", ":SideEffectInterfaces",
":VectorOps", ":VectorOps",
"@llvm-project//llvm:Core", "@llvm-project//llvm:Core",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
@ -305,9 +305,9 @@ cc_library(
":IR", ":IR",
":LLVMAVX512", ":LLVMAVX512",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":Pass", ":Pass",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Support", ":Support",
":Transforms", ":Transforms",
":VectorOps", ":VectorOps",
@ -489,7 +489,7 @@ cc_library(
":EDSC", ":EDSC",
":IR", ":IR",
":LoopLikeInterface", ":LoopLikeInterface",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
@ -571,7 +571,7 @@ gentbl(
) )
cc_library( cc_library(
name = "AffineToStandardTransforms", name = "AffineToStandard",
srcs = glob([ srcs = glob([
"lib/Conversion/AffineToStandard/*.cpp", "lib/Conversion/AffineToStandard/*.cpp",
"lib/Conversion/AffineToStandard/*.h", "lib/Conversion/AffineToStandard/*.h",
@ -591,6 +591,11 @@ cc_library(
], ],
) )
alias(
name = "AffineToStandardTransforms",
actual = "AffineToStandard",
)
# SDBM dialect only contains attribute components that can be constructed given # SDBM dialect only contains attribute components that can be constructed given
# a dialect object, so whenever it is used it must also be registered. Therefore # a dialect object, so whenever it is used it must also be registered. Therefore
# we don't split out the registration library for it. # we don't split out the registration library for it.
@ -631,7 +636,7 @@ cc_library(
":IR", ":IR",
":LoopLikeInterface", ":LoopLikeInterface",
":SCFIncGen", ":SCFIncGen",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
@ -719,7 +724,7 @@ cc_library(
":InferTypeOpInterface", ":InferTypeOpInterface",
":MLIRShapeCanonicalizationIncGen", ":MLIRShapeCanonicalizationIncGen",
":ShapeOpsIncGen", ":ShapeOpsIncGen",
":SideEffects", ":SideEffectInterfaces",
":Support", ":Support",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
], ],
@ -833,7 +838,7 @@ cc_library(
":ControlFlowInterfaces", ":ControlFlowInterfaces",
":EDSC", ":EDSC",
":IR", ":IR",
":SideEffects", ":SideEffectInterfaces",
":StandardOpsIncGen", ":StandardOpsIncGen",
":Support", ":Support",
":ViewLikeInterface", ":ViewLikeInterface",
@ -895,7 +900,7 @@ cc_library(
":DialectUtils", ":DialectUtils",
":EDSC", ":EDSC",
":IR", ":IR",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
":VectorOpsIncGen", ":VectorOpsIncGen",
@ -1070,7 +1075,7 @@ cc_library(
":ControlFlowInterfaces", ":ControlFlowInterfaces",
":IR", ":IR",
":LLVMOpsIncGen", ":LLVMOpsIncGen",
":SideEffects", ":SideEffectInterfaces",
":Support", ":Support",
"@llvm-project//llvm:AsmParser", "@llvm-project//llvm:AsmParser",
"@llvm-project//llvm:BitReader", "@llvm-project//llvm:BitReader",
@ -1193,7 +1198,7 @@ cc_library(
":GPUOpsIncGen", ":GPUOpsIncGen",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
], ],
@ -1271,8 +1276,8 @@ cc_library(
":GPUDialect", ":GPUDialect",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":StandardOps", ":StandardOps",
":StandardToLLVM",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
], ],
) )
@ -1311,9 +1316,9 @@ cc_library(
":GPUToNVVMGen", ":GPUToNVVMGen",
":GPUTransforms", ":GPUTransforms",
":IR", ":IR",
":LLVMTransforms",
":NVVMDialect", ":NVVMDialect",
":Pass", ":Pass",
":StandardToLLVM",
":Transforms", ":Transforms",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
], ],
@ -1333,10 +1338,10 @@ cc_library(
":ConversionPassIncGen", ":ConversionPassIncGen",
":GPUDialect", ":GPUDialect",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":Pass", ":Pass",
":ROCDLDialect", ":ROCDLDialect",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Transforms", ":Transforms",
":VectorOps", ":VectorOps",
], ],
@ -1375,9 +1380,9 @@ cc_library(
":GPUDialect", ":GPUDialect",
":GPUToROCDLTGen", ":GPUToROCDLTGen",
":GPUTransforms", ":GPUTransforms",
":LLVMTransforms",
":Pass", ":Pass",
":ROCDLDialect", ":ROCDLDialect",
":StandardToLLVM",
":Transforms", ":Transforms",
":VectorOps", ":VectorOps",
":VectorToLLVM", ":VectorToLLVM",
@ -1475,7 +1480,7 @@ cc_library(
":SCFDialect", ":SCFDialect",
":SPIRVDialect", ":SPIRVDialect",
":SPIRVLowering", ":SPIRVLowering",
":StandardToSPIRVConversions", ":StandardToSPIRVTransforms",
":Support", ":Support",
":Transforms", ":Transforms",
], ],
@ -1496,10 +1501,10 @@ cc_library(
":ConversionPassIncGen", ":ConversionPassIncGen",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":Pass", ":Pass",
":SPIRVDialect", ":SPIRVDialect",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Support", ":Support",
":Transforms", ":Transforms",
], ],
@ -1574,7 +1579,7 @@ cc_library(
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":NVVMOpsIncGen", ":NVVMOpsIncGen",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
"@llvm-project//llvm:AsmParser", "@llvm-project//llvm:AsmParser",
@ -1646,7 +1651,7 @@ cc_library(
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":ROCDLOpsIncGen", ":ROCDLOpsIncGen",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
"@llvm-project//llvm:AsmParser", "@llvm-project//llvm:AsmParser",
@ -1894,7 +1899,7 @@ cc_library(
":SPIRVOpsIncGen", ":SPIRVOpsIncGen",
":SPIRVSerializationGen", ":SPIRVSerializationGen",
":SPIRVTargetAndABIStructGen", ":SPIRVTargetAndABIStructGen",
":SideEffects", ":SideEffectInterfaces",
":Support", ":Support",
":Transforms", ":Transforms",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
@ -1947,7 +1952,7 @@ cc_library(
) )
cc_library( cc_library(
name = "StandardToSPIRVConversions", name = "StandardToSPIRVTransforms",
srcs = glob([ srcs = glob([
"lib/Conversion/StandardToSPIRV/*.cpp", "lib/Conversion/StandardToSPIRV/*.cpp",
"lib/Conversion/StandardToSPIRV/*.h", "lib/Conversion/StandardToSPIRV/*.h",
@ -1972,6 +1977,11 @@ cc_library(
], ],
) )
alias(
name = "StandardToSPIRVConversions",
actual = "StandardToSPIRVTransforms",
)
cc_library( cc_library(
name = "SPIRVSerialization", name = "SPIRVSerialization",
srcs = glob( srcs = glob(
@ -2033,7 +2043,7 @@ cc_library(
":IR", ":IR",
":LoopLikeInterface", ":LoopLikeInterface",
":SCFDialect", ":SCFDialect",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
@ -2152,7 +2162,7 @@ cc_library(
":LoopLikeInterface", ":LoopLikeInterface",
":Pass", ":Pass",
":SCFDialect", ":SCFDialect",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
":TransformUtils", ":TransformUtils",
@ -2182,7 +2192,7 @@ cc_library(
includes = ["include"], includes = ["include"],
deps = [ deps = [
":Affine", ":Affine",
":AffineToStandardTransforms", ":AffineToStandard",
":ConversionPassIncGen", ":ConversionPassIncGen",
":GPUDialect", ":GPUDialect",
":GPUTransforms", ":GPUTransforms",
@ -2222,7 +2232,7 @@ cc_library(
) )
cc_library( cc_library(
name = "CFGTransforms", name = "SCFToStandard",
srcs = [ srcs = [
"lib/Conversion/PassDetail.h", "lib/Conversion/PassDetail.h",
"lib/Conversion/SCFToStandard/SCFToStandard.cpp", "lib/Conversion/SCFToStandard/SCFToStandard.cpp",
@ -2244,8 +2254,13 @@ cc_library(
], ],
) )
alias(
name = "CFGTransforms",
actual = "SCFToStandard",
)
cc_library( cc_library(
name = "LLVMTransforms", name = "StandardToLLVM",
srcs = [ srcs = [
"lib/Conversion/PassDetail.h", "lib/Conversion/PassDetail.h",
"lib/Conversion/StandardToLLVM/StandardToLLVM.cpp", "lib/Conversion/StandardToLLVM/StandardToLLVM.cpp",
@ -2269,6 +2284,11 @@ cc_library(
], ],
) )
alias(
name = "LLVMTransforms",
actual = "StandardToLLVM",
)
gentbl( gentbl(
name = "CallOpInterfacesIncGen", name = "CallOpInterfacesIncGen",
strip_include_prefix = "include", strip_include_prefix = "include",
@ -2401,7 +2421,7 @@ gentbl(
) )
cc_library( cc_library(
name = "SideEffects", name = "SideEffectInterfaces",
srcs = [ srcs = [
"lib/Interfaces/SideEffectInterfaces.cpp", "lib/Interfaces/SideEffectInterfaces.cpp",
], ],
@ -2417,6 +2437,11 @@ cc_library(
], ],
) )
alias(
name = "SideEffects",
actual = "SideEffectInterfaces",
)
cc_library( cc_library(
name = "Analysis", name = "Analysis",
srcs = glob( srcs = glob(
@ -2627,7 +2652,6 @@ cc_library(
":GPUTransforms", ":GPUTransforms",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":LinalgToLLVM", ":LinalgToLLVM",
":LinalgToSPIRV", ":LinalgToSPIRV",
":LinalgToStandard", ":LinalgToStandard",
@ -2639,7 +2663,8 @@ cc_library(
":ShapeToStandard", ":ShapeToStandard",
":ShapeTransforms", ":ShapeTransforms",
":StandardOpsTransforms", ":StandardOpsTransforms",
":StandardToSPIRVConversions", ":StandardToLLVM",
":StandardToSPIRVTransforms",
":Support", ":Support",
":Transforms", ":Transforms",
":VectorToLLVM", ":VectorToLLVM",
@ -2699,7 +2724,6 @@ cc_library(
":Affine", ":Affine",
":AffinePassIncGen", ":AffinePassIncGen",
":AffineTransforms", ":AffineTransforms",
":CFGTransforms",
":ConversionPassIncGen", ":ConversionPassIncGen",
":GPUDialect", ":GPUDialect",
":GPUPassIncGen", ":GPUPassIncGen",
@ -2714,7 +2738,6 @@ cc_library(
":LLVMDialect", ":LLVMDialect",
":LLVMIRTransforms", ":LLVMIRTransforms",
":LLVMPassIncGen", ":LLVMPassIncGen",
":LLVMTransforms",
":LinalgOps", ":LinalgOps",
":LinalgPassIncGen", ":LinalgPassIncGen",
":LinalgToLLVM", ":LinalgToLLVM",
@ -2729,6 +2752,7 @@ cc_library(
":ROCDLDialect", ":ROCDLDialect",
":SCFDialect", ":SCFDialect",
":SCFToGPUPass", ":SCFToGPUPass",
":SCFToStandard",
":SCFTransforms", ":SCFTransforms",
":SDBM", ":SDBM",
":SPIRVDialect", ":SPIRVDialect",
@ -2743,7 +2767,8 @@ cc_library(
":StandardOps", ":StandardOps",
":StandardOpsTransforms", ":StandardOpsTransforms",
":StandardOpsTransformsPassIncGen", ":StandardOpsTransformsPassIncGen",
":StandardToSPIRVConversions", ":StandardToLLVM",
":StandardToSPIRVTransforms",
":Transforms", ":Transforms",
":TransformsPassIncGen", ":TransformsPassIncGen",
":VectorOps", ":VectorOps",
@ -2809,13 +2834,13 @@ cc_library(
includes = ["include"], includes = ["include"],
deps = [ deps = [
":AllPassesAndDialectsNoRegistration", ":AllPassesAndDialectsNoRegistration",
":CFGTransforms",
":ExecutionEngine", ":ExecutionEngine",
":ExecutionEngineUtils", ":ExecutionEngineUtils",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":Parser", ":Parser",
":Pass", ":Pass",
":SCFToStandard",
":Support", ":Support",
"@llvm-project//llvm:Core", "@llvm-project//llvm:Core",
"@llvm-project//llvm:OrcJIT", "@llvm-project//llvm:OrcJIT",
@ -2885,7 +2910,7 @@ cc_library(
":IR", ":IR",
":Pass", ":Pass",
":SPIRVDialect", ":SPIRVDialect",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
@ -2918,10 +2943,10 @@ cc_binary(
":GPUTransforms", ":GPUTransforms",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":MlirJitRunner", ":MlirJitRunner",
":NVVMDialect", ":NVVMDialect",
":Pass", ":Pass",
":StandardToLLVM",
":TargetNVVMIR", ":TargetNVVMIR",
":Transforms", ":Transforms",
"//devtools/build/runtime:get_runfiles_dir", "//devtools/build/runtime:get_runfiles_dir",
@ -2945,11 +2970,11 @@ cc_binary(
":GPUToSPIRVTransforms", ":GPUToSPIRVTransforms",
":GPUToVulkanTransforms", ":GPUToVulkanTransforms",
":GPUTransforms", ":GPUTransforms",
":LLVMTransforms",
":MlirJitRunner", ":MlirJitRunner",
":Pass", ":Pass",
":SPIRVDialect", ":SPIRVDialect",
":StandardToSPIRVConversions", ":StandardToLLVM",
":StandardToSPIRVTransforms",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
], ],
) )
@ -3159,7 +3184,7 @@ cc_library(
":Pass", ":Pass",
":QuantOpsIncGen", ":QuantOpsIncGen",
":QuantPassIncGen", ":QuantPassIncGen",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
"@llvm-project//llvm:Support", "@llvm-project//llvm:Support",
], ],
@ -3294,18 +3319,18 @@ cc_library(
]), ]),
includes = ["include"], includes = ["include"],
deps = [ deps = [
":AffineToStandardTransforms", ":AffineToStandard",
":Analysis", ":Analysis",
":CFGTransforms",
":ConversionPassIncGen", ":ConversionPassIncGen",
":EDSC", ":EDSC",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":LinalgOps", ":LinalgOps",
":LinalgTransforms", ":LinalgTransforms",
":Pass", ":Pass",
":SCFToStandard",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Support", ":Support",
":Transforms", ":Transforms",
":VectorToLLVM", ":VectorToLLVM",
@ -3385,7 +3410,7 @@ cc_library(
":LinalgOpsIncGen", ":LinalgOpsIncGen",
":LinalgStructuredOpsIncGen", ":LinalgStructuredOpsIncGen",
":Parser", ":Parser",
":SideEffects", ":SideEffectInterfaces",
":StandardOps", ":StandardOps",
":Support", ":Support",
":ViewLikeInterface", ":ViewLikeInterface",
@ -3431,21 +3456,21 @@ cc_library(
includes = ["include"], includes = ["include"],
deps = [ deps = [
":Affine", ":Affine",
":AffineToStandardTransforms", ":AffineToStandard",
":Analysis", ":Analysis",
":CFGTransforms",
":DialectUtils", ":DialectUtils",
":EDSC", ":EDSC",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":LinalgOps", ":LinalgOps",
":LinalgPassIncGen", ":LinalgPassIncGen",
":LinalgStructuredOpsIncGen", ":LinalgStructuredOpsIncGen",
":Pass", ":Pass",
":SCFDialect", ":SCFDialect",
":SCFToStandard",
":SCFTransforms", ":SCFTransforms",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Support", ":Support",
":TransformUtils", ":TransformUtils",
":Transforms", ":Transforms",
@ -3537,9 +3562,9 @@ cc_library(
":EDSC", ":EDSC",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":Pass", ":Pass",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Support", ":Support",
":Transforms", ":Transforms",
":VectorOps", ":VectorOps",
@ -3564,10 +3589,10 @@ cc_library(
":EDSC", ":EDSC",
":IR", ":IR",
":LLVMDialect", ":LLVMDialect",
":LLVMTransforms",
":Pass", ":Pass",
":SCFDialect", ":SCFDialect",
":StandardOps", ":StandardOps",
":StandardToLLVM",
":Support", ":Support",
":Transforms", ":Transforms",
":VectorOps", ":VectorOps",