llvmlite icon indicating copy to clipboard operation
llvmlite copied to clipboard

Convert from `llvmlite.binding.ModuleRef` to `llvmlite.ir.Module`

Open xrkk opened this issue 3 years ago • 1 comments

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.

xrkk avatar Jul 16 '21 05:07 xrkk

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.

gmarkall avatar Jul 28 '21 13:07 gmarkall