Are there best practices for building an end-to-end compiler for DSA?

I have a DSA NPU and its instruction set. I want to build end-2-end compiler based milr for this NPU. But I can find some reference. Can anyone give me some help