Skip to content

Commit dea04ca

Browse files
clang-format darker
1 parent 6eea017 commit dea04ca

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

llvm/test/CodeGen/NVPTX/fence.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from itertools import product
66

77
fence_func = Template(
8-
"""
8+
"""
99
define void @fence_${ordering}_${scope}() {
1010
fence syncscope(\"${scope}\") ${ordering}
1111
ret void
@@ -14,7 +14,7 @@
1414
)
1515

1616
run_statement = Template(
17-
"""
17+
"""
1818
; ${run}: llc < %s -march=nvptx64 -mcpu=sm_${sm} -mattr=+ptx${ptx} | FileCheck %s --check-prefix=SM${sm}
1919
; ${run}: %if ptxas %{ llc < %s -march=nvptx -mcpu=sm_${sm} -mattr=+ptx${ptx} | %ptxas-verfy %}
2020
"""
@@ -29,10 +29,17 @@
2929

3030
if __name__ == "__main__":
3131
for sm, ptx in TESTS:
32-
with open ("fence-sm{}.ll".format(sm), "w") as fp:
33-
print(run_statement.substitute(run = "RUN", sm = sm, ptx = ptx), file = fp)
32+
with open("fence-sm{}.ll".format(sm), "w") as fp:
33+
print(run_statement.substitute(run="RUN", sm=sm, ptx=ptx), file=fp)
3434
for ordering, scope in product(ORDERINGS, SCOPES):
3535
if scope == "cluster" and (sm < 90 or ptx < 78):
36-
print("; .cluster scope unsupported on SM = {} PTX = {}".format(sm, ptx), file = fp)
36+
print(
37+
"; .cluster scope unsupported on SM = {} PTX = {}".format(
38+
sm, ptx
39+
),
40+
file=fp,
41+
)
3742
else:
38-
print(fence_func.substitute(scope = scope, ordering = ordering), file = fp)
43+
print(
44+
fence_func.substitute(scope=scope, ordering=ordering), file=fp
45+
)

0 commit comments

Comments
 (0)