qir-alliance / qat

QIR compiler tools and optimization passes for targeting QIR to different hardware backends
https://qir-alliance.github.io/qat/
MIT License
26 stars 14 forks source link

Add SROA pass #152

Closed swernli closed 1 year ago

swernli commented 1 year ago

This change adds the Scalar Replace of Aggregates pass to QAT to ensure hard coded arrays are flattened into their respective values when possible (see https://www.llvm.org/docs/Passes.html#sroa-scalar-replacement-of-aggregates).