This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Generalize default/optional parameters
ClosedPublic

Authored by Mogball on Sep 13 2022, 4:27 PM.

Details

Summary

This patch consolidates the notions of an optional parameter and a
default parameter. An optional parameter is a parameter equal to its
default value, which for a "purely optional" parameter is its "null"
value.

This allows the existing comparator and defaultValue fields to be
used enabled more complex "optional" parameters, such as empty arrays.

Depends on D133812

Diff Detail

Event Timeline

Mogball created this revision.Sep 13 2022, 4:27 PM
Mogball requested review of this revision.Sep 13 2022, 4:27 PM
Mogball updated this revision to Diff 459921.Sep 13 2022, 4:57 PM

updated a missing change

rriddle accepted this revision.Sep 20 2022, 2:00 AM
This revision is now accepted and ready to land.Sep 20 2022, 2:00 AM
This revision was landed with ongoing or failed builds.Sep 20 2022, 11:08 AM
This revision was automatically updated to reflect the committed changes.