Machine encoding at lowering stage

Hello,
How to get the machine encoding of an instruction at instruction lowering stage?

Please help

Thank you
Regards