This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add a NoRegionArguments trait
ClosedPublic

Authored by jurahul on Jul 1 2020, 5:54 PM.

Details

Summary

Diff Detail

Event Timeline

jurahul created this revision.Jul 1 2020, 5:54 PM
mehdi_amini accepted this revision.Jul 1 2020, 7:24 PM
This revision is now accepted and ready to land.Jul 1 2020, 7:24 PM
This revision was automatically updated to reflect the committed changes.

Did you consider using a per-region constraint in ODS instead?

mlir/lib/IR/Operation.cpp
1025

nit: Can you merge this condition into the previous else?

1026

nit: Add braces here as this body isn't "trivial".

1029

nit: Drop else after a return.