[all-commits] [llvm/llvm-project] f9008e: [NFC][Py Reformat] Reformat python files in mlir s...

Tobias Hieta via All-commits all-commits at lists.llvm.org
Thu May 25 23:05:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9008e6366c2496b1ca1785b891d5578174ad63e
      https://github.com/llvm/llvm-project/commit/f9008e6366c2496b1ca1785b891d5578174ad63e
  Author: Tobias Hieta <tobias at hieta.se>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M mlir/benchmark/python/benchmark_sparse.py
    M mlir/benchmark/python/common.py
    M mlir/examples/standalone/test/CAPI/lit.local.cfg
    M mlir/examples/standalone/test/lit.cfg.py
    M mlir/examples/standalone/test/python/lit.local.cfg
    M mlir/examples/standalone/test/python/smoketest.py
    M mlir/python/mlir/_mlir_libs/__init__.py
    M mlir/python/mlir/dialects/_arith_ops_ext.py
    M mlir/python/mlir/dialects/_bufferization_ops_ext.py
    M mlir/python/mlir/dialects/_builtin_ops_ext.py
    M mlir/python/mlir/dialects/_func_ops_ext.py
    M mlir/python/mlir/dialects/_linalg_ops_ext.py
    M mlir/python/mlir/dialects/_loop_transform_ops_ext.py
    M mlir/python/mlir/dialects/_memref_ops_ext.py
    M mlir/python/mlir/dialects/_ml_program_ops_ext.py
    M mlir/python/mlir/dialects/_ods_common.py
    M mlir/python/mlir/dialects/_pdl_ops_ext.py
    M mlir/python/mlir/dialects/_scf_ops_ext.py
    M mlir/python/mlir/dialects/_structured_transform_ops_ext.py
    M mlir/python/mlir/dialects/_tensor_ops_ext.py
    M mlir/python/mlir/dialects/_transform_ops_ext.py
    M mlir/python/mlir/dialects/linalg/opdsl/dump_oplib.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/affine.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/config.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/dsl.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/scalar_expr.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/types.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/yaml_helper.py
    M mlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
    M mlir/python/mlir/dialects/python_test.py
    M mlir/python/mlir/dialects/transform/__init__.py
    M mlir/python/mlir/execution_engine.py
    M mlir/python/mlir/ir.py
    M mlir/python/mlir/runtime/np_to_memref.py
    M mlir/test/CAPI/lit.local.cfg
    M mlir/test/Conversion/GPUToCUDA/lit.local.cfg
    M mlir/test/Conversion/GPUToROCm/lit.local.cfg
    M mlir/test/Examples/Toy/Ch6/lit.local.cfg
    M mlir/test/Examples/Toy/Ch7/lit.local.cfg
    M mlir/test/Examples/lit.local.cfg
    M mlir/test/Examples/standalone/lit.local.cfg
    M mlir/test/Integration/Dialect/Async/CPU/lit.local.cfg
    M mlir/test/Integration/Dialect/LLVMIR/CPU/X86/lit.local.cfg
    M mlir/test/Integration/Dialect/LLVMIR/CPU/lit.local.cfg
    M mlir/test/Integration/Dialect/SparseTensor/CPU/lit.local.cfg
    M mlir/test/Integration/Dialect/SparseTensor/GPU/CUDA/lit.local.cfg
    M mlir/test/Integration/Dialect/SparseTensor/python/lit.local.cfg
    M mlir/test/Integration/Dialect/SparseTensor/python/test_SDDMM.py
    M mlir/test/Integration/Dialect/SparseTensor/python/test_SpMM.py
    M mlir/test/Integration/Dialect/SparseTensor/python/test_elementwise_add_sparse_output.py
    M mlir/test/Integration/Dialect/SparseTensor/python/test_output.py
    M mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
    M mlir/test/Integration/Dialect/SparseTensor/python/tools/np_to_sparse_tensor.py
    M mlir/test/Integration/Dialect/SparseTensor/python/tools/sparse_compiler.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/lit.local.cfg
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_MTTKRP.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_SDDMM.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_SpMM.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_SpMV.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_Tensor.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_scalar_tensor_algebra.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_tensor_complex.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_tensor_types.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/test_true_dense_tensor_algebra.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_io.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_sparse_compiler.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/tools/testing_utils.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/unit_test_tensor_core.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/unit_test_tensor_io.py
    M mlir/test/Integration/Dialect/SparseTensor/taco/unit_test_tensor_utils.py
    M mlir/test/Integration/Dialect/Vector/CPU/AMX/lit.local.cfg
    M mlir/test/Integration/Dialect/Vector/CPU/ArmSME/lit.local.cfg
    M mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/lit.local.cfg
    M mlir/test/Integration/Dialect/Vector/CPU/X86Vector/lit.local.cfg
    M mlir/test/Integration/Dialect/Vector/GPU/CUDA/lit.local.cfg
    M mlir/test/Integration/GPU/CUDA/TensorCore/lit.local.cfg
    M mlir/test/Integration/GPU/CUDA/lit.local.cfg
    M mlir/test/Integration/GPU/ROCM/lit.local.cfg
    M mlir/test/Integration/lit.local.cfg
    M mlir/test/Unit/lit.cfg.py
    M mlir/test/lib/Dialect/Test/lit.local.cfg
    M mlir/test/lib/Dialect/Transform/lit.local.cfg
    M mlir/test/lib/Tools/PDLL/lit.local.cfg
    M mlir/test/lib/Transforms/lit.local.cfg
    M mlir/test/lit.cfg.py
    M mlir/test/mlir-cpu-runner/lit.local.cfg
    M mlir/test/mlir-pdll-lsp-server/lit.local.cfg
    M mlir/test/mlir-pdll/lit.local.cfg
    M mlir/test/mlir-spirv-cpu-runner/lit.local.cfg
    M mlir/test/mlir-vulkan-runner/lit.local.cfg
    M mlir/test/python/develoment_files.py
    M mlir/test/python/dialects/arith_dialect.py
    M mlir/test/python/dialects/async_dialect.py
    M mlir/test/python/dialects/builtin.py
    M mlir/test/python/dialects/complex_dialect.py
    M mlir/test/python/dialects/func.py
    M mlir/test/python/dialects/gpu.py
    M mlir/test/python/dialects/linalg/opdsl/arguments.py
    M mlir/test/python/dialects/linalg/opdsl/assignments.py
    M mlir/test/python/dialects/linalg/opdsl/doctests.py
    M mlir/test/python/dialects/linalg/opdsl/emit_convolution.py
    M mlir/test/python/dialects/linalg/opdsl/emit_fill.py
    M mlir/test/python/dialects/linalg/opdsl/emit_matmul.py
    M mlir/test/python/dialects/linalg/opdsl/emit_misc.py
    M mlir/test/python/dialects/linalg/opdsl/emit_pooling.py
    M mlir/test/python/dialects/linalg/opdsl/lit.local.cfg
    M mlir/test/python/dialects/linalg/opdsl/metadata.py
    M mlir/test/python/dialects/linalg/opdsl/shape_maps_iteration.py
    M mlir/test/python/dialects/linalg/ops.py
    M mlir/test/python/dialects/math_dialect.py
    M mlir/test/python/dialects/memref.py
    M mlir/test/python/dialects/ml_program.py
    M mlir/test/python/dialects/ods_helpers.py
    M mlir/test/python/dialects/pdl_ops.py
    M mlir/test/python/dialects/python_test.py
    M mlir/test/python/dialects/quant.py
    M mlir/test/python/dialects/scf.py
    M mlir/test/python/dialects/shape.py
    M mlir/test/python/dialects/sparse_tensor/dialect.py
    M mlir/test/python/dialects/sparse_tensor/passes.py
    M mlir/test/python/dialects/tensor.py
    M mlir/test/python/dialects/transform.py
    M mlir/test/python/dialects/transform_loop_ext.py
    M mlir/test/python/dialects/transform_structured_ext.py
    M mlir/test/python/dialects/vector.py
    M mlir/test/python/execution_engine.py
    M mlir/test/python/integration/dialects/linalg/opsrun.py
    M mlir/test/python/ir/affine_expr.py
    M mlir/test/python/ir/affine_map.py
    M mlir/test/python/ir/array_attributes.py
    M mlir/test/python/ir/attributes.py
    M mlir/test/python/ir/blocks.py
    M mlir/test/python/ir/builtin_types.py
    M mlir/test/python/ir/context_managers.py
    M mlir/test/python/ir/debug.py
    M mlir/test/python/ir/diagnostic_handler.py
    M mlir/test/python/ir/dialects.py
    M mlir/test/python/ir/exception.py
    M mlir/test/python/ir/insertion_point.py
    M mlir/test/python/ir/integer_set.py
    M mlir/test/python/ir/location.py
    M mlir/test/python/ir/module.py
    M mlir/test/python/ir/operation.py
    M mlir/test/python/ir/symbol_table.py
    M mlir/test/python/ir/value.py
    M mlir/test/python/lit.local.cfg
    M mlir/test/python/pass_manager.py
    M mlir/test/tblgen-lsp-server/lit.local.cfg
    M mlir/utils/gdb-scripts/prettyprinters.py
    M mlir/utils/generate-test-checks.py
    M mlir/utils/jupyter/mlir_opt_kernel/__main__.py
    M mlir/utils/jupyter/mlir_opt_kernel/install.py
    M mlir/utils/jupyter/mlir_opt_kernel/kernel.py
    M mlir/utils/lldb-scripts/mlirDataFormatters.py
    M mlir/utils/mbr/mbr/__init__.py
    M mlir/utils/mbr/mbr/discovery.py
    M mlir/utils/mbr/mbr/main.py
    M mlir/utils/mbr/mbr/stats.py
    M mlir/utils/spirv/gen_spirv_dialect.py

  Log Message:
  -----------
  [NFC][Py Reformat] Reformat python files in mlir subdir

This is an ongoing series of commits that are reformatting our
Python code.

Reformatting is done with `black`.

If you end up having problems merging this commit because you
have made changes to a python file, the best way to handle that
is to run git checkout --ours <yourfile> and then reformat it
with black.

If you run into any problems, post to discourse about it and
we will try to help.

RFC Thread below:

https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style

Differential Revision: https://reviews.llvm.org/D150782




More information about the All-commits mailing list