This patch adds the AVRAsmParser library.
Details
Diff Detail
Event Timeline
lib/Target/AVR/AsmParser/AVRAsmParser.cpp | ||
---|---|---|
11 | It's not clear why this line is here, I couldn't see any use of std::stringstream, std::stringbuf, etc.? | |
46 | I don't see this being generated. I think you're missing the -gen-asm-matcher line from your CMakeLists.txt. Likewise, I think you're missing the has_asmparser = 1 part of LLVMBuild.txt | |
252 | You might want to make these two generated by TableGen comments consistent. | |
404 | It's not clear why you're starting a block here? |
LGTM with one remaining inline comment.
lib/Target/AVR/AsmParser/AVRAsmParser.cpp | ||
---|---|---|
565 | The recommendation from the coding standards is to avoid "else" if the "then" part of an if statement cannot fall through into the following code. So, if there is "if (...) { return; } else { ... }" then the else is not necessary because the else part can only execute is the condition was false regardless of whether the else is there or not. The same applies to continue/break/goto/etc. Seeing that you switched the code around and indeed avoided else after continue, I realize that the intent of the comment wasn't clear. |
Reworked early returns after else
lib/Target/AVR/AsmParser/AVRAsmParser.cpp | ||
---|---|---|
565 | Have fixed that up now, thanks for the clarification :) |
It's not clear why this line is here, I couldn't see any use of std::stringstream, std::stringbuf, etc.?