diff options
author | Lei Zhang <antiagainst@google.com> | 2019-08-09 19:03:58 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-09 19:04:23 -0700 |
commit | ac68637ba94d05f413b1b963950c300fb2f81a99 (patch) | |
tree | fa09796c3af34c3b170cf2ee087878a0ead7c871 /mlir/test/lib/TestDialect/TestPatterns.cpp | |
parent | 41968fb4753118afe5a9f4fecf184fac90d96fe6 (diff) | |
download | bcm5719-llvm-ac68637ba94d05f413b1b963950c300fb2f81a99.tar.gz bcm5719-llvm-ac68637ba94d05f413b1b963950c300fb2f81a99.zip |
NFC: Refactoring PatternSymbolResolver into SymbolInfoMap
In declarative rewrite rules, a symbol can be bound to op arguments or
results in the source pattern, and it can be bound to op results in the
result pattern. This means given a symbol in the pattern, it can stands
for different things: op operand, op attribute, single op result,
op result pack. We need a better way to model this complexity so that
we can handle according to the specific kind a symbol corresponds to.
Created SymbolInfo class for maintaining the information regarding a
symbol. Also created a companion SymbolInfoMap class for a map of
such symbols, providing insertion and querying depending on use cases.
PiperOrigin-RevId: 262675515
Diffstat (limited to 'mlir/test/lib/TestDialect/TestPatterns.cpp')
0 files changed, 0 insertions, 0 deletions