aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-08 08:08:49 +0000
committerChris Lattner <sabre@nondot.org>2005-01-08 08:08:49 +0000
commit1645ed0b93901ec678cd54024c8b09bca632b296 (patch)
treee9abcfaa70d4dc245dcd38af7b23cfc11b0351aa /include
parent8c92628d1c9db4827f364614bde1660fe800af30 (diff)
downloadexternal_llvm-1645ed0b93901ec678cd54024c8b09bca632b296.zip
external_llvm-1645ed0b93901ec678cd54024c8b09bca632b296.tar.gz
external_llvm-1645ed0b93901ec678cd54024c8b09bca632b296.tar.bz2
Add operators for FP -> INT conversions and back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index eea1942..f428db1 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -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,