@@ -76,7 +76,7 @@ pushexpr!(ex::Expr, x::Integer) =
76
76
pushexpr! (ex:: Expr , @nospecialize (x:: StaticInt )) = (push! (ex. args, x); nothing )
77
77
MaybeKnown (x:: Integer ) =
78
78
MaybeKnown (convert (Int, x), Symbol (" ##UNDEFINED##" ), true )
79
- MaybeKnown (x:: Integer , default :: Int ) = MaybeKnown (x)
79
+ MaybeKnown (x:: Integer , :: Int ) = MaybeKnown (x)
80
80
MaybeKnown (x:: Symbol , default:: Int ) = MaybeKnown (default, x, false )
81
81
82
82
isknown (mk:: MaybeKnown ) = getfield (mk, :known )
@@ -158,7 +158,7 @@ function arithmeticexpr(
158
158
return _arithmeticexpr (f, a, b)
159
159
end
160
160
end
161
- arithmeticexpr (op , f, a, b) = _arithmeticexpr (f, a, b)
161
+ arithmeticexpr (_ , f, a, b) = _arithmeticexpr (f, a, b)
162
162
function _arithmeticexpr (f, a, b)
163
163
ex = Expr (:call , lv (f))
164
164
pushexpr! (ex, a)
@@ -664,7 +664,8 @@ This is used so that identical loops will create identical `_turbo_!` calls in t
664
664
"""
665
665
gensym! (ls:: LoopSet , s) = Symbol (" ###$(s) ###$(ls. symcounter += 1 ) ###" )
666
666
667
- fill_children! (ls:: LoopSet ) = for op ∈ operations (ls)
667
+ fill_children! (ls:: LoopSet ) =
668
+ for op ∈ operations (ls)
668
669
empty! (children (op))
669
670
for opp ∈ parents (op)
670
671
@assert children (opp) != = NOPARENTS
@@ -688,7 +689,7 @@ function rejectinterleave!(
688
689
op. rejectinterleave = true
689
690
else
690
691
omop = ls. omop
691
- batchid, opind = omop. batchedcollectionmap[identifier (op)]
692
+ batchid, _ = omop. batchedcollectionmap[identifier (op)]
692
693
op. rejectinterleave =
693
694
((batchid == 0 ) || (! isvectorized (op))) ||
694
695
rejectinterleave (ls, op, vloop, omop. batchedcollections[batchid])
@@ -984,7 +985,7 @@ function add_block!(ls::LoopSet, ex::Expr, elementbytes::Int, position::Int)
984
985
for x ∈ ex. args
985
986
x isa Expr || continue # be that general?
986
987
x. head === :inbounds && continue
987
- push ! (ls, x, elementbytes, position)
988
+ _push ! (ls, x, elementbytes, position)
988
989
end
989
990
end
990
991
function makestatic! (expr)
@@ -1006,7 +1007,7 @@ function makestatic!(expr)
1006
1007
expr
1007
1008
end
1008
1009
add_loop_bound! (
1009
- ls :: LoopSet ,
1010
+ :: LoopSet ,
1010
1011
itersym:: Symbol ,
1011
1012
bound:: Union{Integer,Symbol} ,
1012
1013
upper:: Bool ,
@@ -1096,7 +1097,7 @@ end
1096
1097
r:: OptionallyStaticRange ,
1097
1098
:: StaticInt{S}
1098
1099
) where {S}
1099
- ifelse (ArrayInterface . gt ( StaticInt {S} (), Zero ()), r, _reverse (r) )
1100
+ S > 0 ? r : _reverse (r)
1100
1101
end
1101
1102
@inline canonicalize_range (r:: OptionallyStaticRange , s:: Integer ) =
1102
1103
s > 0 ? r : _reverse (r)
@@ -1378,7 +1379,7 @@ function add_loop!(ls::LoopSet, q::Expr, elementbytes::Int)
1378
1379
if body. head === :block
1379
1380
add_block! (ls, body, elementbytes, position)
1380
1381
else
1381
- push ! (ls, q, elementbytes, position)
1382
+ _push ! (ls, q, elementbytes, position)
1382
1383
end
1383
1384
end
1384
1385
function add_loop! (ls:: LoopSet , loop:: Loop , itersym:: Symbol = loop. itersymbol)
@@ -1409,7 +1410,7 @@ function instruction!(ls::LoopSet, x::Expr)
1409
1410
pushprepreamble! (ls, Expr (:(= ), instr, x))
1410
1411
Instruction (Symbol (" " ), instr)
1411
1412
end
1412
- instruction! (ls :: LoopSet , x:: Symbol ) = instruction (x)
1413
+ instruction! (:: LoopSet , x:: Symbol ) = instruction (x)
1413
1414
function instruction! (ls:: LoopSet , f:: F ) where {F<: Function }
1414
1415
get (FUNCTIONSYMBOLS, F) do
1415
1416
instr = gensym! (ls, " f" )
@@ -1819,14 +1820,14 @@ function push_op!(
1819
1820
add_compute! (ls, LHS, :identity , [RHS], elementbytes)
1820
1821
end
1821
1822
else
1822
- push ! (ls, localbody, elementbytes, position, mpref)
1823
+ _push ! (ls, localbody, elementbytes, position, mpref)
1823
1824
end
1824
1825
else
1825
1826
throw (LoopError (" Don't know how to handle expression." , ex))
1826
1827
end
1827
1828
end
1828
1829
1829
- function Base . push ! (
1830
+ function _push ! (
1830
1831
ls:: LoopSet ,
1831
1832
ex:: Expr ,
1832
1833
elementbytes:: Int ,
0 commit comments