Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58a0560

Browse files
committed
Fix python formatting
1 parent be91d03 commit 58a0560

File tree

1 file changed

+35
-56
lines changed

1 file changed

+35
-56
lines changed

‎build_tools/bazel_to_cmake/bazel_to_cmake_targets.py‎

Lines changed: 35 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -13,67 +13,51 @@
1313
"//build_tools:dl": ["${CMAKE_DL_LIBS}"],
1414

1515
# IREE llvm-external-projects
16-
"//llvm-external-projects/iree-dialects:IREEInputDialect":
17-
["IREEInputDialect"],
18-
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect":
19-
["IREELinalgExtDialect"],
20-
"//llvm-external-projects/iree-dialects:IREELinalgExtTransforms":
21-
["IREELinalgExtPasses"],
16+
"//llvm-external-projects/iree-dialects:IREEInputDialect": [
17+
"IREEInputDialect"
18+
],
19+
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect": [
20+
"IREELinalgExtDialect"
21+
],
22+
"//llvm-external-projects/iree-dialects:IREELinalgExtTransforms": [
23+
"IREELinalgExtPasses"
24+
],
2225
"//llvm-external-projects/iree-dialects:IREEPyDMDialect": [
2326
"IREEPyDMDialect"
2427
],
25-
"//llvm-external-projects/iree-dialects:IREEPyDMTransforms":
26-
["IREEPyDMPasses"],
28+
"//llvm-external-projects/iree-dialects:IREEPyDMTransforms": [
29+
"IREEPyDMPasses"
30+
],
2731

