This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Transform] Add transform.any_param type
ClosedPublic

Authored by qedawkins on Jul 21 2023, 9:21 AM.

Details

Summary

Introduces a generic parameter type intended for transform dialect use
cases that uses/manipulates the underlying attribute (e.g. op
annotation). Includes a disclaimer that mixing parameter based and
attribute based control is discouraged.

Diff Detail

Event Timeline

qedawkins created this revision.Jul 21 2023, 9:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2023, 9:21 AM
qedawkins requested review of this revision.Jul 21 2023, 9:21 AM
qedawkins added inline comments.Jul 21 2023, 9:22 AM
mlir/include/mlir/Dialect/Transform/IR/TransformTypes.td
63

Is there a better place in the dialect documentation to put this disclaimer? I could not find an obvious place to put it.

ftynse accepted this revision.Jul 24 2023, 12:47 AM
ftynse added inline comments.
mlir/include/mlir/Dialect/Transform/IR/TransformTypes.td
63

In docs/Dialect/Transform.md, there must be a sentence describing what parameters are. That would be a good place. Probably turning it into a full paragraph with an example of what we understand by "parameter-based control".

This revision is now accepted and ready to land.Jul 24 2023, 12:47 AM

Add docs explaining parameter control

qedawkins added inline comments.Jul 25 2023, 11:48 PM
mlir/include/mlir/Dialect/Transform/IR/TransformTypes.td
63

I added a section above. Please confirm that what I wrote there matches your thinking and/or the example makes sense.

ftynse accepted this revision.Jul 27 2023, 4:23 AM

Let's go with this, I can always rephrase later.

This revision was automatically updated to reflect the committed changes.