[PatternMatch] Add single index InsertValue matcher.
authorFlorian Hahn <flo@fhahn.com>
Thu, 12 Nov 2020 20:13:13 +0000 (20:13 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 12 Nov 2020 21:27:18 +0000 (21:27 +0000)
commitc1f6f300404a7c948f849d59f555ce138456a0e5
treeab02d560f0c3cd20c69ca2f1ea988413d4d71072
parent07b568a9c8db8e5d4d4af4c766ecfb38145fb0bf
[PatternMatch] Add single index InsertValue matcher.

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

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D91352
llvm/include/llvm/IR/PatternMatch.h
llvm/unittests/IR/PatternMatch.cpp