llvmlite
llvmlite copied to clipboard
Convert from `llvmlite.binding.ModuleRef` to `llvmlite.ir.Module`
Is it possible to convert llvmlite.bingding.ModuleRef
parsed from bitcode to llvmlite.ir.Module
? So that I can check whether instruction is Load
by isinstance(insn, LoadInstr)
.
What I need is detailed parsing of existing llvm bitcode, instead of creating new bitcode files.
Thank.
There's no support for parsing existing bitcode at present. I'll label this as a feature request, though I note that it's a non-trivial amount of work to implement.