[PATCH] [PATCH][mips] Add range checks and transformation to octeon instructions in AsmParser.

Kai Nacke kai.nacke at redstar.de
Tue Jan 27 11:13:57 PST 2015


Thanks. Committed as r227225.

Regards,
Kai

On 22.01.2015 17:16, Daniel Sanders wrote:
> LGTM with a couple nits. REPOSITORY rL LLVM ================ Comment at:
> lib/Target/Mips/AsmParser/MipsAsmParser.cpp:1177 @@ -1170,1 +1176,3 @@ +
> case Mips::BBIT132: + assert(hasCnMips() && "instruction only valid for
> octeon cpus"); case Mips::BEQ: ---------------- Please add a comment to
> show that the fall through is deliberate. ================ Comment at:
> lib/Target/Mips/AsmParser/MipsAsmParser.cpp:1254 @@ +1253,3 @@ +
> assert(MCID.getNumOperands() == 3 && "unexpected number of operands"); +
> /* The offset is handled above */ + Opnd = Inst.getOperand(1);
> ---------------- C++ style comments are preferred. Likewise for the
> others below. ================ Comment at:
> lib/Target/Mips/AsmParser/MipsAsmParser.cpp:1264 @@ +1263,3 @@ +
> Inst.setOpcode(Opcode == Mips::BBIT0 ? Mips::BBIT032 + : Mips::BBIT132);
> + Inst.getOperand(1).setImm(Imm - 32); ---------------- Indentation. The
> ':' should line up with the '?'. http://reviews.llvm.org/D7080 EMAIL
> PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/
> _______________________________________________ llvm-commits mailing
> list llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list