We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35a16d commit 8ee2f6fCopy full SHA for 8ee2f6f
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
@@ -154,11 +154,6 @@ static bool shouldPrintQualified(ParameterElement *param) {
154
if (parameter.getPrinter())
155
return false;
156
157
- if (const llvm::Init *init = parameter.getDef())
158
- if (const auto *defInit = dyn_cast<llvm::DefInit>(init))
159
- if (defInit->getDef()->isSubClassOf("EnumAttrInfo"))
160
- return false;
161
-
162
if (cppType.contains("mlir::Attribute") || cppType.contains("mlir::Type"))
163
return true;
164
0 commit comments