From 46ad18fd6a3a5c200eb2807e5060adc84efb8042 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Wed, 11 Oct 2023 14:27:34 +0000 Subject: [PATCH] Add comment --- mlir/tools/mlir-tblgen/OpFormatGen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp index 240780b0abf115..18ca34379a71a0 100644 --- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp +++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp @@ -2009,6 +2009,7 @@ static void genEnumAttrPrinter(const NamedAttribute *var, const Operator &op, " }\n"; } +/// Generate a check that a DefaultValuedAttr has a value that is non-default. static void genNonDefaultValueCheck(MethodBody &body, const Operator &op, AttributeVariable &attrElement) { FmtContext fctx;