CSR support for embedded RISC-V target -- T-Head E907

How can I get mainline LLVM to recognize vendor CSRs like “MHCR” used by the T-Head cores?