This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Transform] Add a new navigation op to retrieve the producer of an operand
ClosedPublic

Authored by nicolasvasilache on Sep 19 2022, 2:57 AM.

Details

Summary

Given an opOperand uniquely determined by the operation %op and the operand number num,
the transform.get_producer_of_operand %op[num] returns the handle to the unique operation
that produced the SSA value used as opOperand.

The transform fails if the operand is a block argument.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Sep 19 2022, 2:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 2:57 AM
chelini accepted this revision.Sep 19 2022, 4:06 AM
chelini added inline comments.
mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
177

corresponds

This revision is now accepted and ready to land.Sep 19 2022, 4:06 AM