How to approach adding a backend

See whether this answer by Chris answers your question Supporting New Accelerators in Mojo: The Case of the AMD MI300X - #2 by clattner