aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 7567ecc095..ef155d8b7f 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -249,7 +249,14 @@ namespace ISD {
// to them to be chained together for add and sub of arbitrarily large
// values.
ADDE, SUBE,
-
+
+ // Overflow-aware nodes for arithmetic operations. These nodes take two
+ // operands: the normal lhs and rhs to the add. They produce two results:
+ // the normal result of the add, and a flag indicating whether an overflow
+ // occured. These nodes are generated from the llvm.[su]add.with.overflow
+ // intrinsics. They are lowered by target-dependent code.
+ SADDO, UADDO,
+
// Simple binary floating point operators.
FADD, FSUB, FMUL, FDIV, FREM,