[Mlir-commits] [mlir] e303a19 - [mlir] Add Adaptor alias
Jacques Pienaar
llvmlistbot at llvm.org
Fri Jun 12 07:38:31 PDT 2020
Author: Jacques Pienaar
Date: 2020-06-12T07:38:12-07:00
New Revision: e303a19cd6d0b7912f1790b38aedc18b373cb27a
URL: https://github.com/llvm/llvm-project/commit/e303a19cd6d0b7912f1790b38aedc18b373cb27a
DIFF: https://github.com/llvm/llvm-project/commit/e303a19cd6d0b7912f1790b38aedc18b373cb27a.diff
LOG: [mlir] Add Adaptor alias
Summary:
Add Adaptor alias alongside OperandAdaptor to make next renaming more
mechanical. OperandAdaptor's are no longer just about operands.
Considered OpAdaptor too, but then noticed we'd mostly end up with
XOp::OpAdaptor which seems redundant.
Differential Revision: https://reviews.llvm.org/D81741
Added:
Modified:
mlir/lib/TableGen/OpClass.cpp
Removed:
################################################################################
diff --git a/mlir/lib/TableGen/OpClass.cpp b/mlir/lib/TableGen/OpClass.cpp
index 43bbe2420a9a..c567c8912b87 100644
--- a/mlir/lib/TableGen/OpClass.cpp
+++ b/mlir/lib/TableGen/OpClass.cpp
@@ -228,6 +228,7 @@ void tblgen::OpClass::writeDeclTo(raw_ostream &os) const {
os << "> {\npublic:\n";
os << " using Op::Op;\n";
os << " using OperandAdaptor = " << className << "OperandAdaptor;\n";
+ os << " using Adaptor = " << className << "OperandAdaptor;\n";
bool hasPrivateMethod = false;
for (const auto &method : methods) {
More information about the Mlir-commits
mailing list