infinite number of virtual registers

Hello.
I am making a backend for a virtual machine.
But it does assume infinite number of virtual registers like those of usual machines.
In this case, how can I implement this?
Would you mind telling me some tips?
Thank you so much.

Seung Jae Lee