This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Simplify predicate in Matchers.h, NFC
ClosedPublic

Authored by lattner on Jan 14 2023, 10:06 PM.

Details

Summary

The ConstantLike trait already static_asserts that operations
implementing it have a single result and zero operands, so we
don't need to redundantly check in Matchers.h

The static assert is in class ConstantLike in OpDefinition.h

Diff Detail

Event Timeline

lattner created this revision.Jan 14 2023, 10:06 PM
lattner requested review of this revision.Jan 14 2023, 10:06 PM
jpienaar accepted this revision.Jan 15 2023, 8:51 AM
This revision is now accepted and ready to land.Jan 15 2023, 8:51 AM
This revision was landed with ongoing or failed builds.Jan 15 2023, 9:32 AM
This revision was automatically updated to reflect the committed changes.

Thank you for the review!