This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Provide accessor for TableGen record
ClosedPublic

Authored by math-fehr on Sep 3 2022, 4:41 PM.

Details

Summary

Constraint and Predicate classes did not expose their underlying
tablegen records. This means that for Constraints, it is not possible
to get the underlying base constraint of a variadic constraint.
For Predicate, it is not possible to get the predicates forming an
Or predicate for instance.

Diff Detail

Event Timeline

math-fehr created this revision.Sep 3 2022, 4:41 PM
math-fehr requested review of this revision.Sep 3 2022, 4:41 PM

By the way, I do not have commit access, so would it be possible to land it for me if this is accepted?

Mogball added inline comments.Sep 3 2022, 4:43 PM
mlir/include/mlir/TableGen/Constraint.h
74
mlir/include/mlir/TableGen/Predicate.h
70
math-fehr updated this revision to Diff 457823.Sep 3 2022, 4:45 PM

Use documentation comments

math-fehr marked 2 inline comments as done.Sep 3 2022, 4:47 PM

Addressed comments

Mogball accepted this revision.Sep 6 2022, 9:22 AM
This revision is now accepted and ready to land.Sep 6 2022, 9:22 AM
This revision was automatically updated to reflect the committed changes.