<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 10, 2014, at 6:49 PM, reed kotler <<a href="mailto:rkotler@mips.com">rkotler@mips.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/10/2014 05:51 PM, Pete Cooper
wrote:<br>
</div>
<blockquote cite="mid:94E68AF7-A526-4A77-8FC9-58DB5F3F5E22@apple.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi Reed
<div><br>
</div>
<div>You can do this on the instruction itself by telling it 2
operands must be the same register. For example, from X86:</div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">let
Constraints = "$src1 = $dst" in</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
defm INSERTPS : SS41I_insertf32<0x21, "insertps">;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Thanks,</div>
</div>
</blockquote>
Hi Pete,<br>
<br>
Sorry.<br>
<br>
I should have been more specific.<br>
<br>
I'm looking for a way to do this in c++.<br></div></blockquote>Ah, in that case have a look at MachineInstr::tieOperands.</div><div><br></div><div>Thanks,</div><div>Pete<br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000">
<br>
I'm aware of how it is done in tablegen.<br>
<br>
Reed<br>
<br>
<blockquote cite="mid:94E68AF7-A526-4A77-8FC9-58DB5F3F5E22@apple.com" type="cite">
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Pete</div>
<div>
<blockquote type="cite">
<div>On Jun 10, 2014, at 5:38 PM, reed kotler <<a moz-do-not-send="true" href="mailto:rkotler@mips.com">rkotler@mips.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div>Does anyone know if there is a way to constrain two
virtual registers to be allocated<br>
to the same physical register?<br>
<br>
Tia.<br>
<br>
Reed<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>
<a moz-do-not-send="true" href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br>
<a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</blockquote></div><br></body></html>