Home
last modified time | relevance | path

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

123456

/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 __anonaf3889d60111::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/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)
Dt012lexerXML.py31 lexer = self.getLexer(stream)
61 lexer = self.getLexer(stream)
85 lexer = self.getLexer(stream)
109 lexer = self.getLexer(stream)
Dt001lexer.py25 lexer = self.getLexer(stream)
36 lexer = self.getLexer(stream)
45 lexer = self.getLexer(stream)
/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)
Dt012lexerXML.py32 lexer = self.getLexer(stream)
58 lexer = self.getLexer(stream)
81 lexer = self.getLexer(stream)
104 lexer = self.getLexer(stream)
Dt001lexer.py25 lexer = self.getLexer(stream)
36 lexer = self.getLexer(stream)
45 lexer = self.getLexer(stream)
/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-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/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()
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/MCParser/
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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp800 if (!getLexer().isAtStartOfStatement()) in Error()
1117 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister()
1421 AsmToken::TokenKind TK = getLexer().getKind(); in ParseIntelExpression()
1498 if (getLexer().getKind() == AsmToken::Identifier) { in ParseIntelExpression()
1617 getLexer().Lex(); in ParseIntelInlineAsmIdentifier()
1663 if (!getLexer().is(AsmToken::Minus)) in ParseRoundingModeOp()
1667 if (!getLexer().is(AsmToken::RCurly)) in ParseRoundingModeOp()
1677 if (!getLexer().is(AsmToken::RCurly)) in ParseRoundingModeOp()
1845 if (getLexer().is(AsmToken::LCurly)) in ParseIntelOperand()
1937 switch (getLexer().getKind()) { in ParseATTOperand()
[all …]

123456