[PATCH] D19192: [TableGen] Make an error message slightly more informative
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 15:03:56 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL266823: [TableGen] Make an error message slightly more informative (authored by nha).
Changed prior to commit:
http://reviews.llvm.org/D19192?vs=53992&id=54270#toc
Repository:
rL LLVM
http://reviews.llvm.org/D19192
Files:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Index: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
===================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -2974,9 +2974,16 @@
// fill in the InstResults map.
for (unsigned j = 0, e = I->getNumTrees(); j != e; ++j) {
TreePatternNode *Pat = I->getTree(j);
- if (Pat->getNumTypes() != 0)
+ if (Pat->getNumTypes() != 0) {
+ std::string Types;
+ for (unsigned k = 0, ke = Pat->getNumTypes(); k != ke; ++k) {
+ if (k > 0)
+ Types += ", ";
+ Types += Pat->getExtType(k).getName();
+ }
I->error("Top-level forms in instruction pattern should have"
- " void types");
+ " void types, has types " + Types);
+ }
// Find inputs and outputs, and verify the structure of the uses/defs.
FindPatternInputsAndOutputs(I, Pat, InstInputs, InstResults,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19192.54270.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160419/ccf2d106/attachment.bin>
More information about the llvm-commits
mailing list