[Mlir-commits] [mlir] 254ecfb - [mlir][ods] fix c++11 build
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 8 12:40:18 PST 2021
Author: Mogball
Date: 2021-11-08T20:40:13Z
New Revision: 254ecfbc405ad2d41532fa9d7a2ee82cc5a003a6
URL: https://github.com/llvm/llvm-project/commit/254ecfbc405ad2d41532fa9d7a2ee82cc5a003a6
DIFF: https://github.com/llvm/llvm-project/commit/254ecfbc405ad2d41532fa9d7a2ee82cc5a003a6.diff
LOG: [mlir][ods] fix c++11 build
Added:
Modified:
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
Removed:
################################################################################
diff --git a/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp b/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
index 52e921f2fb27..24dba685af7e 100644
--- a/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
@@ -420,8 +420,9 @@ void AttrOrTypeFormat::genParamsParser(ParamsDirective *el, FmtContext &ctx,
raw_ostream &os) {
os << " // Parse parameter list\n";
llvm::interleave(
- el->getParams(), [&](auto param) { genVariableParser(param, ctx, os); },
- [&]() { genLiteralParser(",", ctx, os); });
+ el->getParams(),
+ [&](auto param) { this->genVariableParser(param, ctx, os); },
+ [&]() { this->genLiteralParser(",", ctx, os); });
}
void AttrOrTypeFormat::genStructParser(StructDirective *el, FmtContext &ctx,
@@ -522,8 +523,9 @@ void AttrOrTypeFormat::genVariablePrinter(const AttrOrTypeParameter ¶m,
void AttrOrTypeFormat::genParamsPrinter(ParamsDirective *el, FmtContext &ctx,
raw_ostream &os) {
llvm::interleave(
- el->getParams(), [&](auto param) { genVariablePrinter(param, ctx, os); },
- [&]() { genLiteralPrinter(",", ctx, os); });
+ el->getParams(),
+ [&](auto param) { this->genVariablePrinter(param, ctx, os); },
+ [&]() { this->genLiteralPrinter(",", ctx, os); });
}
void AttrOrTypeFormat::genStructPrinter(StructDirective *el, FmtContext &ctx,
@@ -531,12 +533,12 @@ void AttrOrTypeFormat::genStructPrinter(StructDirective *el, FmtContext &ctx,
llvm::interleave(
el->getParams(),
[&](auto param) {
- genLiteralPrinter(param.getName(), ctx, os);
- genLiteralPrinter("=", ctx, os);
+ this->genLiteralPrinter(param.getName(), ctx, os);
+ this->genLiteralPrinter("=", ctx, os);
os << tgfmt(" $_printer << ' ';\n", &ctx);
- genVariablePrinter(param, ctx, os);
+ this->genVariablePrinter(param, ctx, os);
},
- [&]() { genLiteralPrinter(",", ctx, os); });
+ [&]() { this->genLiteralPrinter(",", ctx, os); });
}
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list