Home
last modified time | relevance | path

Searched refs:getLexer (Results 1 – 25 of 27) sorted by relevance

12

/freebsd-12.1/contrib/llvm/lib/MC/MCParser/
H A DELFAsmParser.cpp224 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize()
243 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
393 MCAsmLexer &L = getLexer(); in maybeParseSectionType()
426 MCAsmLexer &L = getLexer(); in parseGroup()
448 MCAsmLexer &L = getLexer(); in parseMetadataSym()
462 MCAsmLexer &L = getLexer(); in maybeParseUniqueID()
555 MCAsmLexer &L = getLexer(); in ParseSectionArguments()
696 if (getLexer().is(AsmToken::Comma)) in ParseDirectiveType()
715 SMLoc TypeLoc = getLexer().getLoc(); in ParseDirectiveType()
853 SMLoc FromLoc = getLexer().getLoc(); in ParseDirectiveCGProfile()
[all …]
H A DCOFFAsmParser.cpp373 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
388 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
475 if (getLexer().is(AsmToken::Plus)) { in ParseDirectiveSecRel32()
476 OffsetLoc = getLexer().getLoc(); in ParseDirectiveSecRel32()
505 if (getLexer().is(AsmToken::Plus) || getLexer().is(AsmToken::Minus)) { in ParseDirectiveRVA()
506 OffsetLoc = getLexer().getLoc(); in ParseDirectiveRVA()
665 if (getLexer().is(AsmToken::Comma)) { in ParseSEHDirectiveHandler()
779 if (getLexer().is(AsmToken::At)) { in ParseSEHDirectivePushFrame()
805 if (getLexer().isNot(AsmToken::At)) in ParseAtUnwindOrAtExcept()
807 SMLoc startLoc = getLexer().getLoc(); in ParseAtUnwindOrAtExcept()
[all …]
H A DDarwinAsmParser.cpp531 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveDesc()
643 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLsym()
666 SMLoc Loc = getLexer().getLoc(); in parseDirectiveSection()
673 if (!getLexer().is(AsmToken::Comma)) in parseDirectiveSection()
831 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveTBSS()
844 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveTBSS()
850 if (getLexer().is(AsmToken::Comma)) { in parseDirectiveTBSS()
916 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveZerofill()
929 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveZerofill()
935 if (getLexer().is(AsmToken::Comma)) { in parseDirectiveZerofill()
[all …]
H A DMCAsmParser.cpp35 return getLexer().getTok(); in getTok()
85 return Error(getLexer().getLoc(), Msg, Range); in TokError()
100 getLexer().Lex(); in Error()
H A DAsmParser.cpp3811 Loc = getLexer().getLoc(); in parseDirectiveCVDefRange()
3817 Loc = getLexer().getLoc(); in parseDirectiveCVDefRange()
3878 SMLoc DirLoc = getLexer().getLoc(); in parseDirectiveCVFPOData()
4227 if (getLexer().is(AsmToken::Comma)) in parseDirectiveMacro()
4302 if (getLexer().is(AsmToken::Eof)) in parseDirectiveMacro()
4515 SMLoc ExprLoc = getLexer().getLoc(); in parseDirectiveBundleAlignMode()
4607 SMLoc ExprLoc = getLexer().getLoc(); in parseDirectiveDCB()
4739 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveComm()
4752 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveComm()
4812 SMLoc Loc = getLexer().getLoc(); in parseDirectiveAbort()
[all …]
H A DWasmAsmParser.cpp53 Lexer = &Parser->getLexer(); in Initialize()
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp67 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anonebdbea530111::MSP430AsmParser
348 getLexer().Lex(); // Eat '$' in parseJccInstruction()
361 getLexer().getLoc())); in parseJccInstruction()
364 SMLoc Loc = getLexer().getLoc(); in parseJccInstruction()
396 getLexer().Lex(); // Eat ',' in ParseInstruction()
402 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
436 switch (getLexer().getKind()) { in ParseOperand()
477 getLexer().Lex(); // Eat '&' in ParseOperand()
490 getLexer().Lex(); // Eat '@' in ParseOperand()
497 getLexer().Lex(); // Eat '+' in ParseOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp347 getLexer().Lex(); in parseOperandAsOperator()
355 switch (getLexer().getKind()) { in parseOperandAsOperator()
358 if (getLexer().peekTok().is(AsmToken::Integer)) in parseOperandAsOperator()
377 getLexer().Lex(); in parseOperandAsOperator()
393 getLexer().Lex(); in parseOperandAsOperator()
409 switch (getLexer().getKind()) { in parseRegister()
419 getLexer().Lex(); in parseRegister()
426 switch (getLexer().getKind()) { in parseImmediate()
476 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
481 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp1911 switch(getLexer().getKind()) { in parseImm()
2581 if (getLexer().isNot(AsmToken::Integer) && getLexer().isNot(AsmToken::Identifier)) { in ParseAsAbsoluteExpression()
3086 getLexer().setSkipSpace(false); in ParseDirectiveHSAMetadata()
3110 getLexer().setSkipSpace(true); in ParseDirectiveHSAMetadata()
3344 switch(getLexer().getKind()) { in parseIntWithPrefix()
3456 switch(getLexer().getKind()) { in parseNamedBit()
3757 if (getLexer().is(AsmToken::Amp) || getLexer().is(AsmToken::Comma)) { in parseCnt()
3773 switch(getLexer().getKind()) { in parseSWaitCntOps()
3863 switch(getLexer().getKind()) { in parseHwreg()
4151 switch(getLexer().getKind()) { in parseSendMsgOp()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp99 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anon541144770111::AVRAsmParser
351 if (Parser.getLexer().peekTok().is(AsmToken::Colon)) { in parseRegister()
411 size_t ReadCount = Parser.getLexer().peekTokens(tokens); in tryParseRelocExpression()
419 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression()
490 switch (getLexer().getKind()) { in parseOperand()
509 switch (getLexer().peekTok().getKind()) { in parseOperand()
574 if (getLexer().is(AsmToken::Comma)) { in eatComma()
587 while (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
599 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
606 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/MC/MCParser/
H A DMCAsmParserExtension.h58 MCAsmLexer &getLexer() { return getParser().getLexer(); } in getLexer() function
59 const MCAsmLexer &getLexer() const { in getLexer() function
60 return const_cast<MCAsmParserExtension *>(this)->getLexer(); in getLexer()
H A DMCAsmParser.h150 virtual MCAsmLexer &getLexer() = 0;
151 const MCAsmLexer &getLexer() const { in getLexer() function
152 return const_cast<MCAsmParser*>(this)->getLexer(); in getLexer()
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp927 switch (getLexer().getKind()) { in parseRegister()
937 getLexer().UnLex(Buf[0]); in parseRegister()
945 getLexer().Lex(); in parseRegister()
962 switch (getLexer().getKind()) { in parseCSRSystemRegister()
1028 switch (getLexer().getKind()) { in parseImmediate()
1125 if (getLexer().isNot(AsmToken::LParen)) { in parseMemOpBaseReg()
1138 if (getLexer().isNot(AsmToken::RParen)) { in parseMemOpBaseReg()
1169 if (getLexer().is(AsmToken::LParen)) in parseOperand()
1210 while (getLexer().is(AsmToken::Comma)) { in ParseInstruction()
1212 getLexer().Lex(); in ParseInstruction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp664 if (getLexer().is(AsmToken::Comma)) { in ParseInstruction()
666 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
671 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
675 while (getLexer().is(AsmToken::Comma) || getLexer().is(AsmToken::Plus)) { in ParseInstruction()
683 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
689 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
726 switch (getLexer().getKind()) { in parseMEMOperand()
769 SMLoc TagStart = getLexer().getLoc(); in parseMembarTag()
811 if (getLexer().is(AsmToken::LBrac)) { in parseOperand()
838 if (!getLexer().is(AsmToken::RBrac)) in parseOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp1622 getLexer().Lex(); in ParseIntelInlineAsmIdentifier()
1668 if (!getLexer().is(AsmToken::Minus)) in ParseRoundingModeOp()
1672 if (!getLexer().is(AsmToken::RCurly)) in ParseRoundingModeOp()
1850 if (getLexer().is(AsmToken::LCurly)) in ParseIntelOperand()
1942 switch (getLexer().getKind()) { in ParseATTOperand()
2014 if (!getLexer().is(AsmToken::RCurly)) in ParseZ()
2026 if (getLexer().is(AsmToken::LCurly)) { in HandleAVX512Operand()
2194 SMLoc BaseLoc = getLexer().getLoc(); in ParseMemOperand()
2199 if (getLexer().isNot(AsmToken::Comma) && getLexer().isNot(AsmToken::RParen)) { in ParseMemOperand()
2527 if (getLexer().is(AsmToken::Star)) in ParseInstruction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp5735 switch (getLexer().getKind()) { in parseOperand()
6018 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
6141 SMLoc S = getLexer().getLoc(); in parseJumpTarget()
6199 SMLoc E = getLexer().getLoc(); in parseRegisterList()
6373 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
6383 SMLoc Loc = getLexer().getLoc(); in reportParseError()
6748 SMLoc Loc = getLexer().getLoc(); in parseSetPopDirective()
6999 SMLoc Loc = getLexer().getLoc(); in eatComma()
7538 MCAsmLexer &Lexer = getLexer(); in parseDirectiveModule()
7779 MCAsmLexer &Lexer = getLexer(); in parseDirectiveModuleFP()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp110 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anon6a7112790111::HexagonAsmParser
600 MCAsmLexer &Lexer = getLexer(); in eatToEndOfPacket()
746 SMLoc SizeLoc = getLexer().getLoc(); in ParseDirectiveComm()
752 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveComm()
868 MCAsmLexer &Lexer = getLexer(); in parseOperand()
923 MCAsmLexer &Lexer = getLexer(); in isLabel()
963 MCAsmLexer &Lexer = getLexer(); in ParseRegister()
964 StartLoc = getLexer().getLoc(); in ParseRegister()
1046 MCAsmLexer &Lexer = getLexer(); in parseExpression()
1096 MCAsmLexer &Lexer = getLexer(); in parseInstruction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/Utils/
H A DAMDKernelCodeTUtils.cpp122 if (MCParser.getLexer().isNot(AsmToken::Equal)) { in expectAbsExpression()
126 MCParser.getLexer().Lex(); in expectAbsExpression()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp848 if (getLexer().is(AsmToken::LParen)) { in parseAddress()
851 if (getLexer().is(AsmToken::Percent)) { in parseAddress()
863 if (getLexer().is(AsmToken::Comma)) { in parseAddress()
871 if (getLexer().isNot(AsmToken::RParen)) in parseAddress()
1059 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveInsn()
1153 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
1160 while (getLexer().is(AsmToken::Comma)) { in ParseInstruction()
1166 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
1167 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
1323 if (AllowTLS && getLexer().is(AsmToken::Colon)) { in parsePCRel()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp1399 switch (getLexer().getKind()) { in ParseDarwinExpression()
1417 if (getLexer().isNot(AsmToken::LParen)) in ParseDarwinExpression()
1428 if (getLexer().isNot(AsmToken::RParen)) in ParseDarwinExpression()
1446 switch (getLexer().getKind()) { in ParseOperand()
1498 if (TLSCall && getLexer().is(AsmToken::LParen)) { in ParseOperand()
1505 if (getLexer().isNot(AsmToken::RParen)) in ParseOperand()
1514 if (!TLSCall && getLexer().is(AsmToken::LParen)) { in ParseOperand()
1519 switch (getLexer().getKind()) { in ParseOperand()
1678 while (getLexer().isNot(AsmToken::EndOfStatement) in ParseDirectiveTC()
1679 && getLexer().isNot(AsmToken::Comma)) in ParseDirectiveTC()
/freebsd-12.1/contrib/llvm/tools/llvm-mca/
H A DCodeRegionGenerator.cpp116 MCAsmLexer &Lexer = Parser->getLexer(); in parseCodeRegions()
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp2773 if (!Hash && getLexer().isNot(AsmToken::Integer)) { in tryParseOptionalShiftExtend()
3341 Parser.getLexer().UnLex(LCurly); in tryParseVectorList()
3506 bool NextIsVL = Parser.getLexer().peekTok().getString().equals_lower("vl"); in parseOptionalMulOperand()
3507 bool NextIsHash = Parser.getLexer().peekTok().is(AsmToken::Hash); in parseOptionalMulOperand()
3562 switch (getLexer().getKind()) { in parseOperand()
3629 if (Parser.getLexer().peekTok().is(AsmToken::Real)) in parseOperand()
3833 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
5165 if (getLexer().isNot(AsmToken::Identifier)) in parseDirectiveArchExtension()
5166 return Error(getLexer().getLoc(), "expected architecture extension name"); in parseDirectiveArchExtension()
5279 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveInst()
/freebsd-12.1/contrib/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp300 Parser->getLexer().setLexMasmIntegers(LexMasmIntegers); in AssembleInput()
/freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp162 Parser->getLexer().setLexMasmIntegers(true); in EmitInlineAsm()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp4683 MCAsmLexer &Lexer = getLexer(); in parseModImm()
5418 switch (getLexer().getKind()) { in parseOperand()
5545 if (getLexer().is(AsmToken::Hash)) in parsePrefix()
5552 if (getLexer().isNot(AsmToken::Identifier)) { in parsePrefix()
5609 if (getLexer().isNot(AsmToken::Colon)) { in parsePrefix()
10189 SMLoc OffsetLoc = getLexer().getLoc(); in parseDirectiveUnwindRaw()
10209 SMLoc OpcodeLoc = getLexer().getLoc(); in parseDirectiveUnwindRaw()
10225 SMLoc OpcodeLoc = getLexer().getLoc(); in parseDirectiveUnwindRaw()
10240 if (getLexer().isNot(AsmToken::Identifier)) in parseDirectiveTLSDescSeq()
10304 if (getLexer().isNot(AsmToken::Identifier)) in parseDirectiveObjectArch()
[all …]

12