[LLVMdev] backend question

Lev Yudalevich lyudalev at gmail.com
Tue May 25 08:19:05 PDT 2010


Hello,

I'm just starting to work on a backend for a custom cpu. For some
instructions this cpu has two flavors: first performs an operation, and the
second performs an operation and updates condition codes (carry, zero,
overflow, negative etc) based on the outcome. For example: add rd,rs
instruction adds the contents of register rs to register rd and places the
result in rd; add.cc rd, rs does the same and updates the condition codes.
Can anybody point out an example of how such instructions should be defined
in a corresponding xxInstrInfo.td file please?

Sincerely,
-- Lev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100525/54f3a4e1/attachment.html>


More information about the llvm-dev mailing list