[PATCH] D137394: [LoongArch] Generate PACALAU12I + JIRL instruction pair for medium codemodel

wanglei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 4 00:18:56 PDT 2022


wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, gonglingqin, MaskRay.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In LoongArch, when `CodeModel=Medium`, it just increases the jumping
ability of function calls relative to PC, from 2^28 to 2^32.

Depends on D137393 <https://reviews.llvm.org/D137393>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137394

Files:
  llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/test/CodeGen/LoongArch/codemodel-medium.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137394.473139.patch
Type: text/x-patch
Size: 4827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221104/43dcb3df/attachment.bin>


More information about the llvm-commits mailing list