Add an ISD::FPOW node type.
authorDan Gohman <gohman@apple.com>
Thu, 11 Oct 2007 23:06:37 +0000 (23:06 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 11 Oct 2007 23:06:37 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42879 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index fe4891f159775237cf9dbe82406eaa7c3e86f6be..4dc1139d9f5e661eea3bc63e6f3fc6b87756e93c 100644 (file)
@@ -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
index 2ac30f6f3da533290dd817bd6a1ec0519ba8e299..3e798bc8ce74799b126ea3535ada809c88b2f852 100644 (file)
@@ -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";