Skip to content

Commit

Permalink
Further black formatter fixes
Browse files Browse the repository at this point in the history
Now with changed formatter version: "black[colorama]"==24.1.1
  • Loading branch information
TinaAMD committed Jan 29, 2024
1 parent 18123ba commit 2be7fbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/analyze-simd.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ def define_arch_op_names(arch):
elif arch == "x86": # generic x86
op_name["vload"] = "(v?mov[au]p[sd]|mov(h|hl|lh|l)ps)"
op_name["vload-splat"] = "nothingtosee"
op_name[
"vstore"
] = "v?movntp[sd]" # non temporal... other store may be just mov too
op_name["vstore"] = (
"v?movntp[sd]" # non temporal... other store may be just mov too
)
# perm | merge | shift left | replicate | permute | gen mask | gen mask
op_name["vshuffle"] = "(v?shufp[sd]|v?unpck[lh]p)"
op_name["vfma"] = "v?fmadd[123]+p[ds]"
op_name["vmul"] = "v?mulp[ds]"
op_name["vdiv"] = "v?divp[sd]"
# add | sub| max | min | compare | and
op_name[
"vadd"
] = "(v?addp[ds]|v?subp[ds]|v?maxp[ds]|v?min[dp]|cmp..p[sd]|andp|andnp|orp|xorp|pand|pandn|por|pxor)"
op_name["vadd"] = (
"(v?addp[ds]|v?subp[ds]|v?maxp[ds]|v?min[dp]|cmp..p[sd]|andp|andnp|orp|xorp|pand|pandn|por|pxor)"
)
op_name["load"] = "mov"
op_name["store"] = "mov"
else:
Expand Down
1 change: 1 addition & 0 deletions utils/pre-onnx-mlir.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
To display a model, add.onnx, use command:
python pre-onnx-mlir add.onnx -v --no_convert
"""

import onnx
import argparse
from onnx import version_converter, helper
Expand Down

0 comments on commit 2be7fbb

Please sign in to comment.