[Lldb-commits] [lldb] Lower std::string's alignment requirement from 16 to 8. (PR #68807)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 12 10:15:50 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 05181a849b4c1ec14fdd6d667285d6f5ad34a5a2..ffc0f0ffa4164f9b426e4b30897c86577e2aa867 mlir/python/mlir/dialects/_affine_ops_ext.py mlir/python/mlir/dialects/affine.py mlir/test/python/dialects/affine.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- python/mlir/dialects/_affine_ops_ext.py 2023-10-12 17:02:38.000000 +0000
+++ python/mlir/dialects/_affine_ops_ext.py 2023-10-12 17:15:14.217067 +0000
@@ -17,40 +17,42 @@
def __init__(
self,
value: Union[Operation, OpView, Value],
memref: Union[Operation, OpView, Value],
- map: AffineMap=None,
+ map: AffineMap = None,
*,
map_operands=None,
loc=None,
ip=None
):
"""Creates an affine store operation.
- `value`: the value to store into the memref.
- `memref`: the buffer to store into.
- - `map`: the affine map that maps the map_operands to the index of the
+ - `map`: the affine map that maps the map_operands to the index of the
memref.
- - `map_operands`: the list of arguments to substitute the dimensions,
+ - `map_operands`: the list of arguments to substitute the dimensions,
then symbols in the affine map, in increasing order.
"""
map = map if map is not None else []
map_operands = map_operands if map_operands is not None else []
operands = [
_get_op_result_or_value(value),
_get_op_result_or_value(memref),
- *[_get_op_result_or_value(op) for op in map_operands]
+ *[_get_op_result_or_value(op) for op in map_operands],
]
results = []
attributes = {"map": AffineMapAttr.get(map)}
regions = None
_ods_successors = None
- super().__init__(self.build_generic(
- attributes=attributes,
- results=results,
- operands=operands,
- successors=_ods_successors,
- regions=regions,
- loc=loc,
- ip=ip
- ))
+ super().__init__(
+ self.build_generic(
+ attributes=attributes,
+ results=results,
+ operands=operands,
+ successors=_ods_successors,
+ regions=regions,
+ loc=loc,
+ ip=ip,
+ )
+ )
--- python/mlir/dialects/affine.py 2023-10-12 17:02:38.000000 +0000
+++ python/mlir/dialects/affine.py 2023-10-12 17:15:14.227949 +0000
@@ -1,5 +1,5 @@
-# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-# See https://llvm.org/LICENSE.txt for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
from ._affine_ops_gen import *
``````````
</details>
https://github.com/llvm/llvm-project/pull/68807
More information about the lldb-commits
mailing list