This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Fix AnyInteger predicate
ClosedPublic

Authored by antiagainst on Mar 9 2020, 9:30 AM.

Diff Detail

Event Timeline

antiagainst created this revision.Mar 9 2020, 9:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2020, 9:30 AM
stephenneuendorffer added inline comments.
mlir/include/mlir/IR/OpBase.td
318

To be symmetric with isSignlessInteger() and other functions, maybe adding isInteger() which does the isa<IntegerType> check is a good idea?

This revision is now accepted and ready to land.Mar 9 2020, 9:43 AM
rriddle accepted this revision.Mar 9 2020, 9:55 AM
rriddle added inline comments.
mlir/include/mlir/IR/OpBase.td
318

I explicitly removed all of the methods that can be easily checked with isa<>. They only serve as pass-through methods that bloat API surface area. The same methodology applies to methods placed on the Builder.

This revision was automatically updated to reflect the committed changes.