Skip to content

Ask Copilot for the names of generated global variables #25

Open
@robdockins

Description

@robdockins

do -- TODO, should get these from somewhere inside copilot instead of building these names directly
let idxName = "s" ++ show nm ++ "_idx"
let bufName = "s" ++ show nm
let buflen = genericLength vs :: Integer

As alluded to in the above comment, we are currently building the names of stream variables in the generated code from hidden, internal knowledge of the Copilot code generator. It would be better and more robust to have the Copilot library itself tell us this information instead. Currently no API exists for obtaining this information, so we will probably need to design something and open an upstream PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions