This gives a nice message about the location of errors in a large
tablegen file, which is much more useful for users
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Ping... in general is there an issue converting asserts() to proper error messages in tablegen?
Comment Actions
Seems fine, but is there a way to write this in tablegen that would trigger the assert?
Comment Actions
Yes, I hit it with an out of tree backend, but I don't have an easy way to recreate it. Are you concerned about a test?
Comment Actions
I'm not all that concerned about a test just trying to get my head around this. I just realized this is counting the number of results from the thing that is being cast which makes a lot more sense. I thought it was trying to count the number of results for the ValueType itself and I couldn't figure out how to write that.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp | ||
---|---|---|
2857 | case -> cast ? |
llvm/utils/TableGen/CodeGenDAGPatterns.cpp | ||
---|---|---|
2857 | ooo yeah, I'll fix that. |
case -> cast ?