[mlir][tblgen] Consistently use `$_ctxt` instead of `$_ctx`
authorMarkus Böck <markus.boeck02@gmail.com>
Tue, 5 Jul 2022 18:04:50 +0000 (20:04 +0200)
committerMarkus Böck <markus.boeck02@gmail.com>
Tue, 5 Jul 2022 18:06:52 +0000 (20:06 +0200)
commitf2beca908d4ec409e4201ee08b1d4a7d9fcb1ab7
treea0c2ab9e495af5e053b573a2b69b239e97066349
parent0bb1bf1b1761a9070540df0ae0e51bc1bfb80ccd
[mlir][tblgen] Consistently use `$_ctxt` instead of `$_ctx`

With the exceptions of AttrOrTypeParameter and DerivedAttr, all of MLIR consistently uses $_ctxt as the substitute variable for the MLIRContext in TableGen C++ code.
Usually this does not matter unless one where to reuse some code in multiple fields but it is still needlessly inconsistent and prone to error.

This patch fixes that by consistently using _$ctxt everywhere.

Differential Revision: https://reviews.llvm.org/D129153
mlir/docs/AttributesAndTypes.md
mlir/include/mlir/IR/AttrTypeBase.td
mlir/include/mlir/IR/OpBase.td
mlir/test/lib/Dialect/Test/TestTypeDefs.td
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp