You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Op classes are sets of ops, providing a common base class in the op class hierarchy,
which can be used to group sets of ops with a common property.
Before this patch, op class only support `isa<>` checks, but not visiting.
This was because visiting relies on `OpDescription::get<OpT>`, which is only supported
for concrete ops, but not op classes.
This patch changes that by introducing a new `OpDescription::getAll<OpT>` template
which returns an `ArrayRef` of OpDescriptions. The existing `get<OpT>` template
is implemented in terms of the new `getAll` template.
Visitor code is changed to use `getAll` instead, and handle non-trivial array refs
(representing op classes) accordingly, using the already existing mechanism for op sets.
0 commit comments