This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Add convertFromStorage field to parameters
ClosedPublic

Authored by Mogball on Jun 21 2022, 11:19 AM.

Details

Summary

This patch adds a convertFromStorage field to attribute or type parameters that can implement more complex logic for converting from the parameter's C++ storage type (e.g. Optional<SmallVector<T>>) to its C++ type (e.g. Optional<ArrayRef<T>>).

Diff Detail

Event Timeline

Mogball created this revision.Jun 21 2022, 11:19 AM
Mogball requested review of this revision.Jun 21 2022, 11:19 AM
rriddle accepted this revision.Jun 27 2022, 12:52 PM

Can you add documentation for this field in the AttributesAndTypes.md doc?

LG, description looks a little weird in one spot though: complex logical for converting

This revision is now accepted and ready to land.Jun 27 2022, 12:52 PM
Mogball edited the summary of this revision. (Show Details)Jun 27 2022, 2:20 PM
Mogball updated this revision to Diff 440407.Jun 27 2022, 3:06 PM

update docs

This revision was landed with ongoing or failed builds.Jun 27 2022, 3:57 PM
This revision was automatically updated to reflect the committed changes.