diff options
author | Dan Gohman <gohman@apple.com> | 2007-10-05 14:07:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-10-05 14:07:56 +0000 |
commit | fdd04d5ddecb1d1f3030839520109308137b73dc (patch) | |
tree | 2c54d15ad7b87f2046339a0e86e9e5e8709e7633 /include | |
parent | 3ec81c0ee73462b7b9acd355b0013827d06ad93c (diff) | |
download | external_llvm-fdd04d5ddecb1d1f3030839520109308137b73dc.zip external_llvm-fdd04d5ddecb1d1f3030839520109308137b73dc.tar.gz external_llvm-fdd04d5ddecb1d1f3030839520109308137b73dc.tar.bz2 |
Define target-indepenent SDNode types for multiply and divide that
produce two results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index ee926f1..e153ee9 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -233,6 +233,15 @@ namespace ISD { // Simple integer binary arithmetic operators. ADD, SUB, MUL, SDIV, UDIV, SREM, UREM, + + // SMUL_LOHI/UMUL_LOHI - Multiply two integers of type iN, producing + // a signed/unsigned value of type i[2*n], and return the full value as + // two results, each of type iN. + SMUL_LOHI, UMUL_LOHI, + + // SDIVREM/UDIVREM - Divide two integers and produce both a quotient and + // remainder result. + SDIVREM, UDIVREM, // CARRY_FALSE - This node is used when folding other nodes, // like ADDC/SUBC, which indicate the carry result is always false. |