Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:Operands

39   MBlazeOperand *ParseMemory(SmallVectorImpl<MCParsedAsmOperand*> &Operands);
43 MBlazeOperand* ParseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands);
50 SmallVectorImpl<MCParsedAsmOperand*> &Operands,
67 SmallVectorImpl<MCParsedAsmOperand*> &Operands);
188 assert(N == 1 && "Invalid number of operands!");
193 assert(N == 1 && "Invalid number of operands!");
198 assert(N == 1 && "Invalid number of operands!");
203 assert(N == 2 && "Invalid number of operands!");
319 SmallVectorImpl<MCParsedAsmOperand*> &Operands,
325 switch (MatchInstructionImpl(Operands, Inst, ErrorInfo)) {
335 return Error(IDLoc, "unable to convert operands to instruction");
339 if (ErrorInfo >= Operands.size())
340 return Error(IDLoc, "too few operands for instruction");
342 ErrorLoc = ((MBlazeOperand*)Operands[ErrorInfo])->getStartLoc();
354 ParseMemory(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
355 if (Operands.size() != 4)
358 MBlazeOperand &Base = *(MBlazeOperand*)Operands[2];
359 MBlazeOperand &Offset = *(MBlazeOperand*)Operands[3];
381 delete Operands.pop_back_val();
382 delete Operands.pop_back_val();
383 Operands.push_back(Op);
457 ParseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
478 // Push the parsed operand into the list of operands
479 Operands.push_back(Op);
483 /// Parse an mblaze instruction mnemonic followed by its operands.
486 SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
487 // The first operands is the token for the instruction name
489 Operands.push_back(MBlazeOperand::CreateToken(Name.substr(0,dotLoc),NameLoc));
491 Operands.push_back(MBlazeOperand::CreateToken(Name.substr(dotLoc),NameLoc));
493 // If there are no more operands then finish
498 if (!ParseOperand(Operands))
507 if (!ParseOperand(Operands))
512 // replace the last two operands (base+offset) with a single
517 return (ParseMemory(Operands) == NULL);