forked from OSchip/llvm-project
The fp16 <-> fp32 intrinsics are pure, mark them so they can be CSE'd, etc.
llvm-svn: 98498
This commit is contained in:
parent
77bbbf782a
commit
c6273f28a9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue