Is there an option mapping generated assembly to IR?

As mentioned in the title, some info stored in generated object file in the format of dwarf or likewise.

Once you have the final object file, all information about IR is gone. I believe the Machine IR (MIR) is the last stage that has any connection to the LLVM IR.