This is an archive of the discontinued LLVM Phabricator instance.

[mlir][math][spirv] Add `math.roundeven` lowering to SPIR-V
ClosedPublic

Authored by kuhar on Nov 1 2022, 9:31 AM.

Details

Summary

This has two lowering path, one for each extended instructions set:

  • to OpenGL's RoundEven,
  • to OpenCL's rint.

Implement those two ops and adds minimal tests.

Diff Detail

Event Timeline

kuhar created this revision.Nov 1 2022, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2022, 9:31 AM
kuhar requested review of this revision.Nov 1 2022, 9:31 AM
kuhar updated this revision to Diff 472332.Nov 1 2022, 9:33 AM

Add missing test

antiagainst accepted this revision.Nov 1 2022, 9:48 AM

Nice, thanks!

This revision is now accepted and ready to land.Nov 1 2022, 9:48 AM
This revision was landed with ongoing or failed builds.Nov 1 2022, 9:51 AM
This revision was automatically updated to reflect the committed changes.