This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add support for ExpM1 to GLSL/OpenCL SPIRV Backends
ClosedPublic

Authored by rsuderman on Jan 24 2022, 2:55 PM.

Details

Summary

Adding a similar decomposition for exponential minus one to the SPIRV
backends along with the necessary tests.

Diff Detail

Event Timeline

rsuderman created this revision.Jan 24 2022, 2:55 PM
rsuderman requested review of this revision.Jan 24 2022, 2:55 PM
rsuderman updated this revision to Diff 402684.Jan 24 2022, 3:10 PM

Synced to head.

Thanks! Just two nits. :)

mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
48

I think we can use operation.getType() directly here,

49

Use adaptor.getOperand()?

antiagainst accepted this revision.Jan 24 2022, 3:21 PM
This revision is now accepted and ready to land.Jan 24 2022, 3:21 PM
rsuderman updated this revision to Diff 402702.Jan 24 2022, 3:37 PM

Fixed for nits.

This revision was landed with ongoing or failed builds.Jan 24 2022, 3:42 PM
This revision was automatically updated to reflect the committed changes.