This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add prototype relaxed SIMD fma/fms instructions
ClosedPublic

Authored by tlively on Sep 22 2021, 4:17 PM.

Details

Summary

Add experimental clang builtins, LLVM intrinsics, and backend definitions for
the new {f32x4,f64x2}.{fma,fms} instructions in the relaxed SIMD proposal:
https://github.com/WebAssembly/relaxed-simd/blob/main/proposals/relaxed-simd/Overview.md.
Do not allow these instructions to be selected without explicit user opt-in.

Diff Detail

Event Timeline

tlively created this revision.Sep 22 2021, 4:17 PM
tlively requested review of this revision.Sep 22 2021, 4:17 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 22 2021, 4:17 PM
ngzhian accepted this revision.Sep 22 2021, 4:28 PM

The binary opcodes LGTM, not too sure about the tablegen stuff, tests look good too.

This revision is now accepted and ready to land.Sep 22 2021, 4:28 PM
aheejin accepted this revision.Sep 22 2021, 8:43 PM
aheejin added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
13–14

It looks we need to fix the comment too

tlively updated this revision to Diff 374606.Sep 23 2021, 10:20 AM
  • Fix comment
This revision was landed with ongoing or failed builds.Sep 23 2021, 11:01 AM
This revision was automatically updated to reflect the committed changes.