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

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 8 00:09:05 PST 2005



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGNodes.h updated: 1.4 -> 1.5
---
Log message:

Add operators for FP -> INT conversions and back.


---
Diffs of the changes:  (+10 -0)

Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.4 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.5
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.4	Fri Jan  7 15:08:55 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h	Sat Jan  8 02:08:49 2005
@@ -104,6 +104,16 @@
     // TRUNCATE - Completely drop the high bits.
     TRUNCATE,
 
+    // [SU]INT_TO_FP - These operators convert integers (whose interpreted sign
+    // depends on the first letter) to floating point.
+    SINT_TO_FP,
+    UINT_TO_FP,
+
+    // FP_TO_[US]INT - Convert a floating point value to a signed or unsigned
+    // integer.
+    FP_TO_SINT,
+    FP_TO_UINT,
+
     // FP_ROUND - Perform a rounding operation from the current
     // precision down to the specified precision.
     FP_ROUND,






More information about the llvm-commits mailing list