search for: add2aa

Displaying 1 result from an estimated 1 matches for "add2aa".

Did you mean: add2
2008 Mar 05
2
[LLVMdev] removing unnecessary moves with 2-address machine
I am new to LLVM and am trying to write a backend for a simple 2-address machine. For a very simple program: define i16 @add2aa(i16 %a, i16 %b) nounwind { entry: %tmp3 = add i16 %b, %a ; <i16> [#uses=1] ret i16 %tmp3 } The arguments a and b are passed in r15 and r14. The result is returned in r15. The generated code is: add2aa: add.w r15,r14 mov.w r14,r15 ret...