[llvm] [RISCV][IA] Factor out code for extracting operands from mem insts [nfc] (PR #149344)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 18 10:01:31 PDT 2025


================
@@ -102,6 +102,52 @@ static bool isMultipleOfN(const Value *V, const DataLayout &DL, unsigned N) {
   return false;
 }
 
+static bool getMemOperands(IRBuilderBase &Builder, unsigned Factor,
----------------
mshockwave wrote:

maybe add a simple comment here to note that this function not only obtains memory operands but also does some simple validation (e.g. checking the mask)?

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


More information about the llvm-commits mailing list