Add operators for FP -> INT conversions and back.
authorChris Lattner <sabre@nondot.org>
Sat, 8 Jan 2005 08:08:49 +0000 (08:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Jan 2005 08:08:49 +0000 (08:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19368 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index eea1942f066c753707c1d7fb08b21e089fe3c923..f428db196b775e0960d98b5ff010e15d9d1678ff 100644 (file)
@@ -104,6 +104,16 @@ namespace ISD {
     // 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,