1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add UADDO and SADDO nodes. These will be used for determining an overflow

condition in an addition operation.

llvm-svn: 59760
This commit is contained in:
Bill Wendling 2008-11-21 00:11:16 +00:00
parent 66e692dd8f
commit 6d749434a5
2 changed files with 10 additions and 1 deletions

View File

@ -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,

View File

@ -5151,6 +5151,8 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const {
case ISD::CARRY_FALSE: return "carry_false";
case ISD::ADDC: return "addc";
case ISD::ADDE: return "adde";
case ISD::SADDO: return "saddo";
case ISD::UADDO: return "uaddo";
case ISD::SUBC: return "subc";
case ISD::SUBE: return "sube";
case ISD::SHL_PARTS: return "shl_parts";