Home
last modified time | relevance | path

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

1234567

/external/llvm/lib/MC/MCParser/
DELFAsmParser.cpp160 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
171 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
174 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
187 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseSectionSwitch()
205 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize()
213 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize()
223 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
226 if (getLexer().is(AsmToken::String)) { in ParseSectionName()
234 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName()
235 if (getLexer().is(AsmToken::Comma) || in ParseSectionName()
[all …]
DCOFFAsmParser.cpp269 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
280 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
283 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
304 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
315 if (!getLexer().is(AsmToken::Identifier)) in ParseSectionName()
347 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
350 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveSection()
362 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
368 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSection()
375 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSection()
[all …]
DDarwinAsmParser.cpp396 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseSectionSwitch()
450 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveDesc()
458 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDesc()
495 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveIndirectSymbol()
508 if (getLexer().isNot(AsmToken::String)) in parseDirectiveDumpOrLoad()
513 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDumpOrLoad()
531 if (getLexer().isNot(AsmToken::String)) in parseDirectiveLinkerOption()
541 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveLinkerOption()
544 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLinkerOption()
563 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLsym()
[all …]
DAsmParser.cpp206 MCAsmLexer &getLexer() override { return Lexer; } in getLexer() function in __anon5d4cfdd40111::AsmParser
874 SMLoc FirstTokenLoc = getLexer().getLoc(); in parsePrimaryExpr()
914 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr()
2470 SMLoc PrefixLoc = getLexer().getLoc(); in parseIdentifier()
2508 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveSet()
2516 assert(getLexer().is(AsmToken::String) && "Unexpected current token!"); in parseEscapedString()
2576 if (getLexer().isNot(AsmToken::EndOfStatement)) { in parseDirectiveAscii()
2580 if (getLexer().isNot(AsmToken::String)) in parseDirectiveAscii()
2593 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveAscii()
2596 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveAscii()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DELFAsmParser.cpp179 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
190 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
193 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
206 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseSectionSwitch()
224 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize()
232 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize()
243 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
246 if (getLexer().is(AsmToken::String)) { in ParseSectionName()
253 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName()
254 if (getLexer().is(AsmToken::Comma) || in ParseSectionName()
[all …]
DCOFFAsmParser.cpp294 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
305 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
308 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
329 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
340 if (!getLexer().is(AsmToken::Identifier)) in ParseSectionName()
373 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
376 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveSection()
388 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
394 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSection()
401 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSection()
[all …]
DDarwinAsmParser.cpp472 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseSectionSwitch()
526 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveDesc()
534 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDesc()
571 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveIndirectSymbol()
584 if (getLexer().isNot(AsmToken::String)) in parseDirectiveDumpOrLoad()
589 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDumpOrLoad()
607 if (getLexer().isNot(AsmToken::String)) in parseDirectiveLinkerOption()
616 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveLinkerOption()
619 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLinkerOption()
638 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLsym()
[all …]
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/
DCOFFAsmParser.cpp137 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
148 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
151 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
164 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
193 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveScl()
206 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveType()
225 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSEHDirectiveStartProc()
258 if (getLexer().isNot(AsmToken::Comma)) in ParseSEHDirectiveHandler()
264 if (getLexer().is(AsmToken::Comma)) { in ParseSEHDirectiveHandler()
269 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSEHDirectiveHandler()
[all …]
DELFAsmParser.cpp164 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
175 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
178 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
190 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
206 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize()
214 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize()
224 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
227 if (getLexer().is(AsmToken::String)) { in ParseSectionName()
237 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName()
238 if (getLexer().is(AsmToken::Minus)) { in ParseSectionName()
[all …]
DDarwinAsmParser.cpp300 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
335 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveDesc()
343 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveDesc()
359 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveDumpOrLoad()
364 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveDumpOrLoad()
387 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveLsym()
395 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveLsym()
410 SMLoc Loc = getLexer().getLoc(); in ParseDirectiveSection()
417 if (!getLexer().is(AsmToken::Comma)) in ParseDirectiveSection()
425 StringRef EOL = getLexer().LexUntilEndOfStatement(); in ParseDirectiveSection()
[all …]
DAsmParser.cpp143 virtual MCAsmLexer &getLexer() { return Lexer; } in getLexer() function in __anon3ea39f800111::AsmParser
504 PrintMessage(getLexer().getLoc(), "assembler local symbol '" + in Run()
1240 if (getLexer().isNot(AsmToken::Integer)) { in ParseCppHashLineFilenameComment()
1250 if (getLexer().isNot(AsmToken::String)) { in ParseCppHashLineFilenameComment()
1580 SMLoc DollarLoc = getLexer().getLoc(); in ParseIdentifier()
1619 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSet()
1627 assert(getLexer().is(AsmToken::String) && "Unexpected current token!"); in ParseEscapedString()
1687 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveAscii()
1691 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveAscii()
1704 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveAscii()
[all …]
/external/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp828 if (getLexer().is(AsmToken::Identifier)) { in ParseAMDGPURegister()
857 if (getLexer().isNot(AsmToken::LBrac)) in ParseAMDGPURegister()
864 const bool isRBrace = getLexer().is(AsmToken::RBrac); in ParseAMDGPURegister()
865 if (!isRBrace && getLexer().isNot(AsmToken::Colon)) in ParseAMDGPURegister()
875 if (getLexer().isNot(AsmToken::RBrac)) in ParseAMDGPURegister()
883 } else if (getLexer().is(AsmToken::LBrac)) { in ParseAMDGPURegister()
893 if (getLexer().is(AsmToken::Comma)) { in ParseAMDGPURegister()
895 } else if (getLexer().is(AsmToken::RBrac)) { in ParseAMDGPURegister()
970 if (getLexer().getKind() == AsmToken::Minus) { in parseImm()
976 switch(getLexer().getKind()) { in parseImm()
[all …]
/external/swiftshader/third_party/llvm-7.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 …]
/external/antlr/runtime/Python/tests/
Dt022scopes.py27 lexer = self.getLexer(cStream)
35 lexer = self.getLexer(cStream)
48 lexer = self.getLexer(cStream)
64 lexer = self.getLexer(cStream)
86 lexer = self.getLexer(cStream)
112 lexer = self.getLexer(cStream)
129 lexer = self.getLexer(cStream)
143 lexer = self.getLexer(cStream)
157 lexer = self.getLexer(cStream)
Dt030specialStates.py13 lexer = self.getLexer(cStream)
21 lexer = self.getLexer(cStream)
29 lexer = self.getLexer(cStream)
38 lexer = self.getLexer(cStream)
Dt014parser.py12 lexer = self.getLexer(cStream)
28 lexer = self.getLexer(cStream)
42 lexer = self.getLexer(cStream)
58 lexer = self.getLexer(cStream)
/external/antlr/runtime/Python3/tests/
Dt022scopes.py27 lexer = self.getLexer(cStream)
35 lexer = self.getLexer(cStream)
44 lexer = self.getLexer(cStream)
60 lexer = self.getLexer(cStream)
82 lexer = self.getLexer(cStream)
104 lexer = self.getLexer(cStream)
121 lexer = self.getLexer(cStream)
135 lexer = self.getLexer(cStream)
149 lexer = self.getLexer(cStream)
Dt030specialStates.py13 lexer = self.getLexer(cStream)
21 lexer = self.getLexer(cStream)
29 lexer = self.getLexer(cStream)
38 lexer = self.getLexer(cStream)
Dt014parser.py12 lexer = self.getLexer(cStream)
25 lexer = self.getLexer(cStream)
39 lexer = self.getLexer(cStream)
53 lexer = self.getLexer(cStream)
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/AsmParser/
DMBlazeAsmParser.cpp34 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anona7d70c2d0111::MBlazeAsmParser
397 switch (getLexer().getKind()) { in ParseRegister()
400 RegNo = MatchRegisterName(getLexer().getTok().getIdentifier()); in ParseRegister()
404 getLexer().Lex(); in ParseRegister()
424 switch (getLexer().getKind()) { in ParseFsl()
427 unsigned reg = MatchFslRegister(getLexer().getTok().getIdentifier()); in ParseFsl()
431 getLexer().Lex(); in ParseFsl()
442 switch (getLexer().getKind()) { in ParseImmediate()
494 if (getLexer().is(AsmToken::EndOfStatement)) in ParseInstruction()
501 while (getLexer().isNot(AsmToken::EndOfStatement) && in ParseInstruction()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp928 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister()
1278 if (SM.getStopOnLBrac() && getLexer().getKind() == AsmToken::LBrac) in ParseIntelExpression()
1281 AsmToken::TokenKind TK = getLexer().getKind(); in ParseIntelExpression()
1336 if (getLexer().getKind() == AsmToken::Identifier) { in ParseIntelExpression()
1393 if (getLexer().isNot(AsmToken::LBrac)) in ParseIntelBracExpression()
1485 getLexer().Lex(); in ParseIntelIdentifier()
1525 if (getLexer().is(AsmToken::Integer)) { in ParseIntelSegmentOverride()
1532 if (getLexer().isNot(AsmToken::LBrac)) { in ParseIntelSegmentOverride()
1543 if (getLexer().is(AsmToken::LBrac)) in ParseIntelSegmentOverride()
1581 if (!getLexer().is(AsmToken::Minus)) in ParseRoundingModeOp()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/X86/AsmParser/
DX86AsmParser.cpp42 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in __anon9e67b0630111::X86ATTAsmParser
431 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister()
490 switch (getLexer().getKind()) { in ParseOperand()
506 if (getLexer().isNot(AsmToken::Colon)) in ParseOperand()
534 if (getLexer().isNot(AsmToken::LParen)) { in ParseMemOperand()
540 if (getLexer().isNot(AsmToken::LParen)) { in ParseMemOperand()
555 if (getLexer().is(AsmToken::Percent) || getLexer().is(AsmToken::Comma)) { in ParseMemOperand()
567 if (getLexer().isNot(AsmToken::LParen)) { in ParseMemOperand()
583 if (getLexer().is(AsmToken::Percent)) { in ParseMemOperand()
592 if (getLexer().is(AsmToken::Comma)) { in ParseMemOperand()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp1685 if (getLexer().is(AsmToken::Identifier)) { in ParseAMDGPURegister()
1714 if (getLexer().isNot(AsmToken::LBrac)) in ParseAMDGPURegister()
1721 const bool isRBrace = getLexer().is(AsmToken::RBrac); in ParseAMDGPURegister()
1722 if (!isRBrace && getLexer().isNot(AsmToken::Colon)) in ParseAMDGPURegister()
1732 if (getLexer().isNot(AsmToken::RBrac)) in ParseAMDGPURegister()
1740 } else if (getLexer().is(AsmToken::LBrac)) { in ParseAMDGPURegister()
1750 if (getLexer().is(AsmToken::Comma)) { in ParseAMDGPURegister()
1752 } else if (getLexer().is(AsmToken::RBrac)) { in ParseAMDGPURegister()
1877 if (AbsMod && getLexer().peekTok().is(AsmToken::Pipe) && in parseAbsoluteExpr()
1878 (getLexer().getKind() == AsmToken::Integer || in parseAbsoluteExpr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp98 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() function in llvm::AVRAsmParser
348 if (Parser.getLexer().peekTok().is(AsmToken::Colon)) { in parseRegister()
384 Parser.getLexer().peekTok().getKind() == AsmToken::Identifier) { in tryParseExpression()
408 size_t ReadCount = Parser.getLexer().peekTokens(tokens); in tryParseRelocExpression()
416 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression()
433 Parser.getLexer().peekTok().getKind() != AsmToken::LParen) { in tryParseRelocExpression()
487 switch (getLexer().getKind()) { in parseOperand()
506 switch (getLexer().peekTok().getKind()) { in parseOperand()
570 if (getLexer().is(AsmToken::Comma)) { in eatComma()
583 while (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmParserExtension.h56 MCAsmLexer &getLexer() { return getParser().getLexer(); } in getLexer() function
57 const MCAsmLexer &getLexer() const { in getLexer() function
58 return const_cast<MCAsmParserExtension *>(this)->getLexer(); in getLexer()

1234567