<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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>
<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>
</body>
</html>