Summary
replace "params" slot in nodes of intermediate representation
Metadata
- Id: ec08775964bc91cedae8a2198e2f47adf6aa6730
- Trac id: 1642
- Type: defect
- Reporter: felix
- Owner:
- Cc: sjamaan
- Status: closed
- Component: compiler
- Estimated difficulty: hard
- Resolution: wontfix
- Priority: not urgent at all
- Milestone: someday
- Version: 5.1.0
- Changetime: 2023-11-06 23:23:03 UTC
- Created: 2019-08-07 20:33:38 UTC
- Keywords:
Description
Currently the nodes in the intermediate representation collect various information in a list ("node params"). This is error-prone and probably inefficient. It should be replaced by something safer. Since there are quite a number of node types, defining record for each and every node will probably result in code-bloat, so I suggest either a vector or some syntax-only lightweight quasi-structure facility.
The params will be printed when intermediate stage results are shown via the `-debug` option, so a readable representation (or something that can be converted to a readable representation) is desirable.