[all-commits] [llvm/llvm-project] 47f717: [WebAssembly] Use "signed char" instead of "char" ...
Dan Gohman via All-commits
all-commits at lists.llvm.org
Tue Aug 4 12:49:23 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 47f7174ffa71d339c1a65d1dd9a2ac5ff2abc95d
https://github.com/llvm/llvm-project/commit/47f7174ffa71d339c1a65d1dd9a2ac5ff2abc95d
Author: Dan Gohman <sunfish at mozilla.com>
Date: 2020-08-04 (Tue, 04 Aug 2020)
Changed paths:
M clang/include/clang/Basic/BuiltinsWebAssembly.def
M clang/lib/Headers/wasm_simd128.h
M clang/test/CodeGen/builtins-wasm.c
Log Message:
-----------
[WebAssembly] Use "signed char" instead of "char" in SIMD intrinsics.
This allows people to use `int8_t` instead of `char`, -funsigned-char,
and generally decouples SIMD from the specialness of `char`.
And it makes intrinsics like `__builtin_wasm_add_saturate_s_i8x16`
and `__builtin_wasm_add_saturate_u_i8x16` use signed and unsigned
element types, respectively.
Differential Revision: https://reviews.llvm.org/D85074
More information about the All-commits
mailing list