MachineIR is designed for code generation, not for general assembly
representation. MIR is even not necessarily able to represent all
assembly instructions that a target's hardware supports. The
disassembler produces MCInsts, and if you wanted to go from there back
to MachineIR, you'd have to write your own target-specific code to do
so.
Cheers,
Nicolai
>
> Best Regards,
> Lele Ma
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm...@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
--
Lerne, wie die Welt wirklich ist,
aber vergiss niemals, wie sie sein sollte.
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
On Nov 27, 2019, at 5:51 AM, Lele Ma <lele...@gmail.com> wrote: