[llvm] [LoongArch] Fix MergeBaseOffset for constant pool index operand (PR #159336)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 18:19:20 PDT 2025
================
@@ -788,6 +788,9 @@ class MachineOperand {
LLVM_ABI void ChangeToBA(const BlockAddress *BA, int64_t Offset,
unsigned TargetFlags = 0);
+ /// ChangeToCPI - Replace this operand with a new constant pool index operand.
+ LLVM_ABI void ChangeToCPI(unsigned Idx, int Offset, unsigned TargetFlags = 0);
----------------
zhaoqi5 wrote:
Is it better to use `int Offset` or `int64_t Offset` like other hooks?
https://github.com/llvm/llvm-project/pull/159336
More information about the llvm-commits
mailing list