diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-08 08:08:49 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-08 08:08:49 +0000 |
| commit | 6209f1d29434b4805a38acf66fc92433fd4683db (patch) | |
| tree | a394c0439b591a92cbb59803b4e9329de8b08f34 /llvm | |
| parent | 8da67af979dfd49c9c73e1c4314b3247695fa477 (diff) | |
| download | bcm5719-llvm-6209f1d29434b4805a38acf66fc92433fd4683db.tar.gz bcm5719-llvm-6209f1d29434b4805a38acf66fc92433fd4683db.zip | |
Add operators for FP -> INT conversions and back.
llvm-svn: 19368
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index eea1942f066..f428db196b7 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/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, |

