[PATCH] D80245: [mlir][SPIRV] Fix blocks nested too deeply error.
Mahesh Ravishankar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 14:54:47 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd5b1643c74ee: [mlir][SPIRV] Fix blocks nested too deeply error. (authored by mravishankar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80245/new/
https://reviews.llvm.org/D80245
Files:
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
Index: mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
===================================================================
--- mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
+++ mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
@@ -707,7 +707,7 @@
static void initDispatchSerializationFn(StringRef opVar, raw_ostream &os) {
os << formatv(
"LogicalResult Serializer::dispatchToAutogenSerialization(Operation "
- "*{0}) {{\n ",
+ "*{0}) {{\n",
opVar);
}
@@ -721,18 +721,15 @@
os << tabs
<< formatv(" return processOp(cast<{0}>({1}));\n",
op.getQualCppClassName(), opVar);
- os << tabs << "} else";
+ os << tabs << "}\n";
}
/// Generates the epilogue for the function that dispatches the serialization of
/// the operation.
static void finalizeDispatchSerializationFn(StringRef opVar, raw_ostream &os) {
- os << " {\n";
os << formatv(
- " return {0}->emitError(\"unhandled operation serialization\");\n",
+ " return {0}->emitError(\"unhandled operation serialization\");\n",
opVar);
- os << " }\n";
- os << " return success();\n";
os << "}\n\n";
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80245.265053.patch
Type: text/x-patch
Size: 1124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200519/04b11e53/attachment.bin>
More information about the llvm-commits
mailing list