Page MenuHomePhabricator

[mlir][AttrTypeDefGen] Add support for custom parameter comparators
ClosedPublic

Authored by rriddle on Mar 11 2021, 6:09 PM.

Details

Summary

Some parameters to attributes and types rely on special comparison routines other than operator== to ensure equality. This revision adds support for those parameters by allowing them to specify a comparator code block that determines if $_lhs and $_rhs are equal. An example of one of these paramters is APFloat, which requires bitwiseIsEqual for bitwise comparison (which we want for attribute equality).

Diff Detail