aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-21 02:12:42 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-21 02:12:42 +0000
commit1c55a9c0cc355ad72c55ae7665143b9a992d223b (patch)
tree066e731897e1b57723b26d504e3f5c26cfeeb007 /include/llvm/CodeGen/SelectionDAGNodes.h
parent7cdc3c8ad208d9655be542fc8b082c4457af4b6e (diff)
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
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index b55cc8e300..93d2b64826 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -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,