Add Dialect in op definition to capture prefix and documentation.
authorJacques Pienaar <jpienaar@google.com>
Mon, 29 Apr 2019 16:24:09 +0000 (09:24 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 May 2019 15:20:24 +0000 (08:20 -0700)
commit0ea6154b2a077c4e16549e399b9f3f297aad1a64
tree55ce603fe4b39809458e446fd1458c56a1d1ed70
parentaae8a7446e3894f361ecedb5368dab69ad17e061
Add Dialect in op definition to capture prefix and documentation.

    Enables specifying the documentation for dialect along with defining the ops of the dialect. The doc generator will be expanded in follow up to emit the documentation in the autogenerated files. This is precursor to allowing common base for all ops in a dialect.

    All the dialect documentation is super sparse and just added as placeholder.

    I was tempted (and started) to move ConstantOp to be generated too, but this will be easier post adding extra_methods, so deferring until then.

--

PiperOrigin-RevId: 245759984
26 files changed:
mlir/include/mlir/FxpMathOps/FxpMathOps.td
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/LLVMIR/LLVMOpBase.td
mlir/include/mlir/LLVMIR/LLVMOps.td
mlir/include/mlir/LLVMIR/NVVMOps.td
mlir/include/mlir/Linalg/LinalgOps.td
mlir/include/mlir/Quantization/QuantOps.td
mlir/include/mlir/StandardOps/Ops.td
mlir/include/mlir/TableGen/Operator.h
mlir/lib/TableGen/Operator.cpp
mlir/lib/TableGen/Pattern.cpp
mlir/test/mlir-tblgen/attr-enum.td
mlir/test/mlir-tblgen/directive-verifyUnusedValue.td
mlir/test/mlir-tblgen/op-attribute.td
mlir/test/mlir-tblgen/op-decl.td
mlir/test/mlir-tblgen/op-operand.td
mlir/test/mlir-tblgen/op-result.td
mlir/test/mlir-tblgen/pattern-NativeCodeCall.td
mlir/test/mlir-tblgen/pattern-allof-attr.td
mlir/test/mlir-tblgen/pattern-attr.td
mlir/test/mlir-tblgen/pattern-benefit.td
mlir/test/mlir-tblgen/pattern-bound-symbol.td
mlir/test/mlir-tblgen/pattern-multi-result-op.td
mlir/test/mlir-tblgen/pattern.td
mlir/test/mlir-tblgen/predicate.td
mlir/test/mlir-tblgen/reference-impl.td