@@ -76,7 +76,7 @@ pushexpr!(ex::Expr, x::Integer) =
7676pushexpr! (ex:: Expr , @nospecialize (x:: StaticInt )) = (push! (ex. args, x); nothing )
7777MaybeKnown (x:: Integer ) =
7878 MaybeKnown (convert (Int, x), Symbol (" ##UNDEFINED##" ), true )
79- MaybeKnown (x:: Integer , default :: Int ) = MaybeKnown (x)
79+ MaybeKnown (x:: Integer , :: Int ) = MaybeKnown (x)
8080MaybeKnown (x:: Symbol , default:: Int ) = MaybeKnown (default, x, false )
8181
8282isknown (mk:: MaybeKnown ) = getfield (mk, :known )
@@ -158,7 +158,7 @@ function arithmeticexpr(
158158 return _arithmeticexpr (f, a, b)
159159 end
160160end
161- arithmeticexpr (op , f, a, b) = _arithmeticexpr (f, a, b)
161+ arithmeticexpr (_ , f, a, b) = _arithmeticexpr (f, a, b)
162162function _arithmeticexpr (f, a, b)
163163 ex = Expr (:call , lv (f))
164164 pushexpr! (ex, a)
@@ -664,7 +664,8 @@ This is used so that identical loops will create identical `_turbo_!` calls in t
664664"""
665665gensym! (ls:: LoopSet , s) = Symbol (" ###$(s) ###$(ls. symcounter += 1 ) ###" )
666666
667- fill_children! (ls:: LoopSet ) = for op ∈ operations (ls)
667+ fill_children! (ls:: LoopSet ) =
668+ for op ∈ operations (ls)
668669 empty! (children (op))
669670 for opp ∈ parents (op)
670671 @assert children (opp) != = NOPARENTS
@@ -688,7 +689,7 @@ function rejectinterleave!(
688689 op. rejectinterleave = true
689690 else
690691 omop = ls. omop
691- batchid, opind = omop. batchedcollectionmap[identifier (op)]
692+ batchid, _ = omop. batchedcollectionmap[identifier (op)]
692693 op. rejectinterleave =
693694 ((batchid == 0 ) || (! isvectorized (op))) ||
694695 rejectinterleave (ls, op, vloop, omop. batchedcollections[batchid])
@@ -984,7 +985,7 @@ function add_block!(ls::LoopSet, ex::Expr, elementbytes::Int, position::Int)
984985 for x ∈ ex. args
985986 x isa Expr || continue # be that general?
986987 x. head === :inbounds && continue
987- push ! (ls, x, elementbytes, position)
988+ _push ! (ls, x, elementbytes, position)
988989 end
989990end
990991function makestatic! (expr)
@@ -1006,7 +1007,7 @@ function makestatic!(expr)
10061007 expr
10071008end
10081009add_loop_bound! (
1009- ls :: LoopSet ,
1010+ :: LoopSet ,
10101011 itersym:: Symbol ,
10111012 bound:: Union{Integer,Symbol} ,
10121013 upper:: Bool ,
@@ -1096,7 +1097,7 @@ end
10961097 r:: OptionallyStaticRange ,
10971098 :: StaticInt{S}
10981099) where {S}
1099- ifelse (ArrayInterface . gt ( StaticInt {S} (), Zero ()), r, _reverse (r) )
1100+ S > 0 ? r : _reverse (r)
11001101end
11011102@inline canonicalize_range (r:: OptionallyStaticRange , s:: Integer ) =
11021103 s > 0 ? r : _reverse (r)
@@ -1378,7 +1379,7 @@ function add_loop!(ls::LoopSet, q::Expr, elementbytes::Int)
13781379 if body. head === :block
13791380 add_block! (ls, body, elementbytes, position)
13801381 else
1381- push ! (ls, q, elementbytes, position)
1382+ _push ! (ls, q, elementbytes, position)
13821383 end
13831384end
13841385function add_loop! (ls:: LoopSet , loop:: Loop , itersym:: Symbol = loop. itersymbol)
@@ -1409,7 +1410,7 @@ function instruction!(ls::LoopSet, x::Expr)
14091410 pushprepreamble! (ls, Expr (:(= ), instr, x))
14101411 Instruction (Symbol (" " ), instr)
14111412end
1412- instruction! (ls :: LoopSet , x:: Symbol ) = instruction (x)
1413+ instruction! (:: LoopSet , x:: Symbol ) = instruction (x)
14131414function instruction! (ls:: LoopSet , f:: F ) where {F<: Function }
14141415 get (FUNCTIONSYMBOLS, F) do
14151416 instr = gensym! (ls, " f" )
@@ -1819,14 +1820,14 @@ function push_op!(
18191820 add_compute! (ls, LHS, :identity , [RHS], elementbytes)
18201821 end
18211822 else
1822- push ! (ls, localbody, elementbytes, position, mpref)
1823+ _push ! (ls, localbody, elementbytes, position, mpref)
18231824 end
18241825 else
18251826 throw (LoopError (" Don't know how to handle expression." , ex))
18261827 end
18271828end
18281829
1829- function Base . push ! (
1830+ function _push ! (
18301831 ls:: LoopSet ,
18311832 ex:: Expr ,
18321833 elementbytes:: Int ,
0 commit comments