[llvm] [LoongArch] Support parsing the `%le_{hi20,add,lo12}_r` modifiers (PR #99485)
Lu Weining via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 20:05:42 PDT 2024
================
@@ -1570,6 +1583,21 @@ def PseudoTAIL36 : Pseudo<(outs), (ins GPR:$tmp, bare_symbol:$dst), [],
"tail36", "$tmp, $dst">,
Requires<[IsLA64]>;
+// This is a special case of the ADD_W/D instruction used to facilitate the use
+// of a fourth operand to emit a relocation on a symbol relating to this
+// instruction. The relocation does not affect any bits of the instruction itself
+// but is used as a hint to the linker.
+let hasSideEffects = 0, mayLoad = 0, mayStore = 0, isCodeGenOnly = 0 in {
+def PseudoAddTPRel_W : Pseudo<(outs GPR:$rd),
+ (ins GPR:$rj, GPR:$rk, tprel_add_symbol:$sym), [],
----------------
SixWeining wrote:
nit: `(ins` could be indented to `(outs`
https://github.com/llvm/llvm-project/pull/99485
More information about the llvm-commits
mailing list