Page MenuHomePhabricator

[mlir][Value] Add v.getDefiningOp<OpTy>()
ClosedPublic

Authored by silvas on Sat, May 9, 5:54 PM.

Details

Summary

This makes a common pattern of
dyn_cast_or_null<OpTy>(v.getDefiningOp()) more concise.

Diff Detail

Event Timeline

silvas created this revision.Sat, May 9, 5:54 PM
Herald added a reviewer: herhut. · View Herald Transcript
Herald added 1 blocking reviewer(s): rriddle. · View Herald Transcript
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
mehdi_amini accepted this revision.Sat, May 9, 6:10 PM
ftynse accepted this revision.Sun, May 10, 4:53 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mon, May 11, 12:56 PM
This revision was automatically updated to reflect the committed changes.