[WebAssembly] Fix constness of pointer params to load intrinsics
authorThomas Lively <tlively@google.com>
Wed, 5 May 2021 20:16:55 +0000 (13:16 -0700)
committerThomas Lively <tlively@google.com>
Wed, 5 May 2021 20:16:56 +0000 (13:16 -0700)
commit602f318cfdac999a8604f1588159326b1a1a1a23
tree96b7f16dbe77256dc1392f87dad5751b7e3142ac
parent627a52695537dd2bea068630887431febbf06856
[WebAssembly] Fix constness of pointer params to load intrinsics

Update the SIMD builtin load functions to take pointers to const data and update
the intrinsics themselves to not cast away constness.

Differential Revision: https://reviews.llvm.org/D101884
clang/include/clang/Basic/BuiltinsWebAssembly.def
clang/lib/Headers/wasm_simd128.h
clang/test/CodeGen/builtins-wasm.c
clang/test/Headers/wasm.c