llvm-project/mlir/lib/TableGen
Lei Zhang a57b398906 [TableGen] Assign created ops to variables and rewrite with PatternRewriter::replaceOp()
Previously we were using PatternRewrite::replaceOpWithNewOp() to both create the new op
inline and rewrite the matched op. That does not work well if we want to generate multiple
ops in a sequence. To support that, this CL changed to assign each newly created op to a
separate variable.

This CL also refactors how PatternEmitter performs the directive dispatch logic.

PiperOrigin-RevId: 233206819
2019-03-29 16:22:53 -07:00
..
Argument.cpp [tablegen] Use tblgen:: classes for NamedAttribute and Operand fields 2019-03-29 16:02:23 -07:00
Attribute.cpp [TableGen] Use tblgen::DagLeaf to model DAG arguments 2019-03-29 16:06:31 -07:00
Operator.cpp [TableGen] Model variadic operands using Variadic<Type> 2019-03-29 16:16:28 -07:00
Pattern.cpp [TableGen] Assign created ops to variables and rewrite with PatternRewriter::replaceOp() 2019-03-29 16:22:53 -07:00
Predicate.cpp TableGen: implement predicate tree and basic simplification 2019-03-29 15:22:58 -07:00
Type.cpp [TableGen] Model variadic operands using Variadic<Type> 2019-03-29 16:16:28 -07:00