[PATCH] D137495: [LoongArch] Add GHC Calling Convention

wanglei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 6 17:42:48 PST 2022


wangleiat added a comment.

@lrzlin

I don't quite understand what you mean by` CodeModel=Small` not implemented? The default `CodeModel` we currently define is `Small`, which is the same as gcc's `mcmodel=normal`. `Medium` only uses `pcalau12i+jirl` to increase the jumping capability relative to pc when the function is called, and the others remain unchanged, which is also the same as gcc's `mcmodel=medium`, currently we only provide these two codemodels(D137394 <https://reviews.llvm.org/D137394> for `Medium`), gcc also has a `mcmodel=extreme`(support 64bit addressing capability). For this(extreme), I haven't figured out which `CodeModel` corresponds to llvm, maybe large will be better. It's going to take a while to support it, because currently no one uses it except jit. The loongson gcc team may(`just maybe`) also consider the implementation of `mcmodel=large` (support 52bit addressing capability). so? large = large? or large=extreme? `- -|||`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137495/new/

https://reviews.llvm.org/D137495



More information about the llvm-commits mailing list