How do I add custom data load and write back through TIR?

Thank you very much for your answer, I think I get it.