https://github.com/tblah approved this pull request. The code changes look good to me. I am not at all familiar with LoongArch64 so it would be best if somebody else reviews that this implements the ABI correctly. https://github.com/llvm/llvm-project/pull/117108