qir-alliance / pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
https://qir-alliance.github.io/pyqir
MIT License
54 stars 24 forks source link

Update use of deprecated LLVMParseBitcodeInContext #217

Open bamarsha opened 1 year ago

bamarsha commented 1 year ago

In pyqir::module::Module::from_bitcode (#216), we call LLVMParseBitcodeInContext, which is deprecated. There is a newer LLVMParseBitcodeInContext2 but its error handling works differently, so we'll need to figure out how to prevent the program from aborting and get the error string.