Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DELFAsmParser.cpp178 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
189 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
192 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
205 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseSectionSwitch()
223 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize()
231 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize()
242 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
245 if (getLexer().is(AsmToken::String)) { in ParseSectionName()
252 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName()
253 if (getLexer().is(AsmToken::Comma) || in ParseSectionName()
[all …]
DDarwinAsmParser.cpp476 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseSectionSwitch()
530 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveDesc()
538 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDesc()
575 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveIndirectSymbol()
588 if (getLexer().isNot(AsmToken::String)) in parseDirectiveDumpOrLoad()
593 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDumpOrLoad()
611 if (getLexer().isNot(AsmToken::String)) in parseDirectiveLinkerOption()
620 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveLinkerOption()
623 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLinkerOption()
642 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLsym()
[all …]
DCOFFAsmParser.cpp278 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
289 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
292 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
313 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
324 if (!getLexer().is(AsmToken::Identifier)) in ParseSectionName()
357 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
360 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveSection()
372 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
378 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSection()
385 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSection()
[all …]
DWasmAsmParser.cpp51 Lexer = &Parser->getLexer(); in Initialize()
206 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveIdent()
210 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveIdent()
229 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
236 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
238 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
DMCAsmParser.cpp34 return getLexer().getTok(); in getTok()
84 return Error(getLexer().getLoc(), Msg, Range); in TokError()
99 getLexer().Lex(); in Error()
DAsmParser.cpp209 MCAsmLexer &getLexer() override { return Lexer; } in getLexer() function in __anoncbbc4b130111::AsmParser
929 if (Parsed && !getLexer().isAtStartOfStatement()) in Run()
1073 SMLoc FirstTokenLoc = getLexer().getLoc(); in parsePrimaryExpr()
1115 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr()
1141 return Error(getLexer().getLoc(), "expected a symbol reference"); in parsePrimaryExpr()
2851 SMLoc PrefixLoc = getLexer().getLoc(); in parseIdentifier()
3043 SMLoc ExprLoc = getLexer().getLoc(); in parseDirectiveValue()
3111 if (getLexer().is(AsmToken::Minus)) { in parseRealValue()
3114 } else if (getLexer().is(AsmToken::Plus)) in parseRealValue()
3126 if (getLexer().is(AsmToken::Identifier)) { in parseRealValue()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/AsmParser/
DMSP430AsmParser.cpp67 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anonfb7da5580111::MSP430AsmParser
291 if (getLexer().getKind() == AsmToken::Identifier) { in ParseRegister()
292 auto Name = getLexer().getTok().getIdentifier().lower(); in ParseRegister()
303 getLexer().Lex(); // eat register token in ParseRegister()
347 if (getLexer().getKind() == AsmToken::Dollar) in parseJccInstruction()
348 getLexer().Lex(); // Eat '$' in parseJccInstruction()
351 SMLoc ExprLoc = getLexer().getLoc(); in parseJccInstruction()
361 getLexer().getLoc())); in parseJccInstruction()
363 if (getLexer().isNot(AsmToken::EndOfStatement)) { in parseJccInstruction()
364 SMLoc Loc = getLexer().getLoc(); in parseJccInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/AsmParser/
DBPFAsmParser.cpp329 StringRef Name = getLexer().getTok().getIdentifier(); in ParseRegister()
343 if (getLexer().getKind() == AsmToken::Identifier) { in parseOperandAsOperator()
344 StringRef Name = getLexer().getTok().getIdentifier(); in parseOperandAsOperator()
347 getLexer().Lex(); in parseOperandAsOperator()
355 switch (getLexer().getKind()) { in parseOperandAsOperator()
358 if (getLexer().peekTok().is(AsmToken::Integer)) in parseOperandAsOperator()
376 StringRef Name = getLexer().getTok().getString(); in parseOperandAsOperator()
377 getLexer().Lex(); in parseOperandAsOperator()
390 getLexer().getTok().getString().substr(0, 1), S)); in parseOperandAsOperator()
392 getLexer().getTok().getString().substr(1, 1), S)); in parseOperandAsOperator()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/MCParser/
DMCAsmParserExtension.h57 MCAsmLexer &getLexer() { return getParser().getLexer(); } in getLexer() function
58 const MCAsmLexer &getLexer() const { in getLexer() function
59 return const_cast<MCAsmParserExtension *>(this)->getLexer(); in getLexer()
DMCAsmParser.h146 virtual MCAsmLexer &getLexer() = 0;
147 const MCAsmLexer &getLexer() const { in getLexer() function
148 return const_cast<MCAsmParser*>(this)->getLexer(); in getLexer()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp99 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anonb6985fbc0111::AVRAsmParser
367 if (Parser.getLexer().peekTok().is(AsmToken::Colon)) { in parseRegister()
403 Parser.getLexer().peekTok().getKind() == AsmToken::Identifier) { in tryParseExpression()
427 size_t ReadCount = Parser.getLexer().peekTokens(tokens); in tryParseRelocExpression()
435 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression()
452 Parser.getLexer().peekTok().getKind() != AsmToken::LParen) { in tryParseRelocExpression()
506 switch (getLexer().getKind()) { in parseOperand()
525 switch (getLexer().peekTok().getKind()) { in parseOperand()
590 if (getLexer().is(AsmToken::Comma)) { in eatComma()
603 while (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/AsmParser/
DRISCVAsmParser.cpp1017 StringRef Name = getLexer().getTok().getIdentifier(); in ParseRegister()
1034 if (AllowParens && getLexer().is(AsmToken::LParen)) { in parseRegister()
1036 size_t ReadCount = getLexer().peekTokens(Buf); in parseRegister()
1044 switch (getLexer().getKind()) { in parseRegister()
1047 getLexer().UnLex(LParen); in parseRegister()
1050 StringRef Name = getLexer().getTok().getIdentifier(); in parseRegister()
1056 getLexer().UnLex(LParen); in parseRegister()
1063 getLexer().Lex(); in parseRegister()
1080 switch (getLexer().getKind()) { in parseCSRSystemRegister()
1148 switch (getLexer().getKind()) { in parseImmediate()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp849 if (!getLexer().isAtStartOfStatement()) in Error()
1188 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister()
1506 AsmToken::TokenKind TK = getLexer().getKind(); in ParseIntelExpression()
1584 if (getLexer().getKind() == AsmToken::Identifier) { in ParseIntelExpression()
1705 getLexer().Lex(); in ParseIntelInlineAsmIdentifier()
1757 if (!getLexer().is(AsmToken::Minus)) in ParseRoundingModeOp()
1761 if (!getLexer().is(AsmToken::RCurly)) in ParseRoundingModeOp()
1771 if (!getLexer().is(AsmToken::RCurly)) in ParseRoundingModeOp()
1917 if (getLexer().is(AsmToken::LCurly)) in ParseIntelOperand()
2020 switch (getLexer().getKind()) { in ParseATTOperand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp637 if (getLexer().getKind() != AsmToken::Percent) in ParseRegister()
663 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
665 if (getLexer().is(AsmToken::Comma)) { in ParseInstruction()
667 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
672 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
676 while (getLexer().is(AsmToken::Comma) || getLexer().is(AsmToken::Plus)) { in ParseInstruction()
677 if (getLexer().is(AsmToken::Plus)) { in ParseInstruction()
684 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
689 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
690 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp6006 AsmToken RegTok = getLexer().peekTok(); in matchCPURegisterName()
6159 switch (getLexer().getKind()) { in parseOperand()
6248 if (getLexer().getKind() == AsmToken::LParen) { in parseMemOperand()
6253 if (getLexer().getKind() != AsmToken::Dollar) { in parseMemOperand()
6422 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
6430 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
6438 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
6446 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
6454 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
6462 getLexer().getLoc(), *this)); in matchAnyRegisterNameWithoutDollar()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp3595 if (getLexer().isNot(AsmToken::Integer) && getLexer().isNot(AsmToken::Identifier)) { in ParseAsAbsoluteExpression()
3610 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveMajorMinor()
3715 while (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveAMDHSAKernel()
3718 if (getLexer().isNot(AsmToken::Identifier)) in ParseDirectiveAMDHSAKernel()
3995 if (getLexer().is(AsmToken::EndOfStatement)) { in ParseDirectiveHSACodeObjectISA()
4006 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveHSACodeObjectISA()
4013 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveHSACodeObjectISA()
4017 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveHSACodeObjectISA()
4020 VendorName = getLexer().getTok().getStringContents(); in ParseDirectiveHSACodeObjectISA()
4023 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveHSACodeObjectISA()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp109 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anone96da2be0111::HexagonAsmParser
599 MCAsmLexer &Lexer = getLexer(); in eatToEndOfPacket()
670 assert((getLexer().isNot(AsmToken::EndOfStatement)) && in ParseDirectiveSubsection()
677 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSubsection()
698 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveFalign()
740 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveComm()
745 SMLoc SizeLoc = getLexer().getLoc(); in ParseDirectiveComm()
751 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveComm()
753 ByteAlignmentLoc = getLexer().getLoc(); in ParseDirectiveComm()
761 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveComm()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/Utils/
DAMDKernelCodeTUtils.cpp121 if (MCParser.getLexer().isNot(AsmToken::Equal)) { in expectAbsExpression()
125 MCParser.getLexer().Lex(); in expectAbsExpression()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp847 if (getLexer().is(AsmToken::LParen)) { in parseAddress()
850 if (getLexer().is(AsmToken::Percent)) { in parseAddress()
862 if (getLexer().is(AsmToken::Comma)) { in parseAddress()
870 if (getLexer().isNot(AsmToken::RParen)) in parseAddress()
1058 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveInsn()
1152 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
1159 while (getLexer().is(AsmToken::Comma)) { in ParseInstruction()
1165 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
1166 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
1342 if (AllowTLS && getLexer().is(AsmToken::Colon)) { in parsePCRel()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1398 switch (getLexer().getKind()) { in ParseDarwinExpression()
1416 if (getLexer().isNot(AsmToken::LParen)) in ParseDarwinExpression()
1427 if (getLexer().isNot(AsmToken::RParen)) in ParseDarwinExpression()
1445 switch (getLexer().getKind()) { in ParseOperand()
1497 if (TLSCall && getLexer().is(AsmToken::LParen)) { in ParseOperand()
1504 if (getLexer().isNot(AsmToken::RParen)) in ParseOperand()
1513 if (!TLSCall && getLexer().is(AsmToken::LParen)) { in ParseOperand()
1518 switch (getLexer().getKind()) { in ParseOperand()
1677 while (getLexer().isNot(AsmToken::EndOfStatement) in ParseDirectiveTC()
1678 && getLexer().isNot(AsmToken::Comma)) in ParseDirectiveTC()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp159 Parser->getLexer().setLexMasmIntegers(true); in EmitInlineAsm()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp2768 if (!Hash && getLexer().isNot(AsmToken::Integer)) { in tryParseOptionalShiftExtend()
3349 Parser.getLexer().UnLex(LCurly); in tryParseVectorList()
3514 bool NextIsVL = Parser.getLexer().peekTok().getString().equals_lower("vl"); in parseOptionalMulOperand()
3515 bool NextIsHash = Parser.getLexer().peekTok().is(AsmToken::Hash); in parseOptionalMulOperand()
3570 switch (getLexer().getKind()) { in parseOperand()
3637 if (Parser.getLexer().peekTok().is(AsmToken::Real)) in parseOperand()
3841 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
5280 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp5244 MCAsmLexer &Lexer = getLexer(); in parseModImm()
5998 switch (getLexer().getKind()) { in parseOperand()
6125 if (getLexer().is(AsmToken::Hash)) in parsePrefix()
6129 assert(getLexer().is(AsmToken::Colon) && "expected a :"); in parsePrefix()
6132 if (getLexer().isNot(AsmToken::Identifier)) { in parsePrefix()
6192 if (getLexer().isNot(AsmToken::Colon)) { in parsePrefix()
6953 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
11376 SMLoc OffsetLoc = getLexer().getLoc(); in parseDirectiveUnwindRaw()
11396 SMLoc OpcodeLoc = getLexer().getLoc(); in parseDirectiveUnwindRaw()
11397 if (check(getLexer().is(AsmToken::EndOfStatement) || in parseDirectiveUnwindRaw()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp205 Lexer(Parser.getLexer()) { in WebAssemblyAsmParser()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp89 Lexer(Parser.getLexer()), SubtargetInfo(STI) { in LanaiAsmParser()