near data processing to an LLVM backend

I want to extend the LLVM backend to add near data processing instruction, how could I do it? is there a tutorial for this purpose or something? if there is a backend with this feature please let me know.
for further detail, I have an LLVM IR that I want to select some of my nodes to process near memory.

respectfully yours.