Skip to content

Commit 817f118

Browse files
committed
format 3
1 parent 9715099 commit 817f118

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

src/mlir/Dialects/Nvvm.jl

+22-24
Original file line numberDiff line numberDiff line change
@@ -294,18 +294,15 @@ function barrier(
294294
attributes = NamedAttribute[]
295295
!isnothing(barrierId) && push!(operands, barrierId)
296296
!isnothing(numberOfThreads) && push!(operands, numberOfThreads)
297-
push!(
298-
attributes,
299-
operandsegmentsizes([
300-
if (barrierId == nothing)
301-
0
302-
elseif 1(numberOfThreads == nothing)
303-
0
304-
else
305-
1
306-
end
307-
]),
308-
)
297+
push!(attributes, operandsegmentsizes([
298+
if (barrierId == nothing)
299+
0
300+
elseif 1(numberOfThreads == nothing)
301+
0
302+
else
303+
1
304+
end,
305+
]))
309306

310307
return create_operation(
311308
"nvvm.barrier",
@@ -972,18 +969,19 @@ function cp_async_bulk_shared_cluster_global(
972969
attributes = NamedAttribute[]
973970
!isnothing(multicastMask) && push!(operands, multicastMask)
974971
!isnothing(l2CacheHint) && push!(operands, l2CacheHint)
975-
push!(
976-
attributes,
977-
operandsegmentsizes([
978-
1, 1, 1, 1, if (multicastMask == nothing)
979-
0
980-
elseif 1(l2CacheHint == nothing)
981-
0
982-
else
983-
1
984-
end
985-
]),
986-
)
972+
push!(attributes, operandsegmentsizes([
973+
1,
974+
1,
975+
1,
976+
1,
977+
if (multicastMask == nothing)
978+
0
979+
elseif 1(l2CacheHint == nothing)
980+
0
981+
else
982+
1
983+
end,
984+
]))
987985

988986
return create_operation(
989987
"nvvm.cp.async.bulk.shared.cluster.global",

0 commit comments

Comments
 (0)