llvmlite icon indicating copy to clipboard operation
llvmlite copied to clipboard

Is there anyway to parse .ll or .bc file into class <llvmlite.ir.Module>?

Open IWannaToBeHappy opened this issue 1 year ago • 1 comments

I noticed that this requirement was mentioned in 2018 and 2021. I would like to know whether the current version of llvmlite supports parsing .ll files into IR modules. It appears that llvmlite.binding cannot modify module members like ir.Builder can, so it does not meet my requirements.

IWannaToBeHappy avatar Dec 26 '24 04:12 IWannaToBeHappy

It's still not possible, and it would be a large effort to implement - for example, I note that the LLVM LLParser.cpp file is approximately 10,000 lines of handcrafted parser.

gmarkall avatar Dec 30 '24 17:12 gmarkall