Rename "ADDO" to "SADDO" and "UADDO". The "UADDO" isn't equivalent to "ADDC"

because the boolean it returns to indicate an overflow may not be treated like
as a flag. It could be stored to memory, for instance.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2008-11-21 02:12:42 +00:00
parent 7cdc3c8ad2
commit 1c55a9c0cc
4 changed files with 22 additions and 14 deletions

View File

@ -250,13 +250,14 @@ namespace ISD {
// values.
ADDE, SUBE,
// RESULT, OVERFLOW_FLAG, OUTCHAIN = ADDO(INCHAIN, LHS, RHS) -
// Overflow-aware node for arithmetic operations. This node takes two
// operands: the normal lhs and rhs to the add. It produces two results: the
// normal result of the add, and a flag indicating whether an overflow
// occured. This node is generated from the llvm.sadd.with.overflow
// intrinsic. It is lowered by target-dependent code.
ADDO,
// RESULT, BOOL, OUTCHAIN = [SU]ADDO(INCHAIN, LHS, RHS) - Overflow-aware
// node for arithmetic operations. This node takes two operands: the normal
// lhs and rhs to the add. It produces two results: the normal result of the
// add, and a boolean to indicate if an overflow occured (this isn't a flag,
// because it may be stored to memory, etc.). This node is generated from
// the llvm.sadd.with.overflow intrinsic. It is lowered by target-dependent
// code.
SADDO, UADDO,
// Simple binary floating point operators.
FADD, FSUB, FMUL, FDIV, FREM,