[llvm] r191734 - This patch adds aliases for Mips sub instruction with immediate operands. Corresponding test cases are added.
Nick Lewycky
nicholas at mxc.ca
Tue Oct 1 10:15:23 PDT 2013
Vladimir Medic wrote:
> Author: vmedic
> Date: Tue Oct 1 04:48:56 2013
> New Revision: 191734
>
> URL: http://llvm.org/viewvc/llvm-project?rev=191734&view=rev
> Log:
> This patch adds aliases for Mips sub instruction with immediate operands. Corresponding test cases are added.
[...]
> +MipsAsmParser::OperandMatchResultTy
> +MipsAsmParser::parseInvNum(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
> + const MCExpr *IdVal;
> + // If the first token is '$' we may have register operand.
> + if (Parser.getTok().is(AsmToken::Dollar))
> + return MatchOperand_NoMatch;
> + SMLoc S = Parser.getTok().getLoc();
> + if (getParser().parseExpression(IdVal))
> + return MatchOperand_ParseFail;
> + const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(IdVal);
> + assert( MCE&& "Unexpected MCExpr type.");
This line has too much indentation.
Nick
More information about the llvm-commits
mailing list