[PATCH] D137495: [LoongArch] Add GHC Calling Convention
wanglei via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 23:43:35 PST 2022
wangleiat added a comment.
In D137495#3911248 <https://reviews.llvm.org/D137495#3911248>, @lrzlin wrote:
> I have consulted the RISC-V codemodel here, which `CodeModel::Small` is represented by `addi (lui %hi(sym)) %lo(sym)`, using for accessing the first 2GiB of address space, I think it could be implemented in LoongArch also, or LoongArch have a different codemodel here?
RISC-V only distinguishes when `relocation-model=static` is specified, but it is not required on LoongArch. On LoongArch, regardless of `relocation-model=everything`, it is sufficient to use pc-relative instructions.
CHANGES SINCE LAST ACTION
More information about the llvm-commits