[TableGen] Support nested dag attributes arguments in the result pattern
authorFeng Liu <fengliuai@google.com>
Tue, 12 Mar 2019 20:55:50 +0000 (13:55 -0700)
committerjpienaar <jpienaar@google.com>
Sat, 30 Mar 2019 00:15:57 +0000 (17:15 -0700)
commitc52a812700ec1544c56b89ed0a1360d9e06b25b1
tree55aa1db8b3be670ca8f195764c4939b9fe5e4d2f
parent6558f80c8d16f66b404cf87c6ae50769848cc4f9
[TableGen] Support nested dag attributes arguments in the result pattern

Add support to create a new attribute from multiple attributes. It extended the
DagNode class to represent attribute creation dag. It also changed the
RewriterGen::emitOpCreate method to support this nested dag emit.

An unit test is added.

PiperOrigin-RevId: 238090229
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/TableGen/Pattern.h
mlir/lib/TableGen/Pattern.cpp
mlir/test/mlir-tblgen/pattern-tAttr.td [new file with mode: 0644]
mlir/tools/mlir-tblgen/RewriterGen.cpp