[llvm-dev] Relationship between MachineMemOperand and X86II::getMemoryOperandNo

Mircea Trofin via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 8 10:52:09 PST 2018


Hello,

I'm trying to understand the relationship between MachineMemOperand and, on
X86, memory operands of machine instructions. The latter seem to be
operands held in order by the MachineInstr, from an offset onwards - Base,
Scale, Index, Displacement, Segment. The former, if I understand it
correctly, is used to hold a relationship back to IR load/store
instructions.

Is it possible to have a X86 MachineInstr with a memory operand (i.e.
X86II::getMemoryOperandNo >=0), that has no MachineMemOperand? What about
the reverse?

Thanks,
Mircea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180308/e27ca0e4/attachment.html>


More information about the llvm-dev mailing list