<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/27/2015 12:16 PM, Ryan Taylor
wrote:<br>
</div>
<blockquote
cite="mid:CABgVvXui=5Yc3Duuc0+foZHQVFoWx-e5MFS_gnXnb60wFW0nRw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">
<div>I have a CopyToReg that is copying from different size
types, what's the best way to change that to a zext or sext
node based on signed or unsigned? </div>
<div><br>
</div>
<div>I'm fairly unfamiliar with SelectionDAG process (outside of
the docs on llvm website).</div>
<div><br>
</div>
<div>It seems like I should be able to insert a custom hook
using the register class to identify the type, potentially in
ISelDAGToDag.cpp or is there a better place for this to be
done?</div>
<div><br>
</div>
<div>Thanks.</div>
</div>
<br>
</blockquote>
<br>
It sounds to me like you are looking for the AssertSext / AssertZext
nodes<br>
<br>
-Matt<br>
</body>
</html>