microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
682 stars 170 forks source link

Changing the representation of stack allocated arrays to allow for array valued command line arguments #1591

Closed swernli closed 1 year ago

swernli commented 1 year ago

This PR changes the representation of stack allocated arrays. The new representation allows to retroactively define the correct array length as part of a subsequent compilation step. Supersedes #1563.

swernli commented 1 year ago

Leaving as draft for now... while I expect this to pass the tests, it still has some issues that need to be addressed in terms of extra load and store instructions that are added to the output QIR that should not be present.

swernli commented 1 year ago

/azp run

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 3 pipeline(s).