This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Spec v0.23 updates
ClosedPublic

Authored by sjarus on Nov 5 2021, 2:37 PM.

Details

Summary

Add pad_const field to tosa.pad.
Add builders to enable optional construction of pad_const in pad op.
Update documentation of tosa.clamp to match spec wording.

Signed-off-by: Suraj Sudhir <suraj.sudhir@arm.com>

Diff Detail

Event Timeline

sjarus created this revision.Nov 5 2021, 2:37 PM
sjarus requested review of this revision.Nov 5 2021, 2:37 PM

This change keeps the new pad_const field an optional construct and adds a builder to handle it.

Existing frontend legalizations do not break. They can be updated later and the parameter optionality can then be removed without breaking anything.

Okay, I will review and integrate this on Monday to guarantee there are not any cascading failures. Looks really great though. I was just starting work on something where this is very useful.

sjarus added a comment.Nov 5 2021, 3:22 PM

Okay, I will review and integrate this on Monday to guarantee there are not any cascading failures. Looks really great though. I was just starting work on something where this is very useful.

Sounds good! We ran bazel test in the TF tree and all the TOSA stuff was ok, but there are other pieces there outside of our control.

rsuderman accepted this revision.Nov 8 2021, 10:04 AM
This revision is now accepted and ready to land.Nov 8 2021, 10:04 AM
This revision was automatically updated to reflect the committed changes.