[LLVMdev] LLVM IR, Instructions, Backend, AsmPrinter
pratik dand
pratikdand143 at gmail.com
Wed Jun 18 01:01:17 PDT 2014
Dear,
I am new to llvm and hence have very little idea about a problem that is my
university project.
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.
My task is to transform C programs into the new X86 assembly that supports
ADDenc. I have very little idea about this.
I have been suggested the following approaches
1) Adding a new Instruction ADDenc in the current X86 LLVM backend and make
the necessary changes.
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.
I have been given an LLVM pass that can run on LLVM IR and decide which are
the encrypted operands.
Any help of any kind will be helpful as I know very little about LLVM.
--
Pratik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140618/afe4d42f/attachment.html>
More information about the llvm-dev
mailing list