[all-commits] [llvm/llvm-project] b71edf: [NFC][Py Reformat] Reformat python files in llvm

Tobias Hieta via All-commits all-commits at lists.llvm.org
Wed May 17 01:49:08 PDT 2023


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

  Changed paths:
    M llvm/bindings/python/llvm/bit_reader.py
    M llvm/bindings/python/llvm/common.py
    M llvm/bindings/python/llvm/core.py
    M llvm/bindings/python/llvm/disassembler.py
    M llvm/bindings/python/llvm/enumerations.py
    M llvm/bindings/python/llvm/object.py
    M llvm/bindings/python/llvm/tests/base.py
    M llvm/bindings/python/llvm/tests/test_bitreader.py
    M llvm/bindings/python/llvm/tests/test_core.py
    M llvm/bindings/python/llvm/tests/test_disassembler.py
    M llvm/bindings/python/llvm/tests/test_object.py
    M llvm/docs/conf.py
    M llvm/examples/Kaleidoscope/MCJIT/cached/genk-timing.py
    M llvm/examples/Kaleidoscope/MCJIT/cached/split-lib.py
    M llvm/examples/Kaleidoscope/MCJIT/complete/genk-timing.py
    M llvm/examples/Kaleidoscope/MCJIT/complete/split-lib.py
    M llvm/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py
    M llvm/lib/Analysis/models/gen-inline-oz-test-model.py
    M llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py
    M llvm/lib/Analysis/models/gen-regalloc-priority-test-model.py
    M llvm/lib/Analysis/models/interactive_host.py
    M llvm/lib/Analysis/models/log_reader.py
    M llvm/lib/Analysis/models/saved-model-to-tflite.py
    M llvm/test/BugPoint/compile-custom.ll.py
    M llvm/test/CodeGen/AArch64/Atomics/generate-tests.py
    M llvm/test/CodeGen/MLRegalloc/Inputs/interactive_main.py
    M llvm/test/CodeGen/NVPTX/ld-st-addrrspace.py
    M llvm/test/CodeGen/NVPTX/surf-tex.py
    M llvm/test/CodeGen/NVPTX/wmma.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-01.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-02.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-03.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-04.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-05.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-06.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-07.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-08.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-09.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-10.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-11.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-12.py
    M llvm/test/CodeGen/SystemZ/Large/branch-range-13.py
    M llvm/test/CodeGen/SystemZ/Large/spill-01.py
    M llvm/test/CodeGen/SystemZ/Large/spill-02.py
    M llvm/test/CodeGen/WebAssembly/multivalue-stackify.py
    M llvm/test/MC/COFF/bigobj.py
    M llvm/test/Other/opt-bisect-helper.py
    M llvm/test/TableGen/JSON-check.py
    M llvm/test/Transforms/Inline/ML/Inputs/interactive_main.py
    M llvm/test/Unit/lit.cfg.py
    M llvm/test/lit.cfg.py
    M llvm/test/tools/llvm-debuginfod-find/Inputs/capture_req.py
    M llvm/test/tools/llvm-libtool-darwin/Inputs/DependencyDump.py
    M llvm/test/tools/llvm-objcopy/Inputs/ungzip.py
    M llvm/test/tools/llvm-objcopy/MachO/Inputs/code-signature-check.py
    M llvm/test/tools/llvm-reduce/Inputs/llvm-dis-and-filecheck.py
    M llvm/test/tools/llvm-reduce/Inputs/remove-args.py
    M llvm/test/tools/llvm-reduce/Inputs/remove-bbs.py
    M llvm/test/tools/llvm-reduce/Inputs/remove-instructions.py
    M llvm/test/tools/llvm-reduce/Inputs/sleep-and-check-stores.py
    M llvm/test/tools/llvm-reduce/remove-bbs-sequence.py
    M llvm/test/tools/llvm-symbolizer/Inputs/flush-output.py
    M llvm/tools/llvm-shlib/gen-msvc-exports.py
    M llvm/tools/opt-viewer/extract-reproducers.py
    M llvm/tools/opt-viewer/opt-diff.py
    M llvm/tools/opt-viewer/opt-stats.py
    M llvm/tools/opt-viewer/opt-viewer.py
    M llvm/tools/opt-viewer/optpmap.py
    M llvm/tools/opt-viewer/optrecord.py
    M llvm/tools/sancov/coverage-report-server.py
    M llvm/utils/DSAclean.py
    M llvm/utils/DSAextract.py
    M llvm/utils/Reviewing/find_interesting_reviews.py
    M llvm/utils/Target/ARM/analyze-match-table.py
    M llvm/utils/UpdateTestChecks/asm.py
    M llvm/utils/UpdateTestChecks/common.py
    M llvm/utils/UpdateTestChecks/isel.py
    M llvm/utils/abtest.py
    M llvm/utils/add_argument_names.py
    M llvm/utils/bugpoint_gisel_reducer.py
    M llvm/utils/check_ninja_deps.py
    M llvm/utils/chunk-print-before-all.py
    M llvm/utils/collect_and_build_with_pgo.py
    M llvm/utils/convert-constraint-log-to-z3.py
    M llvm/utils/create_ladder_graph.py
    M llvm/utils/demangle_tree.py
    M llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py
    M llvm/utils/docker/scripts/llvm_checksum/project_tree.py
    M llvm/utils/extract-section.py
    M llvm/utils/extract_symbols.py
    M llvm/utils/extract_vplan.py
    M llvm/utils/filecheck_lint/filecheck_lint.py
    M llvm/utils/filecheck_lint/filecheck_lint_test.py
    M llvm/utils/gdb-scripts/prettyprinters.py
    M llvm/utils/git/github-automation.py
    M llvm/utils/git/pre-push.py
    M llvm/utils/gn/build/run_built_binary.py
    M llvm/utils/gn/build/symbol_exports.py
    M llvm/utils/gn/build/symlink_or_copy.py
    M llvm/utils/gn/build/sync_source_lists_from_cmake.py
    M llvm/utils/gn/build/write_cmake_config.py
    M llvm/utils/gn/build/write_file.py
    M llvm/utils/gn/build/write_library_dependencies.py
    M llvm/utils/gn/build/write_vcsrevision.py
    M llvm/utils/gn/get.py
    M llvm/utils/gn/gn.py
    M llvm/utils/gn/secondary/libcxx/utils/gen_link_script.py
    M llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py
    M llvm/utils/gn/secondary/llvm/tools/llvm-config/write_extension_dependencies.py
    M llvm/utils/indirect_calls.py
    M llvm/utils/lint/common_lint.py
    M llvm/utils/lint/cpp_lint.py
    M llvm/utils/lint/generic_lint.py
    M llvm/utils/lit/examples/many-tests/lit.cfg
    M llvm/utils/lit/lit.py
    M llvm/utils/lit/lit/BooleanExpression.py
    M llvm/utils/lit/lit/LitConfig.py
    M llvm/utils/lit/lit/LitTestCase.py
    M llvm/utils/lit/lit/ProgressBar.py
    M llvm/utils/lit/lit/ShCommands.py
    M llvm/utils/lit/lit/ShUtil.py
    M llvm/utils/lit/lit/Test.py
    M llvm/utils/lit/lit/TestRunner.py
    M llvm/utils/lit/lit/TestTimes.py
    M llvm/utils/lit/lit/TestingConfig.py
    M llvm/utils/lit/lit/__init__.py
    M llvm/utils/lit/lit/builtin_commands/cat.py
    M llvm/utils/lit/lit/builtin_commands/diff.py
    M llvm/utils/lit/lit/cl_arguments.py
    M llvm/utils/lit/lit/discovery.py
    M llvm/utils/lit/lit/display.py
    M llvm/utils/lit/lit/formats/__init__.py
    M llvm/utils/lit/lit/formats/base.py
    M llvm/utils/lit/lit/formats/googletest.py
    M llvm/utils/lit/lit/formats/shtest.py
    M llvm/utils/lit/lit/llvm/config.py
    M llvm/utils/lit/lit/llvm/subst.py
    M llvm/utils/lit/lit/main.py
    M llvm/utils/lit/lit/reports.py
    M llvm/utils/lit/lit/run.py
    M llvm/utils/lit/lit/util.py
    M llvm/utils/lit/lit/worker.py
    M llvm/utils/lit/setup.py
    M llvm/utils/lit/tests/Inputs/allow-retries/lit.cfg
    M llvm/utils/lit/tests/Inputs/allow-retries/succeeds-within-limit.py
    M llvm/utils/lit/tests/Inputs/config-map-discovery/driver.py
    M llvm/utils/lit/tests/Inputs/config-map-discovery/main-config/lit.cfg
    M llvm/utils/lit/tests/Inputs/custom-result-category/format.py
    M llvm/utils/lit/tests/Inputs/custom-result-category/lit.cfg
    M llvm/utils/lit/tests/Inputs/discovery/lit.cfg
    M llvm/utils/lit/tests/Inputs/discovery/subsuite/lit.cfg
    M llvm/utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg
    M llvm/utils/lit/tests/Inputs/fake-externals/fake_external.py
    M llvm/utils/lit/tests/Inputs/googletest-cmd-wrapper/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-crash/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-crash/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-detect-duplicate/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-detect-duplicate/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-discovery-failed/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-format-respect-gtest-sharding-env-vars/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-format-respect-gtest-sharding-env-vars/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-format/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-sanitizer-error/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-sanitizer-error/lit.cfg
    M llvm/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-timeout/lit.cfg
    M llvm/utils/lit/tests/Inputs/ignore-fail/lit.cfg
    M llvm/utils/lit/tests/Inputs/lit-opts/lit.cfg
    M llvm/utils/lit/tests/Inputs/lld-features/lit.cfg
    M llvm/utils/lit/tests/Inputs/max-failures/lit.cfg
    M llvm/utils/lit/tests/Inputs/max-time/lit.cfg
    M llvm/utils/lit/tests/Inputs/parallelism-groups/lit.cfg
    M llvm/utils/lit/tests/Inputs/progress-bar/lit.cfg
    M llvm/utils/lit/tests/Inputs/py-config-discovery/lit.site.cfg.py
    M llvm/utils/lit/tests/Inputs/reorder/lit.cfg
    M llvm/utils/lit/tests/Inputs/show-result-codes/lit.cfg
    M llvm/utils/lit/tests/Inputs/show-used-features/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-define/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-env/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-env/print_environment.py
    M llvm/utils/lit/tests/Inputs/shtest-format-argv0/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-if-else/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-inject/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-keyword-parse-errors/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-not/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-not/print_environment.py
    M llvm/utils/lit/tests/Inputs/shtest-output-printing/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-pushd-popd/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-no-limit/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-within-limit/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/escaping/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/negative-integer/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/not-an-integer/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/set-to-none/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/substitutes-within-limit/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-run-at-line/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py
    M llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py
    M llvm/utils/lit/tests/Inputs/shtest-shell/lit.cfg
    M llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg
    M llvm/utils/lit/tests/Inputs/standalone-tests-with-excludes/lit.cfg
    M llvm/utils/lit/tests/Inputs/standalone-tests-with-suffixes/lit.cfg
    M llvm/utils/lit/tests/Inputs/standalone-tests/lit.cfg
    M llvm/utils/lit/tests/Inputs/test-data-micro/dummy_format.py
    M llvm/utils/lit/tests/Inputs/test-data-micro/lit.cfg
    M llvm/utils/lit/tests/Inputs/test-data/dummy_format.py
    M llvm/utils/lit/tests/Inputs/test-data/lit.cfg
    M llvm/utils/lit/tests/Inputs/test_retry_attempts/lit.cfg
    M llvm/utils/lit/tests/Inputs/test_retry_attempts/test.py
    M llvm/utils/lit/tests/Inputs/testrunner-custom-parsers/lit.cfg
    M llvm/utils/lit/tests/Inputs/unittest-adaptor/lit.cfg
    M llvm/utils/lit/tests/Inputs/use-llvm-tool-required/lit.cfg
    M llvm/utils/lit/tests/Inputs/use-llvm-tool/lit.cfg
    M llvm/utils/lit/tests/Inputs/xfail-cl/a/lit.cfg
    M llvm/utils/lit/tests/Inputs/xfail-cl/b/lit.cfg
    M llvm/utils/lit/tests/Inputs/xfail-cl/lit.cfg
    M llvm/utils/lit/tests/Inputs/xunit-output/dummy_format.py
    M llvm/utils/lit/tests/Inputs/xunit-output/lit.cfg
    M llvm/utils/lit/tests/lit.cfg
    M llvm/utils/lit/tests/unit/ShUtil.py
    M llvm/utils/lit/tests/unit/TestRunner.py
    M llvm/utils/lit/tests/unparsed-requirements.py
    M llvm/utils/lldbDataFormatters.py
    M llvm/utils/llvm-gisel-cov.py
    M llvm/utils/llvm-locstats/llvm-locstats.py
    M llvm/utils/llvm-original-di-preservation.py
    M llvm/utils/merge-stats.py
    M llvm/utils/pipeline.py
    M llvm/utils/prepare-code-coverage-artifact.py
    M llvm/utils/reduce_pipeline.py
    M llvm/utils/reduce_pipeline_test/fake_opt.py
    M llvm/utils/reduce_pipeline_test/test.py
    M llvm/utils/relative_lines.py
    M llvm/utils/release/bump-version.py
    M llvm/utils/release/findRegressions-nightly.py
    M llvm/utils/release/findRegressions-simple.py
    M llvm/utils/release/github-upload-release.py
    M llvm/utils/remote-exec.py
    M llvm/utils/revert_checker.py
    M llvm/utils/revert_checker_test.py
    M llvm/utils/rsp_bisect.py
    M llvm/utils/rsp_bisect_test/test.py
    M llvm/utils/rsp_bisect_test/test_script.py
    M llvm/utils/rsp_bisect_test/test_script_inv.py
    M llvm/utils/schedcover.py
    M llvm/utils/shuffle_fuzz.py
    M llvm/utils/shuffle_select_fuzz_tester.py
    M llvm/utils/sort_includes.py
    M llvm/utils/sysroot.py
    M llvm/utils/testgen/mc-bundling-x86-gen.py
    M llvm/utils/unicode-case-fold.py
    M llvm/utils/update_analyze_test_checks.py
    M llvm/utils/update_any_test_checks.py
    M llvm/utils/update_cc_test_checks.py
    M llvm/utils/update_llc_test_checks.py
    M llvm/utils/update_mca_test_checks.py
    M llvm/utils/update_mir_test_checks.py
    M llvm/utils/update_test_checks.py
    M llvm/utils/update_test_prefix.py
    M llvm/utils/wciia.py

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

This is the first commit in a series that will reformat
all the python files in the LLVM repository.

Reformatting is done with `black`.

See more information here:

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

Reviewed By: jhenderson, JDevlieghere, MatzeB

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




More information about the All-commits mailing list