[LLVMdev] LLVM Instr from MachineInstr

ankur deshwal a.s.deshwal at gmail.com
Fri Jul 1 01:06:58 PDT 2011


Is there any way to get a pointer to the LLVM Instr from which a
particular MachineInstr is generated ?

Although I understand it goes through many optimization after a LLVM
instruction is converted to SDAG node, so maintaining such a mapping
will be hard. Still is the mapping stored some where which can give
some sane results at least in case of -O0?

Thanks and regards,

More information about the llvm-dev mailing list