This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use ValueRange instead of ArrayRef<Value> in adaptor
ClosedPublic

Authored by jpienaar on May 27 2020, 2:23 PM.

Details

Summary

This allows constructing an operand adaptor from existing op (useful for commonalizing verification as I want to do in a follow up). ValueRange also allows the same code to be used in more instances.

I also addied the ability to use member initializers for the generated adaptor constructors for convenience. It was required for a different version of this but not essential for this one (just matches closer to how one would write the code that is being generated) so I could split it out.

Diff Detail

Event Timeline

jpienaar created this revision.May 27 2020, 2:23 PM
silvas accepted this revision.May 27 2020, 4:07 PM

Nice! I'm really looking forward to this line of work unifying the adaptors with the main flow :)

This revision is now accepted and ready to land.May 27 2020, 4:07 PM
This revision was automatically updated to reflect the committed changes.