aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon/gen_op_attribs.py
diff options
context:
space:
mode:
authorMarco Liebel <quic_mliebel@quicinc.com>2023-03-20 02:25:33 -0700
committerTaylor Simpson <tsimpson@quicinc.com>2023-04-21 09:32:52 -0700
commit5bb322e2a8ff001da60bda65459bde6e242cbe3c (patch)
tree021a71c3eb7acf5b4c3473fbe955cb9193d3552d /target/hexagon/gen_op_attribs.py
parentcd6c4edff69ce6ba0aa8e6ed702f43a042a456bc (diff)
Use black code style for python scripts
Signed-off-by: Marco Liebel <quic_mliebel@quicinc.com> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Acked-by: Taylor Simpson <tsimpson@quicinc.com> Tested-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20230320092533.2859433-3-quic_mliebel@quicinc.com>
Diffstat (limited to 'target/hexagon/gen_op_attribs.py')
-rwxr-xr-xtarget/hexagon/gen_op_attribs.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/target/hexagon/gen_op_attribs.py b/target/hexagon/gen_op_attribs.py
index cf7b7f7656..41074b8573 100755
--- a/target/hexagon/gen_op_attribs.py
+++ b/target/hexagon/gen_op_attribs.py
@@ -22,6 +22,7 @@ import re
import string
import hex_common
+
def main():
hex_common.read_semantics_file(sys.argv[1])
hex_common.read_attribs_file(sys.argv[2])
@@ -30,10 +31,13 @@ def main():
##
## Generate all the attributes associated with each instruction
##
- with open(sys.argv[3], 'w') as f:
+ with open(sys.argv[3], "w") as f:
for tag in hex_common.tags:
- f.write(f'OP_ATTRIB({tag},ATTRIBS('
- f'{",".join(sorted(hex_common.attribdict[tag]))}))\n')
+ f.write(
+ f"OP_ATTRIB({tag},ATTRIBS("
+ f'{",".join(sorted(hex_common.attribdict[tag]))}))\n'
+ )
+
if __name__ == "__main__":
main()