qir-alliance / qat

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

Investigate various function and parameter attributes #130

Open troelsfr opened 2 years ago

troelsfr commented 2 years ago

LLVM offers a number of attributes for functions and/or their parameters. We should investigate which of these can be used to simplify the IR. For instance, it is expected that readonly and byval will help LLVM optimise memory management. The open question to be answered is whether, QAT can inject these for known standard functions to improve performance.