Lines Matching refs:LdSt
1538 MachineInstr &LdSt, unsigned &BaseReg, int64_t &Offset, in getMemOpBaseRegImmOfs() argument
1540 switch (LdSt.getOpcode()) { in getMemOpBaseRegImmOfs()
1568 return getMemOpBaseRegImmOfsWidth(LdSt, BaseReg, Offset, Width, TRI); in getMemOpBaseRegImmOfs()
1573 MachineInstr &LdSt, unsigned &BaseReg, int64_t &Offset, unsigned &Width, in getMemOpBaseRegImmOfsWidth() argument
1575 assert(LdSt.mayLoadOrStore() && "Expected a memory operation."); in getMemOpBaseRegImmOfsWidth()
1577 if (LdSt.getNumExplicitOperands() == 3) { in getMemOpBaseRegImmOfsWidth()
1579 if (!LdSt.getOperand(1).isReg() || !LdSt.getOperand(2).isImm()) in getMemOpBaseRegImmOfsWidth()
1581 } else if (LdSt.getNumExplicitOperands() == 4) { in getMemOpBaseRegImmOfsWidth()
1583 if (!LdSt.getOperand(1).isReg() || !LdSt.getOperand(2).isReg() || in getMemOpBaseRegImmOfsWidth()
1584 !LdSt.getOperand(3).isImm()) in getMemOpBaseRegImmOfsWidth()
1592 switch (LdSt.getOpcode()) { in getMemOpBaseRegImmOfsWidth()
1693 if (LdSt.getNumExplicitOperands() == 3) { in getMemOpBaseRegImmOfsWidth()
1694 BaseReg = LdSt.getOperand(1).getReg(); in getMemOpBaseRegImmOfsWidth()
1695 Offset = LdSt.getOperand(2).getImm() * Scale; in getMemOpBaseRegImmOfsWidth()
1697 assert(LdSt.getNumExplicitOperands() == 4 && "invalid number of operands"); in getMemOpBaseRegImmOfsWidth()
1698 BaseReg = LdSt.getOperand(2).getReg(); in getMemOpBaseRegImmOfsWidth()
1699 Offset = LdSt.getOperand(3).getImm() * Scale; in getMemOpBaseRegImmOfsWidth()