This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add builtin functions for creating vector constants
AbandonedPublic

Authored by tlively on Jun 19 2019, 2:43 PM.

Details

Reviewers
dschuff
aheejin
Summary

These builtins do not offer any functionality over the normal
aggregate initialization for vector types, except that they enforce
that their arguments constant fold to integer expressions so they
always generate a vector constant. They are meant for use in the new
WebAssembly SIMD intrinsic header.

Event Timeline

tlively created this revision.Jun 19 2019, 2:43 PM

This CL does not provide a mechanism for enforcing that the lanes of a floating point vector are constant, and it doesn't look like clang supports that kind of check. That makes this CL a half-baked solution, so I'm not sure we should actually go in this direction.

tlively abandoned this revision.Jun 20 2019, 11:13 AM