This is an archive of the discontinued LLVM Phabricator instance.

[mlir][StandardToLLVM] Add SinOp to LLVM dialect and lowering of std.sin to this op.
ClosedPublic

Authored by mravishankar on May 6 2020, 10:29 AM.

Diff Detail

Event Timeline

mravishankar created this revision.May 6 2020, 10:29 AM
Herald added a project: Restricted Project. · View Herald Transcript
ftynse accepted this revision.May 6 2020, 11:41 AM

Could we have a test?

This revision is now accepted and ready to land.May 6 2020, 11:41 AM

Could we have a test?

Tried to look for where to add test here. But couldnt find a test for say cos, , etc. Not sure what was the testing convention was. (I actually had a comment on the patch but as happens often, forgot to hit submit). I'll add a test anyway.

How does this relate to how tanh evolved?
In the past there was an op for tanh but it was backpedaled on, I do not remember the rationale for removing it offhand but we def. want consistency between trig functions,

This revision was automatically updated to reflect the committed changes.