diff options
| author | Dan Gohman <gohman@apple.com> | 2007-10-11 23:06:37 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-10-11 23:06:37 +0000 |
| commit | daee00243802f8a069131e81c2065ef7680d3c49 (patch) | |
| tree | 38861106971f587f70ba01802a59b8b7f8a2029e | |
| parent | 3554448947da67e5ddb8cf313ee5c46955462c95 (diff) | |
| download | bcm5719-llvm-daee00243802f8a069131e81c2065ef7680d3c49.tar.gz bcm5719-llvm-daee00243802f8a069131e81c2065ef7680d3c49.zip | |
Add an ISD::FPOW node type.
llvm-svn: 42879
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 6 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index fe4891f1597..4dc1139d9f5 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -408,10 +408,10 @@ namespace ISD { // conversions, but that is a noop, deleted by getNode(). BIT_CONVERT, - // FNEG, FABS, FSQRT, FSIN, FCOS, FPOWI - Perform unary floating point - // negation, absolute value, square root, sine and cosine, and powi + // FNEG, FABS, FSQRT, FSIN, FCOS, FPOWI, FPOW - Perform unary floating point + // negation, absolute value, square root, sine and cosine, powi, and pow // operations. - FNEG, FABS, FSQRT, FSIN, FCOS, FPOWI, + FNEG, FABS, FSQRT, FSIN, FCOS, FPOWI, FPOW, // LOAD and STORE have token chains as their first operand, then the same // operands as an LLVM load/store instruction, then an offset node that diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 2ac30f6f3da..3e798bc8ce7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3602,6 +3602,7 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const { case ISD::FSIN: return "fsin"; case ISD::FCOS: return "fcos"; case ISD::FPOWI: return "fpowi"; + case ISD::FPOW: return "fpow"; // Binary operators case ISD::ADD: return "add"; |

