diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-14 18:42:04 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-14 18:42:04 +0000 |
| commit | c6273f28a9d152d62dba08a865f92d13f45d681b (patch) | |
| tree | 34fe918faf1218b9bce9cf4354e7c86da3904e9f | |
| parent | 77bbbf782a835d3c9e25fda222a9e376ca8250b7 (diff) | |
| download | bcm5719-llvm-c6273f28a9d152d62dba08a865f92d13f45d681b.tar.gz bcm5719-llvm-c6273f28a9d152d62dba08a865f92d13f45d681b.zip | |
The fp16 <-> fp32 intrinsics are pure, mark them so they can be CSE'd, etc.
llvm-svn: 98498
| -rw-r--r-- | llvm/include/llvm/Intrinsics.td | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Intrinsics.td b/llvm/include/llvm/Intrinsics.td index c3488281547..24f65b6e93d 100644 --- a/llvm/include/llvm/Intrinsics.td +++ b/llvm/include/llvm/Intrinsics.td @@ -452,10 +452,12 @@ def int_trap : Intrinsic<[llvm_void_ty]>, // Intrisics to support half precision floating point format def int_convert_to_fp16 : Intrinsic<[llvm_i16_ty], - [llvm_float_ty]>, + [llvm_float_ty], + [IntrNoMem]>, GCCBuiltin<"__gnu_f2h_ieee">; def int_convert_from_fp16 : Intrinsic<[llvm_float_ty], - [llvm_i16_ty]>, + [llvm_i16_ty], + [IntrNoMem]>, GCCBuiltin<"__gnu_h2f_ieee">; // These convert intrinsics are to support various conversions between |

