<div dir="ltr">You would need to make a MachineInstr that takes an address to store to as input and has no def operands. The address will the stack slot you wish to write. Have you already added a new version of CMOV to X86Instr*.td?<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 23, 2020 at 4:18 PM Genoveva Fossas via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>I'm a computer science student experimenting with the X86 back end for llvm. I'm currently attempting to emit a cmov with the MachineInstructionBuilder, but I'm a little unclear on how I could emit a cmov that writes to a stack slot when its condition is true. I see several usages when there are virtual registers as the destination, but not one that writes to a stack slot. At least that I am able to discern.<br><br>In summary: how would I emit a cmov with the machine instruction builder that writes to a stack slot when true?<br><br>Thank you in advance,<br>Genoveva Fossas</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>