This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Add op for adding attributes to payload IR
ClosedPublic

Authored by qedawkins on May 29 2023, 11:50 PM.

Details

Summary

The ability to add attributes to payload IR is useful functionality
independent of any dialect. This is added here through transform.annotate
by enabling attributes tied to a TransformParamTypeInterface (which
internally refers to an Attribute) to be added to a target operation by
name.

The AnnotateOp does not produce a new handle as no existing handles
should be affected by adding an attribute. Existing attributes on
the payload with the same name will be overwritten.

Diff Detail

Event Timeline

qedawkins created this revision.May 29 2023, 11:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2023, 11:50 PM
qedawkins requested review of this revision.May 29 2023, 11:50 PM
ftynse accepted this revision.May 30 2023, 7:06 AM
This revision is now accepted and ready to land.May 30 2023, 7:06 AM