[TableGen] Unify cOp and tAttr into NativeCodeCall
authorLei Zhang <antiagainst@google.com>
Mon, 22 Apr 2019 21:13:45 +0000 (14:13 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 24 Apr 2019 05:02:00 +0000 (22:02 -0700)
commitd0e2019d39dd38a8d34e619feaf1d10a4a1db9e2
treee6823a3eb3ea26aab69448d7b465294d6d9a0401
parent09b623aa9374c4dc8f53949b85e9d5c84c48cf20
[TableGen] Unify cOp and tAttr into NativeCodeCall

    Both cOp and tAttr were used to perform some native C++ code expression.
    Unifying them simplifies the concepts and reduces cognitive burden.

--

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