This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add traits for verifying the number of successors and providing relevant accessors.
ClosedPublic

Authored by rriddle on Feb 27 2020, 4:42 PM.

Details

Summary

This allows for simplifying OpDefGen, as well providing specializing accessors for the different successor counts. This mirrors the existing traits for operands and results.

Diff Detail