google / google/xls

Add support for Enumerate Operator in IR conversion

Open
#164 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.