[PATCH] D23566: [RISCV 8/10] Add support for all RV32I instructions
Ana Pazos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 13:32:26 PDT 2017
apazos added inline comments.
================
Comment at: lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:272
+ case 'w': Imm |= RISCVFenceField::W; break;
+ default: llvm_unreachable("FenceArg must contain only [iorw]");
+ }
----------------
Another code standard note: be consistent where you put the default case, people usually put it as the first case to avoid forgetting it.
================
Comment at: lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:452
+ // Parse memory base register if present
+ if (getLexer().getKind() == AsmToken::LParen) {
+ return parseMemOpBaseReg(Operands) != MatchOperand_Success;
----------------
code standard reminder: {} are unnecessary with one line statement.
https://reviews.llvm.org/D23566
More information about the llvm-commits
mailing list