Skip to content

Commit d6e9bcb

Browse files
committed
now's the last time!
1 parent bd6e79e commit d6e9bcb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

examples/brutus.jl

+10-8
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ const intrinsics_to_mlir = Dict([
4848
arg = only(args)
4949
mT = IR.type(arg)
5050
T = IR.julia_type(mT)
51-
ones = IR.result(push!(
52-
block, arith.constant(; value=typemax(UInt64) % T, result=mT, location)
53-
))
51+
ones = IR.result(
52+
push!(block, arith.constant(; value=typemax(UInt64) % T, result=mT, location)),
53+
)
5454
return push!(block, arith.xori(arg, ones; location))
5555
end,
5656
])
@@ -251,11 +251,13 @@ macro code_mlir(call)
251251
@assert Meta.isexpr(call, :call) "only calls are supported"
252252

253253
f = esc(first(call.args))
254-
args = esc(Expr(
255-
:curly,
256-
Tuple,
257-
map(arg -> :($(Core.Typeof)($arg)), call.args[(begin + 1):end])...,
258-
))
254+
args = esc(
255+
Expr(
256+
:curly,
257+
Tuple,
258+
map(arg -> :($(Core.Typeof)($arg)), call.args[(begin + 1):end])...,
259+
),
260+
)
259261

260262
quote
261263
code_mlir($f, $args)

0 commit comments

Comments
 (0)