Implement LoongArch64 LLVM backend support
Add support for the LoongArch64 architecture for the LLVM code generator.
LoongArch Docs: LoongArch Documentation
LLVM patch: [LoongArch] Add GHC Calling Convention
NOTE: LLVM's LoongArch support haven't being released by LLVM version 15 yet, It may release at LLVM version 16.
Due to #21936 (closed), to get a buildable GHC, both ./llvm-passes
needs to be modified.
Also, in-tree gmp-tarballs of ghc-bignum and libffi-tarballs also needs to updated to lastest version to provide the LoongArch support. (update the config.guess
and config.sub
script is enough)