search for: copyregtpreg

Displaying 2 results from an estimated 2 matches for "copyregtpreg".

Did you mean: copyregtoreg
2010 Aug 26
2
[LLVMdev] analysis and transformation of Machine IRs
...;= change operand 2) subtract 3 from v3. (I0) v3 := (I0.a) v3_1 := v3 - 3 <= sub inserted here ... (I4) cmp v2, v3_1 <= change operand Is there a class or function that generates an add or sub instruction in a target-independent manner? I am looking for something similar to TargetInstrInfo::copyRegTpReg but one that creates other types of instructions. Any advice, comments and suggestions are appreciated. Thank you in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100826/b683bbfb/attachment.html&...
2010 Aug 31
0
[LLVMdev] analysis and transformation of Machine IRs
On Aug 26, 2010, at 11:05 AM, Akira Hatanaka wrote: > Is there a class or function that generates an add or sub instruction in a target-independent manner? No. Such a target hook does not exist. > I am looking for something similar to TargetInstrInfo::copyRegTpReg but one that creates other types of instructions. It almost sounds like you should be writing a normal optimization pass that operates on LLVM IR instead of a code generator pass. That is a lot easier too. Are you doing something similar to LoopUnroll.cpp? /jakob