This is an archive of the discontinued LLVM Phabricator instance.

[PatternMatch] Add single index InsertValue matcher.
ClosedPublic

Authored by fhahn on Nov 12 2020, 6:47 AM.

Details

Summary

This patch adds a new matcher for single index InsertValue instructions,
similar to the existing matcher for ExtractValue.

Diff Detail

Event Timeline

fhahn created this revision.Nov 12 2020, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 12 2020, 6:47 AM
fhahn requested review of this revision.Nov 12 2020, 6:47 AM
lebedev.ri accepted this revision.Nov 12 2020, 7:17 AM

LGTM

llvm/include/llvm/IR/PatternMatch.h
2303–2304

Can these be Op0, Op1 instead?

This revision is now accepted and ready to land.Nov 12 2020, 7:17 AM
fhahn added inline comments.Nov 12 2020, 12:38 PM
llvm/include/llvm/IR/PatternMatch.h
2303–2304

Will do thanks.

This revision was landed with ongoing or failed builds.Nov 12 2020, 1:27 PM
This revision was automatically updated to reflect the committed changes.