aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-03-14 18:42:04 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-03-14 18:42:04 +0000
commit675043b19d409697e97e91d557dc572cf7532b80 (patch)
tree8687a8a95ecfdabf4f5081919a7575526eabe361
parent676f968fec3532effc90a449b34dd44bb2b78bd2 (diff)
The fp16 <-> fp32 intrinsics are pure, mark them so they can be CSE'd, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98498 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Intrinsics.td6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index c348828154..24f65b6e93 100644
--- a/include/llvm/Intrinsics.td
+++ b/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