How to place a value on the fixed position on the stack?

I want to write a MachineFunctionPass that places a value on top of the stack (basically, I just need to place FP and LR registers).
I don’t have any experience in MachineFunctionPasses, so I don’t really know what API should I use to do this.

See MachineFrameInfo::CreateFixedObject