This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add SIMD intrinsics using unsigned integers
ClosedPublic

Authored by tlively on Aug 19 2021, 2:41 PM.

Details

Summary

For each SIMD intrinsic function that takes or returns a scalar signed integer
value, ensure there is a corresponding intrinsic that returns or an
unsigned value. This is a convenience for users who use -Wsign-conversion so
they don't have to insert explicit casts, especially when the intrinsic
arguments are integer literals that fit into the unsigned integer type but not
the signed type.

Diff Detail

Event Timeline

tlively created this revision.Aug 19 2021, 2:41 PM
tlively requested review of this revision.Aug 19 2021, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2021, 2:41 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Did you read this twitter thread too or just coincidence? https://twitter.com/rygorous/status/1428207170403725316?s=20

Did you read this twitter thread too or just coincidence? https://twitter.com/rygorous/status/1428207170403725316?s=20

Yes I did :D

aheejin accepted this revision.Aug 20 2021, 12:32 AM
This revision is now accepted and ready to land.Aug 20 2021, 12:32 AM
This revision was landed with ongoing or failed builds.Aug 20 2021, 8:57 AM
This revision was automatically updated to reflect the committed changes.