Add support for Enumerate Operator in IR conversion
Open
dslx
enhancement
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 283
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 135
Description
When using the enumerate operator, the IR conversion tool throws an error.
Test case:
_fn f(input: u32[4]) -> u32 {
let result =
for ((i, elem), accum): ((u32, u32), u32) in **enumerate**(input) {
u32:0
}(u32:0);
u32:0
}_
Error:
For-loop is of an unsupported form for IR conversion; only a 'range(0, const)' call is supported, found non-range callee.
To execute: _ir_converter_main **\**_
Contributor guide
Assessment
This issue has not been assessed yet.