1. A method, comprising: compiling source code to include references to a virtual register file for data subject to a logical operation; and dereferencing the references at runtime to obtain physical addresses of memory device elements according to the virtual register file, wherein the logical operation is to be performed in a memory device on data stored in the memory device elements.