<div dir="ltr">Dear Tim,<div><br></div><div>I am working on a cryptography project. So I need the operand to have a boolean attribute say Encrypted. If the operands are encrypted I want to use say ADD* instruction else the the ADD instruction.</div>
<div><br></div><div>I was hoping to find answers for How to add a new instruction to the backend and how to modify the ISel mechanism such that the above requirement is fulfilled.</div><div><br></div><div>Regards,</div><div>
PratikĀ </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 8:21 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pratik,<br>
<div class=""><br>
On 10 June 2014 06:38, pratik dand <<a href="mailto:pratikdand143@gmail.com">pratikdand143@gmail.com</a>> wrote:<br>
> Say the operands have a boolean attribute 'attr'. I would like to select I1<br>
> and I2 by some logic that involves the 'attr' attribute of all the operands<br>
> involved.<br>
<br>
</div>What does this attribute represent? It's possible LLVM already has an<br>
analogue and uses a different way to get the right code out.<br>
<br>
In general operands don't have many intrinsic attributes: type is the<br>
main one. Though different kinds of operands have more information<br>
attached.<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Pratik<div><br></div>
</div>