JuliaSIMD / JuliaSIMD/LoopVectorization.jl

handle loop-generating expressions

Open
#102 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
789
Forks
73
PR merge metrics
No merged PRs in 30d

Description

generating expressions could be transformed to traditional loops to make the following work
```julia
acc = 0
@avx for i in 1:10
acc += sum(i+j for j in 1:5)
end
```
or for `ntuple()`:
```julia
acc = 0
@avx for i in 1:10
acc += sum(ntuple(j->i+j, Val(5)))
end
```
Edit: I guess this is related to handling anonymous functions, but at least the generator expression is directly available in the ast.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.