[llvm-dev] Using a stack slot as a destination register for cmov

Genoveva Fossas via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 23 13:38:44 PDT 2020


Hello,

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.

In summary: how would I emit a cmov with the machine instruction builder
that writes to a stack slot when true?

Thank you in advance,
Genoveva Fossas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200323/40e542fe/attachment.html>


More information about the llvm-dev mailing list