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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 21:03:15 PDT 2026


================
@@ -1545,11 +1558,18 @@ def : PatGprShiftMaskXLen<sra, SRA>;
 // 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
+let hasSideEffects = 0, mayLoad = 0, mayStore = 0, isCodeGenOnly = 0 in {
----------------
topperc wrote:

why do you want to share these flags with `PseudoBaseIdx`? Aren't the flags already set inside the PseudoBaseIdx class?

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


More information about the llvm-commits mailing list