google / google/xls

Add record types to IR

Open
#195 2 comments 0 reactions 0 assignees View on GitHub
ir
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

A record type is a tuple with named fields. I'm guessing it will be possible to mostly just treat records as special tuples. Tupleindex instruction would work the same. Might need a new instruction kRecord which is analogous to kTuple but with field names. Similarly structured record types and tuple types would not be compatible.

The motivation is to enable richer types (structs) in the emitted SystemVerilog.

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.