diff options
author | Tobias Hieta <tobias@hieta.se> | 2023-05-17 16:53:39 +0200 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2023-05-26 08:05:40 +0200 |
commit | f9008e6366c2496b1ca1785b891d5578174ad63e (patch) | |
tree | b017d736819c6a006cf15aed1e7f425c79ce575b /mlir/test/Examples | |
parent | 9652eba3cfe004cce533445b7e8aedf96451cc6c (diff) | |
download | llvm-f9008e6366c2496b1ca1785b891d5578174ad63e.zip llvm-f9008e6366c2496b1ca1785b891d5578174ad63e.tar.gz llvm-f9008e6366c2496b1ca1785b891d5578174ad63e.tar.bz2 |
[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
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r-- | mlir/test/Examples/Toy/Ch6/lit.local.cfg | 4 | ||||
-rw-r--r-- | mlir/test/Examples/Toy/Ch7/lit.local.cfg | 4 | ||||
-rw-r--r-- | mlir/test/Examples/lit.local.cfg | 2 | ||||
-rw-r--r-- | mlir/test/Examples/standalone/lit.local.cfg | 9 |
4 files changed, 7 insertions, 12 deletions
diff --git a/mlir/test/Examples/Toy/Ch6/lit.local.cfg b/mlir/test/Examples/Toy/Ch6/lit.local.cfg index c5aeb13..0d9aa10 100644 --- a/mlir/test/Examples/Toy/Ch6/lit.local.cfg +++ b/mlir/test/Examples/Toy/Ch6/lit.local.cfg @@ -1,5 +1,3 @@ # Requires native execution. -if 'host-supports-jit' not in config.available_features: +if "host-supports-jit" not in config.available_features: config.unsupported = True - - diff --git a/mlir/test/Examples/Toy/Ch7/lit.local.cfg b/mlir/test/Examples/Toy/Ch7/lit.local.cfg index c5aeb13..0d9aa10 100644 --- a/mlir/test/Examples/Toy/Ch7/lit.local.cfg +++ b/mlir/test/Examples/Toy/Ch7/lit.local.cfg @@ -1,5 +1,3 @@ # Requires native execution. -if 'host-supports-jit' not in config.available_features: +if "host-supports-jit" not in config.available_features: config.unsupported = True - - diff --git a/mlir/test/Examples/lit.local.cfg b/mlir/test/Examples/lit.local.cfg index 97db322..1a51296 100644 --- a/mlir/test/Examples/lit.local.cfg +++ b/mlir/test/Examples/lit.local.cfg @@ -1,2 +1,2 @@ if not config.build_examples: - config.unsupported = True + config.unsupported = True diff --git a/mlir/test/Examples/standalone/lit.local.cfg b/mlir/test/Examples/standalone/lit.local.cfg index cf7c8ff..fe8397c 100644 --- a/mlir/test/Examples/standalone/lit.local.cfg +++ b/mlir/test/Examples/standalone/lit.local.cfg @@ -1,13 +1,12 @@ # Disable with sanitizers for now, this require some more setup apparently. -for san in ['asan', 'msan', 'ubsan']: - if (san in config.available_features): - config.unsupported = True +for san in ["asan", "msan", "ubsan"]: + if san in config.available_features: + config.unsupported = True config.substitutions.append(("%cmake_exe", config.host_cmake)) config.substitutions.append(("%cmake_generator", config.host_cmake_generator)) config.substitutions.append(("%host_cxx", config.host_cxx)) config.substitutions.append(("%host_cc", config.host_cc)) config.substitutions.append(("%enable_libcxx", config.enable_libcxx)) -config.substitutions.append( - ("%mlir_cmake_dir", config.mlir_cmake_dir)) +config.substitutions.append(("%mlir_cmake_dir", config.mlir_cmake_dir)) config.substitutions.append(("%llvm_use_linker", config.llvm_use_linker)) |