[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 4 21:06:52 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGNodes.h updated: 1.109 -> 1.110
---
Log message:

Add a copysign node


---
Diffs of the changes:  (+7 -1)

 SelectionDAGNodes.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.109 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.110
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.109	Fri Mar  3 01:01:07 2006
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h	Sat Mar  4 23:06:40 2006
@@ -140,6 +140,12 @@
     
     // Simple binary floating point operators.
     FADD, FSUB, FMUL, FDIV, FREM,
+
+    // FCOPYSIGN(X, Y) - Return the value of X with the sign of Y.  NOTE: This
+    // DAG node does not require that X and Y have the same type, just that they
+    // are both floating point.  X and the result must have the same type.
+    // FCOPYSIGN(f32, f64) is allowed.
+    FCOPYSIGN,
     
     // Simple abstract vector operators.  Unlike the integer and floating point
     // binary operators, these nodes also take two additional operands:
@@ -243,7 +249,7 @@
     // FNEG, FABS, FSQRT, FSIN, FCOS - Perform unary floating point negation,
     // absolute value, square root, sine and cosine operations.
     FNEG, FABS, FSQRT, FSIN, FCOS,
-
+    
     // Other operators.  LOAD and STORE have token chains as their first
     // operand, then the same operands as an LLVM load/store instruction, then a
     // SRCVALUE node that provides alias analysis information.






More information about the llvm-commits mailing list