This is an archive of the discontinued LLVM Phabricator instance.

mlir/tosa: supply better documentation for tosa.pad
ClosedPublic

Authored by artagnon on Dec 1 2022, 2:35 AM.

Details

Summary

This patch modifies the description in TosaOps.td, taking into account
all the arguments, and supplying examples.

Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>

Diff Detail

Event Timeline

artagnon created this revision.Dec 1 2022, 2:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 2:35 AM
artagnon requested review of this revision.Dec 1 2022, 2:35 AM
artagnon updated this revision to Diff 479815.Dec 3 2022, 1:12 AM

Wrap overly long line.

Proxying to @eric-k256 as he is in charge of TOSA operation specifics and should validate the description.

Thanks for the ping, this got lost in my todo list.

I like the updated description of the op, along with the arguments. I have concerns about including the examples with potential lowerings. It would be another area that would fall out of sync with what the real lowerings are. There is nothing that would break the build or otherwise notify someone changing a lowering that this documentation would also need to be updated. It feels safer to leave the definition of the lowering to the conversion documentation as the source of truth for that conversion. We could still leave an example without the lowering as a usage model.

artagnon updated this revision to Diff 524059.May 20 2023, 2:27 PM

Address review comments: remove lowering example.

Thanks! LGTM now. Let me know if you need help landing this.

This revision was not accepted when it landed; it landed in state Needs Review.May 24 2023, 1:26 PM
This revision was automatically updated to reflect the committed changes.