[PATCH] D101112: [WebAssembly] Finalize wasm_simd128.h intrinsics

Thomas Lively via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 23 13:17:06 PDT 2021


tlively added inline comments.


================
Comment at: clang/lib/Headers/wasm_simd128.h:969
+static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_f32x4_ceil(v128_t __a) {
+  return (v128_t)__builtin_wasm_ceil_f32x4((__f32x4)__a);
+}
----------------
aheejin wrote:
> Sometimes builtin names seem slightly different from intrinsic names like this case: the intrinsic name is `f32x4_ceil` while the builtin name is `ceil_f32x4`. Is that intentional?
Yes, the builtin names use _s and _u rather than communicating the sign in the lane interpretation and they always put the instruction prefix at the end. It's just a different arbitrary naming convention.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101112/new/

https://reviews.llvm.org/D101112



More information about the cfe-commits mailing list