<div dir="ltr">Dear,<div><br></div><div>I am new to llvm and hence have very little idea about a problem that is my university project.</div><div>I am supposed to assume a X86 CPU supporting an instruction ADDenc that adds two encrypted operands. The original ADD also exists and should operate on unencrypted operands.</div>
<div><br></div><div>My task is to transform C programs into the new X86 assembly that supports ADDenc. I have very little idea about this.</div><div><br></div><div>I have been suggested the following approaches</div><div>
1) Adding a new Instruction ADDenc in the current X86 LLVM backend and make the necessary changes.</div><div>2) Adding a new LLVM IR instruction addenc that recognises the operands at this level instead of general LLVM add, then add an instruction in the target X86 to transform addenc of LLVM to ADDenc of X86.</div>
<div><br></div><div>I have been given an LLVM pass that can run on LLVM IR and decide which are the encrypted operands. </div><div><br></div><div>Any help of any kind will be helpful as I know very little about LLVM. <br>
</div><div><div><br></div>-- <br>Pratik<div><br></div>
</div></div>