[Mlir-commits] [mlir] [MLIR][TableGen] Add genMnemonicAlias field for OpAsm{Type, Attr}Interface (PR #131504)
River Riddle
llvmlistbot at llvm.org
Mon Mar 17 11:30:23 PDT 2025
================
@@ -576,6 +585,23 @@ void DefGen::emitTraitMethod(const InterfaceMethod &method) {
std::move(params));
}
+//===----------------------------------------------------------------------===//
+// OpAsm{Type,Attr}Interface Default Method Emission
+
+void DefGen::emitMnemonicAliasMethod() {
+ // If the mnemonic is not set, there is nothing to do.
+ if (!def.getMnemonic()) {
----------------
River707 wrote:
Drop the trivial braces here.
https://github.com/llvm/llvm-project/pull/131504
More information about the Mlir-commits
mailing list