2832
# LLVM
2933
"@llvm-project//llvm:IPO": ["LLVMipo"],
3034
"@llvm-project//lld": ["lld"],
3135
# MLIR
32-
"@llvm-project//mlir:AllPassesAndDialects": [
33-
"MLIRAllDialects"
34-
],
35-
"@llvm-project//mlir:AffineToStandardTransforms": [
36-
"MLIRAffineToStandard"
37-
],
36+
"@llvm-project//mlir:AllPassesAndDialects": ["MLIRAllDialects"],
37+
"@llvm-project//mlir:AffineToStandardTransforms": ["MLIRAffineToStandard"],
3838
"@llvm-project//mlir:CFGTransforms": ["MLIRSCFToStandard"],
3939
"@llvm-project//mlir:ComplexDialect": ["MLIRComplex"],
4040
"@llvm-project//mlir:DialectUtils": [""],
41-
"@llvm-project//mlir:ExecutionEngineUtils": [
42-
"MLIRExecutionEngine"
43-
],
41+
"@llvm-project//mlir:ExecutionEngineUtils": ["MLIRExecutionEngine"],
4442
"@llvm-project//mlir:GPUDialect": ["MLIRGPUOps"],
4543
"@llvm-project//mlir:GPUTransforms": ["MLIRGPUTransforms"],
4644
"@llvm-project//mlir:LinalgInterfaces": ["MLIRLinalg"],
4745
"@llvm-project//mlir:LinalgOps": ["MLIRLinalg"],
4846
"@llvm-project//mlir:LLVMDialect": ["MLIRLLVMIR"],
49-
"@llvm-project//mlir:LLVMTransforms": [
50-
"MLIRStandardToLLVM"
51-
],
47+
"@llvm-project//mlir:LLVMTransforms": ["MLIRStandardToLLVM"],
5248
"@llvm-project//mlir:MathDialect": ["MLIRMath"],
53-
"@llvm-project//mlir:ArithmeticDialect": [
54-
"MLIRArithmetic"
55-
],
56-
"@llvm-project//mlir:BufferizationDialect": [
57-
"MLIRBufferization"
58-
],
49+
"@llvm-project//mlir:ArithmeticDialect": ["MLIRArithmetic"],
50+
"@llvm-project//mlir:BufferizationDialect": ["MLIRBufferization"],
5951
"@llvm-project//mlir:MemRefDialect": ["MLIRMemRef"],
6052
"@llvm-project//mlir:SCFToGPUPass": ["MLIRSCFToGPU"],
6153
"@llvm-project//mlir:SCFDialect": ["MLIRSCF"],
6254
"@llvm-project//mlir:StandardOps": ["MLIRStandard"],
63-
"@llvm-project//mlir:ShapeTransforms": [
64-
"MLIRShapeOpsTransforms"
65-
],
66-
"@llvm-project//mlir:SideEffects": [
67-
"MLIRSideEffectInterfaces"
68-
],
55+
"@llvm-project//mlir:ShapeTransforms": ["MLIRShapeOpsTransforms"],
56+
"@llvm-project//mlir:SideEffects": ["MLIRSideEffectInterfaces"],
6957
"@llvm-project//mlir:SPIRVDialect": ["MLIRSPIRV"],
7058
"@llvm-project//mlir:TosaDialect": ["MLIRTosa"],
71-
"@llvm-project//mlir:ToLLVMIRTranslation": [
72-
"MLIRTargetLLVMIRExport"
73-
],
74-
"@llvm-project//mlir:mlir_c_runner_utils": [
75-
"MLIRExecutionEngine"
76-
],
59+
"@llvm-project//mlir:ToLLVMIRTranslation": ["MLIRTargetLLVMIRExport"],
60+
"@llvm-project//mlir:mlir_c_runner_utils": ["MLIRExecutionEngine"],
7761
"@llvm-project//mlir:mlir-translate": ["mlir-translate"],
7862
"@llvm-project//mlir:MlirTableGenMain": ["MLIRTableGen"],
7963
"@llvm-project//mlir:MlirOptLib": ["MLIROptLib"],
@@ -100,16 +84,14 @@
10084
"tensorflow::external_mhlo_includes",
10185
"MhloToStandard",
10286
],
103-
"@mlir-hlo//:legalize_einsum_to_dot_general":
104-
[
105-
"tensorflow::external_mhlo_includes",
106-
"MhloPasses",
107-
],
108-
"@mlir-hlo//:legalize_gather_to_torch_index_select":
109-
[
110-
"tensorflow::external_mhlo_includes",
111-
"MhloPasses",
112-
],
87+
"@mlir-hlo//:legalize_einsum_to_dot_general": [
88+
"tensorflow::external_mhlo_includes",
89+
"MhloPasses",
90+
],
91+
"@mlir-hlo//:legalize_gather_to_torch_index_select": [
92+
"tensorflow::external_mhlo_includes",
93+
"MhloPasses",
94+
],
11395
"@mlir-hlo//:legalize_to_linalg": [
11496
"tensorflow::external_mhlo_includes",
11597
"MhloLhloToLinalg",
@@ -135,11 +117,10 @@
135117
"tensorflow::external_mhlo_includes",
136118
"MhloToStandard",
137119
],
138-
"@mlir-hlo//:mhlo_to_mhlo_lowering_patterns":
139-
[
140-
"tensorflow::external_mhlo_includes",
141-
"MhloPasses",
142-
],
120+
"@mlir-hlo//:mhlo_to_mhlo_lowering_patterns": [
121+
"tensorflow::external_mhlo_includes",
122+
"MhloPasses",
123+
],
143124
"@mlir-hlo//:unfuse_batch_norm": [
144125
"tensorflow::external_mhlo_includes",
145126
"MhloPasses",
@@ -160,11 +141,9 @@
160141
"@com_google_googletest//:gtest": ["gmock", "gtest"],
161142
"@spirv_cross//:spirv_cross_lib": ["spirv-cross-msl"],
162143
"@cpuinfo": ["cpuinfo"],
163-
"@vulkan_memory_allocator//:impl_header_only":
164-
["vulkan_memory_allocator"],
144+
"@vulkan_memory_allocator//:impl_header_only": ["vulkan_memory_allocator"],
165145
}
166146

167-
168147
def _convert_mlir_target(target):
169148
# Default to a pattern substitution approach.
170149
# Take "MLIR" and append the name part of the full target identifier, e.g.

0 commit comments

Comments
 (0)