Skip to content

Commit fd93ff6

Browse files
committed
Added naive untested MappedStridedPtr support. Need to come up with away to allow optimizing loops with them appropriately.
1 parent 1fb353d commit fd93ff6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reconstruct_loopset.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ function add_mref!(ls::LoopSet, ar::ArrayReferenceMeta, i::Int, ::Type{SparseStr
8181
pushvarg!(ls, ar, i)
8282
pushfirst!(getindices(ar), Symbol("##DISCONTIGUOUSSUBARRAY##"))
8383
end
84+
function add_mref!(ls::LoopSet, ar::ArrayReferenceMeta, i::Int, ::Type{MappedStridedPointer{F,T,P}}) where {F,T,P}
85+
add_mref!(ls, ar, i, P)
86+
end
8487
function add_mref!(ls::LoopSet, ar::ArrayReferenceMeta, i::Int, ::Type{LoopValue})
8588
pushpreamble!(ls, Expr(:(=), vptr(ar), LoopValue()))
8689
end

0 commit comments

Comments
 (0)