Is there a way to keep the LLVM IR metadata till Machine IR?

I want to generate a pragma before the machine load instructions that contains information based on the Metadata (attached to load instruction in LLVM IR).

From what I have read, neither SelectionDAG nor MachineInstr has a way to store Metadata. Are there any alternatives to achieve the same?

Thanks in advance!!

Here is a similar discussion:

Thanks @tschuett, but changing all load instructions to a function call would be infeasible for me.