[lld] [llvm] [RISCV] add new relocation type for global array accesses with non-constant indices (PR #207901)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 00:58:23 PDT 2026


================
@@ -353,6 +353,17 @@ class PseudoStore<string opcodestr, DAGOperand rsty = GPR>
   let isCodeGenOnly = 0;
 }
 
+// Pseudo add or shxadd instructions.
+class PseudoBaseIdx<string opcodestr>
+    : Pseudo<(outs GPR:$rd),
+             (ins GPR:$rs1, GPR:$rs2, base_idx_add_symbol:$src), [], opcodestr,
+             "$rd, $rs1, $rs2, $src"> {
+  let hasSideEffects = 0;
+  let mayLoad = 1;
----------------
LiqinWeng wrote:

fixed

https://github.com/llvm/llvm-project/pull/207901


More information about the llvm-commits mailing list