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