Lines Matching defs:LoongArchAsmParser

1 // LoongArchAsmParser.cpp - Parse LoongArch assembly to MCInst instructions -=//
34 class LoongArchAsmParser : public MCTargetAsmParser {
194 LoongArchAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser,
287 return LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
297 return LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
337 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
360 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
384 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
408 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
430 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
452 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
476 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
492 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
510 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
525 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
542 : LoongArchAsmParser::classifySymbolRef(getImm(), VK) &&
670 bool LoongArchAsmParser::parseRegister(MCRegister &Reg, SMLoc &StartLoc,
682 ParseStatus LoongArchAsmParser::tryParseRegister(MCRegister &Reg,
701 bool LoongArchAsmParser::classifySymbolRef(const MCExpr *Expr,
716 ParseStatus LoongArchAsmParser::parseRegister(OperandVector &Operands) {
736 ParseStatus LoongArchAsmParser::parseImmediate(OperandVector &Operands) {
765 LoongArchAsmParser::parseOperandWithModifier(OperandVector &Operands) {
796 ParseStatus LoongArchAsmParser::parseSImm26Operand(OperandVector &Operands) {
820 ParseStatus LoongArchAsmParser::parseAtomicMemOp(OperandVector &Operands) {
840 bool LoongArchAsmParser::parseOperand(OperandVector &Operands,
859 bool LoongArchAsmParser::parseInstruction(ParseInstructionInfo &Info,
887 void LoongArchAsmParser::emitLAInstSeq(MCRegister DestReg, MCRegister TmpReg,
893 for (LoongArchAsmParser::Inst &Inst : Insts) {
965 void LoongArchAsmParser::emitLoadAddressAbs(MCInst &Inst, SMLoc IDLoc,
981 Insts.push_back(LoongArchAsmParser::Inst(
983 Insts.push_back(LoongArchAsmParser::Inst(
987 Insts.push_back(LoongArchAsmParser::Inst(
989 Insts.push_back(LoongArchAsmParser::Inst(
996 void LoongArchAsmParser::emitLoadAddressPcrel(MCInst &Inst, SMLoc IDLoc,
1007 Insts.push_back(LoongArchAsmParser::Inst(
1010 LoongArchAsmParser::Inst(ADDI, LoongArchMCExpr::VK_LoongArch_PCALA_LO12));
1016 void LoongArchAsmParser::emitLoadAddressPcrelLarge(MCInst &Inst, SMLoc IDLoc,
1030 Insts.push_back(LoongArchAsmParser::Inst(
1032 Insts.push_back(LoongArchAsmParser::Inst(
1034 Insts.push_back(LoongArchAsmParser::Inst(
1036 Insts.push_back(LoongArchAsmParser::Inst(
1038 Insts.push_back(LoongArchAsmParser::Inst(LoongArch::ADD_D));
1043 void LoongArchAsmParser::emitLoadAddressGot(MCInst &Inst, SMLoc IDLoc,
1064 Insts.push_back(LoongArchAsmParser::Inst(
1066 Insts.push_back(LoongArchAsmParser::Inst(
1070 Insts.push_back(LoongArchAsmParser::Inst(
1072 Insts.push_back(LoongArchAsmParser::Inst(
1075 Insts.push_back(LoongArchAsmParser::Inst(LD));
1082 Insts.push_back(LoongArchAsmParser::Inst(
1085 LoongArchAsmParser::Inst(LD, LoongArchMCExpr::VK_LoongArch_GOT_PC_LO12));
1091 void LoongArchAsmParser::emitLoadAddressGotLarge(MCInst &Inst, SMLoc IDLoc,
1105 Insts.push_back(LoongArchAsmParser::Inst(
1107 Insts.push_back(LoongArchAsmParser::Inst(
1109 Insts.push_back(LoongArchAsmParser::Inst(
1111 Insts.push_back(LoongArchAsmParser::Inst(
1113 Insts.push_back(LoongArchAsmParser::Inst(LoongArch::LDX_D));
1118 void LoongArchAsmParser::emitLoadAddressTLSLE(MCInst &Inst, SMLoc IDLoc,
1128 Insts.push_back(LoongArchAsmParser::Inst(
1130 Insts.push_back(LoongArchAsmParser::Inst(
1136 void LoongArchAsmParser::emitLoadAddressTLSIE(MCInst &Inst, SMLoc IDLoc,
1157 Insts.push_back(LoongArchAsmParser::Inst(
1159 Insts.push_back(LoongArchAsmParser::Inst(
1163 Insts.push_back(LoongArchAsmParser::Inst(
1165 Insts.push_back(LoongArchAsmParser::Inst(
1168 Insts.push_back(LoongArchAsmParser::Inst(LD));
1176 Insts.push_back(LoongArchAsmParser::Inst(
1178 Insts.push_back(LoongArchAsmParser::Inst(
1185 void LoongArchAsmParser::emitLoadAddressTLSIELarge(MCInst &Inst, SMLoc IDLoc,
1199 Insts.push_back(LoongArchAsmParser::Inst(
1201 Insts.push_back(LoongArchAsmParser::Inst(
1203 Insts.push_back(LoongArchAsmParser::Inst(
1205 Insts.push_back(LoongArchAsmParser::Inst(
1207 Insts.push_back(LoongArchAsmParser::Inst(LoongArch::LDX_D));
1212 void LoongArchAsmParser::emitLoadAddressTLSLD(MCInst &Inst, SMLoc IDLoc,
1231 Insts.push_back(LoongArchAsmParser::Inst(
1233 Insts.push_back(LoongArchAsmParser::Inst(
1237 Insts.push_back(LoongArchAsmParser::Inst(
1239 Insts.push_back(LoongArchAsmParser::Inst(
1249 Insts.push_back(LoongArchAsmParser::Inst(
1251 Insts.push_back(LoongArchAsmParser::Inst(
1258 void LoongArchAsmParser::emitLoadAddressTLSLDLarge(MCInst &Inst, SMLoc IDLoc,
1272 Insts.push_back(LoongArchAsmParser::Inst(
1274 Insts.push_back(LoongArchAsmParser::Inst(
1276 Insts.push_back(LoongArchAsmParser::Inst(
1278 Insts.push_back(LoongArchAsmParser::Inst(
1280 Insts.push_back(LoongArchAsmParser::Inst(LoongArch::ADD_D));
1285 void LoongArchAsmParser::emitLoadAddressTLSGD(MCInst &Inst, SMLoc IDLoc,
1304 Insts.push_back(LoongArchAsmParser::Inst(
1306 Insts.push_back(LoongArchAsmParser::Inst(
1310 Insts.push_back(LoongArchAsmParser::Inst(
1312 Insts.push_back(LoongArchAsmParser::Inst(
1322 Insts.push_back(LoongArchAsmParser::Inst(
1324 Insts.push_back(LoongArchAsmParser::Inst(
1331 void LoongArchAsmParser::emitLoadAddressTLSGDLarge(MCInst &Inst, SMLoc IDLoc,
1345 Insts.push_back(LoongArchAsmParser::Inst(
1347 Insts.push_back(LoongArchAsmParser::Inst(
1349 Insts.push_back(LoongArchAsmParser::Inst(
1351 Insts.push_back(LoongArchAsmParser::Inst(
1353 Insts.push_back(LoongArchAsmParser::Inst(LoongArch::ADD_D));
1358 void LoongArchAsmParser::emitLoadAddressTLSDesc(MCInst &Inst, SMLoc IDLoc,
1382 Insts.push_back(LoongArchAsmParser::Inst(
1384 Insts.push_back(LoongArchAsmParser::Inst(
1388 Insts.push_back(LoongArchAsmParser::Inst(
1390 Insts.push_back(LoongArchAsmParser::Inst(
1394 Insts.push_back(LoongArchAsmParser::Inst(
1396 Insts.push_back(LoongArchAsmParser::Inst(
1408 Insts.push_back(LoongArchAsmParser::Inst(
1410 Insts.push_back(LoongArchAsmParser::Inst(
1413 LoongArchAsmParser::Inst(LD, LoongArchMCExpr::VK_LoongArch_TLS_DESC_LD));
1414 Insts.push_back(LoongArchAsmParser::Inst(
1421 void LoongArchAsmParser::emitLoadAddressTLSDescLarge(MCInst &Inst, SMLoc IDLoc,
1437 Insts.push_back(LoongArchAsmParser::Inst(
1439 Insts.push_back(LoongArchAsmParser::Inst(
1441 Insts.push_back(LoongArchAsmParser::Inst(
1443 Insts.push_back(LoongArchAsmParser::Inst(
1445 Insts.push_back(LoongArchAsmParser::Inst(LoongArch::ADD_D));
1446 Insts.push_back(LoongArchAsmParser::Inst(
1448 Insts.push_back(LoongArchAsmParser::Inst(
1454 void LoongArchAsmParser::emitLoadImm(MCInst &Inst, SMLoc IDLoc,
1494 void LoongArchAsmParser::emitFuncCall36(MCInst &Inst, SMLoc IDLoc,
1524 bool LoongArchAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
1589 unsigned LoongArchAsmParser::checkTargetMatchPredicate(MCInst &Inst) {
1651 LoongArchAsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
1669 bool LoongArchAsmParser::generateImmOutOfRangeError(
1676 bool LoongArchAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
1918 bool LoongArchAsmParser::parseDirectiveOption() {
1975 ParseStatus LoongArchAsmParser::parseDirective(AsmToken DirectiveID) {
1983 RegisterMCAsmParser<LoongArchAsmParser> X(getTheLoongArch32Target());
1984 RegisterMCAsmParser<LoongArchAsmParser> Y(getTheLoongArch64Target());