[clang] [llvm] [WebAssembly] Implement prototype f32.load_f16 instruction. (PR #90906)
Brendan Dahl via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 13:21:26 PDT 2024
================
@@ -321,6 +321,18 @@ def int_wasm_relaxed_dot_bf16x8_add_f32:
[llvm_v8i16_ty, llvm_v8i16_ty, llvm_v4f32_ty],
[IntrNoMem, IntrSpeculatable]>;
+//===----------------------------------------------------------------------===//
+// Half-precision intrinsics (experimental)
+//===----------------------------------------------------------------------===//
+
+// TODO: Replace these intrinsic with normal ISel patterns once the XXX
+// instructions are merged to the proposal.
+def int_wasm_loadf16_f32:
+ Intrinsic<[llvm_float_ty],
+ [llvm_ptr_ty],
+ [IntrReadMem, IntrArgMemOnly],
+ "", [SDNPMemOperand]>;
----------------
brendandahl wrote:
It looks like we have empty/missing names for nearly all of the intrinsics except for `int_wasm_ref_is_null_extern` and `int_wasm_ref_is_null_func`. Do you know what the name is used for? Maybe it's for when the name can't be automatically translated to an llvm name?
https://github.com/llvm/llvm-project/pull/90906
More information about the cfe-commits
mailing list