Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask Copilot for the names of generated global variables #25

Open
robdockins opened this issue Jan 26, 2022 · 0 comments
Open

Ask Copilot for the names of generated global variables #25

robdockins opened this issue Jan 26, 2022 · 0 comments
Labels

Comments

@robdockins
Copy link
Contributor

robdockins commented Jan 26, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants