/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 43 MCAsmParser &Parser; member in __anon06c44bb20111::AVRAsmParser 95 AVRAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in AVRAsmParser() argument 97 : MCTargetAsmParser(Options, STI, MII), STI(STI), Parser(Parser) { in AVRAsmParser() 98 MCAsmParserExtension::Initialize(Parser); in AVRAsmParser() 104 MCAsmParser &getParser() const { return Parser; } in getParser() 105 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer() 350 StringRef Name = Parser.getTok().getString(); in parseRegisterName() 380 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister() 382 if (Parser.getLexer().peekTok().is(AsmToken::Colon)) { in parseRegister() 383 AsmToken HighTok = Parser.getTok(); in parseRegister() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
H A D | RAIIObjectsForParser.h | 52 SuppressAccessChecks(Parser &P, bool activate = true) 101 ParsingDeclRAIIObject(Parser &P, NoParent_t _) in ParsingDeclRAIIObject() 107 ParsingDeclRAIIObject(Parser &P, in ParsingDeclRAIIObject() 116 ParsingDeclRAIIObject(Parser &P, ParsingDeclRAIIObject *other) in ParsingDeclRAIIObject() 179 ParsingDeclSpec(Parser &P) in ParsingDeclSpec() 182 ParsingDeclSpec(Parser &P, ParsingDeclRAIIObject *RAII) in ParsingDeclSpec() 204 ParsingDeclarator(Parser &P, const ParsingDeclSpec &DS, in ParsingDeclarator() 233 ParsingFieldDeclarator(Parser &P, const ParsingDeclSpec &DS, in ParsingFieldDeclarator() 274 Parser &P; 277 ColonProtectionRAIIObject(Parser &p, bool Value = true) [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Remarks/ |
H A D | BitstreamRemarkParser.cpp | 43 static Error parseRecord(BitstreamMetaParserHelper &Parser, unsigned Code) { in parseRecord() argument 44 BitstreamCursor &Stream = Parser.Stream; in parseRecord() 57 Parser.ContainerVersion = Record[0]; in parseRecord() 58 Parser.ContainerType = Record[1]; in parseRecord() 64 Parser.RemarkVersion = Record[0]; in parseRecord() 70 Parser.StrTabBuf = Blob; in parseRecord() 76 Parser.ExternalFilePath = Blob; in parseRecord() 90 static Error parseRecord(BitstreamRemarkParserHelper &Parser, unsigned Code) { in parseRecord() argument 91 BitstreamCursor &Stream = Parser.Stream; in parseRecord() 104 Parser.Type = Record[0]; in parseRecord() [all …]
|
H A D | RemarkParser.cpp | 143 LLVMRemarkParserGetNext(LLVMRemarkParserRef Parser) { in LLVMRemarkParserGetNext() argument 144 CParser &TheCParser = *unwrap(Parser); in LLVMRemarkParserGetNext() 164 extern "C" LLVMBool LLVMRemarkParserHasError(LLVMRemarkParserRef Parser) { in LLVMRemarkParserHasError() argument 165 return unwrap(Parser)->hasError(); in LLVMRemarkParserHasError() 169 LLVMRemarkParserGetErrorMessage(LLVMRemarkParserRef Parser) { in LLVMRemarkParserGetErrorMessage() argument 170 return unwrap(Parser)->getMessage(); in LLVMRemarkParserGetErrorMessage() 173 extern "C" void LLVMRemarkParserDispose(LLVMRemarkParserRef Parser) { in LLVMRemarkParserDispose() argument 174 delete unwrap(Parser); in LLVMRemarkParserDispose()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | flags.cpp | 35 void registerFlags(FlagParser *Parser, Flags *F) { in registerFlags() argument 37 Parser->registerFlag(#Name, Description, FlagType::FT_##Type, \ in registerFlags() 44 Parser->registerFlag("GWP_ASAN_" #Name, Description, FlagType::FT_##Type, \ in registerFlags() 66 FlagParser Parser; in initFlags() local 67 registerFlags(&Parser, F); in initFlags() 68 Parser.parseString(getCompileDefinitionScudoDefaultOptions()); in initFlags() 69 Parser.parseString(getScudoDefaultOptions()); in initFlags() 70 Parser.parseString(getEnv("SCUDO_OPTIONS")); in initFlags() 72 Parser.parseStringPair("allocation_ring_buffer_size", V);
|
/freebsd/libexec/nuageinit/ |
H A D | yaml.lua | 91 local Parser = {} 92 function Parser.new (self, tokens) 246 Parser.peek = function (self, offset) 251 Parser.advance = function (self) 256 Parser.advanceValue = function (self) 260 Parser.accept = function (self, type) 266 Parser.expect = function (self, type, msg) 271 Parser.expectDedent = function (self, msg) 276 Parser.peekType = function (self, val, offset) 280 Parser.ignore = function (self, items) [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
H A D | SparcAsmParser.cpp | 59 MCAsmParser &Parser; member in __anonebada3920111::SparcAsmParser 142 : MCTargetAsmParser(Options, sti, MII), Parser(parser), in SparcAsmParser() 143 MRI(*Parser.getContext().getRegisterInfo()) { in SparcAsmParser() 144 Parser.addAliasForDirective(".half", ".2byte"); in SparcAsmParser() 145 Parser.addAliasForDirective(".uahalf", ".2byte"); in SparcAsmParser() 146 Parser.addAliasForDirective(".word", ".4byte"); in SparcAsmParser() 147 Parser.addAliasForDirective(".uaword", ".4byte"); in SparcAsmParser() 148 Parser.addAliasForDirective(".nword", is64Bit() ? ".8byte" : ".4byte"); in SparcAsmParser() 150 Parser.addAliasForDirective(".xword", ".8byte"); in SparcAsmParser() 856 const AsmToken &Tok = Parser.getTok(); in tryParseRegister() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseOpenACC.cpp | 221 bool isTokenIdentifierOrKeyword(Parser &P, Token Tok) { in isTokenIdentifierOrKeyword() 238 bool tryParseAndConsumeSpecialTokenKind(Parser &P, OpenACCSpecialTokenKind Kind, in tryParseAndConsumeSpecialTokenKind() 309 OpenACCReductionOperator ParseReductionOperator(Parser &P) { in ParseReductionOperator() 352 bool expectIdentifierOrKeyword(Parser &P) { in expectIdentifierOrKeyword() 363 ParseOpenACCEnterExitDataDirective(Parser &P, Token FirstTok, in ParseOpenACCEnterExitDataDirective() 392 OpenACCAtomicKind ParseOpenACCAtomicKind(Parser &P) { in ParseOpenACCAtomicKind() 412 OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { in ParseOpenACCDirectiveKind() 562 void SkipUntilEndOfDirective(Parser &P) { in SkipUntilEndOfDirective() 599 Parser::OpenACCClauseParseResult Parser::OpenACCCanContinue() { in OpenACCCanContinue() 603 Parser::OpenACCClauseParseResult Parser::OpenACCCannotContinue() { in OpenACCCannotContinue() [all …]
|
H A D | ParseCXXInlineMethods.cpp | 24 StringLiteral *Parser::ParseCXXDeletedFunctionMessage() { in ParseCXXDeletedFunctionMessage() 53 void Parser::SkipDeletedFunctionBody() { in SkipDeletedFunctionBody() 69 NamedDecl *Parser::ParseCXXInlineMethodDef( in ParseCXXInlineMethodDef() 244 void Parser::ParseCXXNonStaticMemberInitializer(Decl *VarD) { in ParseCXXNonStaticMemberInitializer() 281 Parser::LateParsedDeclaration::~LateParsedDeclaration() {} in ~LateParsedDeclaration() 282 void Parser::LateParsedDeclaration::ParseLexedMethodDeclarations() {} in ParseLexedMethodDeclarations() 283 void Parser::LateParsedDeclaration::ParseLexedMemberInitializers() {} in ParseLexedMemberInitializers() 284 void Parser::LateParsedDeclaration::ParseLexedMethodDefs() {} in ParseLexedMethodDefs() 285 void Parser::LateParsedDeclaration::ParseLexedAttributes() {} in ParseLexedAttributes() 286 void Parser::LateParsedDeclaration::ParseLexedPragmas() {} in ParseLexedPragmas() [all …]
|
H A D | ParseTentative.cpp | 49 bool Parser::isCXXDeclarationStatement( in isCXXDeclarationStatement() 136 bool Parser::isCXXSimpleDeclaration(bool AllowForRangeDecl) { in isCXXSimpleDeclaration() 202 Parser::TPResult Parser::TryConsumeDeclarationSpecifier() { in TryConsumeDeclarationSpecifier() 276 Parser::TPResult Parser::TryParseSimpleDeclaration(bool AllowForRangeDecl) { in TryParseSimpleDeclaration() 331 Parser::TPResult 332 Parser::TryParseInitDeclaratorList(bool MayHaveTrailingReturnType) { in TryParseInitDeclaratorList() 384 struct Parser::ConditionDeclarationOrInitStatementState { 385 Parser &P; 391 ConditionDeclarationOrInitStatementState(Parser &P, bool CanBeInitStatement, in ConditionDeclarationOrInitStatementState() 488 bool Parser::isEnumBase(bool AllowSemi) { in isEnumBase() [all …]
|
H A D | Parser.cpp | 46 IdentifierInfo *Parser::getSEHExceptKeyword() { in getSEHExceptKeyword() 54 Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies) in Parser() function in Parser 81 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) { in Diag() 85 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) { in Diag() 95 void Parser::SuggestParentheses(SourceLocation Loc, unsigned DK, in SuggestParentheses() 118 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() 164 bool Parser::ExpectAndConsumeSemi(unsigned DiagID, StringRef TokenUsed) { in ExpectAndConsumeSemi() 186 void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, DeclSpec::TST TST) { in ConsumeExtraSemi() 223 bool Parser::expectIdentifier() { in expectIdentifier() 238 void Parser::checkCompoundToken(SourceLocation FirstTokLoc, in checkCompoundToken() [all …]
|
H A D | ParseAST.cpp | 51 const Parser &P; 53 PrettyStackTraceParserEntry(const Parser &p) : P(p) {} in PrettyStackTraceParserEntry() 132 std::unique_ptr<Parser> ParseOP( in ParseAST() 133 new Parser(S.getPreprocessor(), S, SkipFunctionBodies)); in ParseAST() 134 Parser &P = *ParseOP.get(); in ParseAST() 141 llvm::CrashRecoveryContextCleanupRegistrar<Parser> in ParseAST() 165 Parser::DeclGroupPtrTy ADecl; in ParseAST()
|
H A D | ParseTemplate.cpp | 30 unsigned Parser::ReenterTemplateScopes(MultiParseScope &S, Decl *D) { in ReenterTemplateScopes() 39 Parser::DeclGroupPtrTy 40 Parser::ParseDeclarationStartingWithTemplate(DeclaratorContext Context, in ParseDeclarationStartingWithTemplate() 78 Parser::DeclGroupPtrTy Parser::ParseTemplateDeclarationOrSpecialization( in ParseTemplateDeclarationOrSpecialization() 192 Parser::DeclGroupPtrTy Parser::ParseDeclarationAfterTemplate( in ParseDeclarationAfterTemplate() 272 Parser::ParseConceptDefinition(const ParsedTemplateInfo &TemplateInfo, in ParseConceptDefinition() 356 bool Parser::ParseTemplateParameters( in ParseTemplateParameters() 399 Parser::ParseTemplateParameterList(const unsigned Depth, in ParseTemplateParameterList() 434 Parser::TPResult Parser::isStartOfTemplateTypeParameter() { in isStartOfTemplateTypeParameter() 535 NamedDecl *Parser::ParseTemplateParameter(unsigned Depth, unsigned Position) { in ParseTemplateParameter() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
H A D | SystemZAsmParser.cpp | 398 MCAsmParser &Parser; member in __anonde0c959e0111::SystemZAsmParser 462 return Parser.getContext().getAsmInfo()->getAssemblerDialect(); in getMAIAssemblerDialect() 484 : MCTargetAsmParser(Options, sti, MII), Parser(parser) { in SystemZAsmParser() 485 MCAsmParserExtension::Initialize(Parser); in SystemZAsmParser() 760 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister() 763 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister() 764 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister() 765 const AsmToken &PercentTok = Parser.getTok(); in parseRegister() 766 Parser.Lex(); in parseRegister() 769 if (Parser.getTok().isNot(AsmToken::Identifier)) { in parseRegister() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/ |
H A D | ARMAsmParser.cpp | 110 MCAsmParser &Parser; member in __anon6be9c9a00111::UnwindContext 119 UnwindContext(MCAsmParser &P) : Parser(P), FPReg(ARM::SP) {} in UnwindContext() 140 Parser.Note(Loc, ".fnstart was specified here"); in emitFnStartLocNotes() 145 Parser.Note(Loc, ".cantunwind was specified here"); in emitCantUnwindLocNotes() 150 Parser.Note(Loc, ".handlerdata was specified here"); in emitHandlerDataLocNotes() 160 Parser.Note(*PI++, ".personality was specified here"); in emitPersonalityLocNotes() 162 Parser.Note(*PII++, ".personalityindex was specified here"); in emitPersonalityLocNotes() 688 ARMAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in ARMAsmParser() argument 690 : MCTargetAsmParser(Options, STI, MII), UC(Parser), MS(STI) { in ARMAsmParser() 691 MCAsmParserExtension::Initialize(Parser); in ARMAsmParser() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
H A D | X86AsmParser.cpp | 122 MCAsmParser &Parser = getParser(); in consumeToken() local 123 SMLoc Result = Parser.getTok().getLoc(); in consumeToken() 124 Parser.Lex(); in consumeToken() 1098 MCAsmParser &Parser = getParser(); in Error() local 1101 Parser.eatToEndOfStatement(); in Error() 1104 return Parser.Error(L, Msg, Range); in Error() 1275 X86AsmParser(const MCSubtargetInfo &sti, MCAsmParser &Parser, in X86AsmParser() argument 1280 Parser.addAliasForDirective(".word", ".2byte"); in X86AsmParser() 1497 MCAsmParser &Parser = getParser(); in ParseRegister() local 1510 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/ |
H A D | LanaiAsmParser.cpp | 86 LanaiAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in LanaiAsmParser() argument 88 : MCTargetAsmParser(Options, STI, MII), Parser(Parser), in LanaiAsmParser() 89 Lexer(Parser.getLexer()), SubtargetInfo(STI) { in LanaiAsmParser() 95 MCAsmParser &Parser; member in __anon93849a6a0111::LanaiAsmParser 690 SMLoc Start = Parser.getTok().getLoc(); in parseRegister() 691 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseRegister() 697 PercentTok = Parser.getTok(); in parseRegister() 698 Parser.Lex(); in parseRegister() 707 Parser.Lex(); // Eat identifier token in parseRegister() 739 SMLoc Start = Parser.getTok().getLoc(); in parseIdentifier() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | WasmAsmParser.cpp | 37 MCAsmParser *Parser = nullptr; member in __anon8dbf0ae10111::WasmAsmParser 52 Parser = &P; in Initialize() 53 Lexer = &Parser->getLexer(); in Initialize() 55 this->MCAsmParserExtension::Initialize(*Parser); in Initialize() 74 return Parser->Error(Tok.getLoc(), Msg + Tok.getString()); in error() 135 } else if (Parser->parseIdentifier(GroupName)) { in parseGroup() 141 if (Parser->parseIdentifier(Linkage)) in parseGroup() 151 if (Parser->parseIdentifier(Name)) in parseSectionDirective() 199 Parser->Error(loc, "changed section flags for " + Name + in parseSectionDirective() 205 return Parser->Error(loc, "Only data sections can be passive"); in parseSectionDirective() [all …]
|
H A D | XCOFFAsmParser.cpp | 19 MCAsmParser *Parser = nullptr; member in __anon7e8d831f0111::XCOFFAsmParser 34 Parser = &P; in Initialize() 35 Lexer = &Parser->getLexer(); in Initialize() 37 MCAsmParserExtension::Initialize(*Parser); in Initialize()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
H A D | WebAssemblyAsmParser.cpp | 197 MCAsmParser &Parser; member in __anon9b7df71c0111::WebAssemblyAsmParser 243 WebAssemblyAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in WebAssemblyAsmParser() argument 245 : MCTargetAsmParser(Options, STI, MII), Parser(Parser), in WebAssemblyAsmParser() 246 Lexer(Parser.getLexer()), is64(STI.getTargetTriple().isArch64Bit()), in WebAssemblyAsmParser() 247 TC(Parser, MII, is64), SkipTypeCheck(Options.MCNoTypeCheck) { in WebAssemblyAsmParser() 251 auto &SM = Parser.getSourceManager(); in WebAssemblyAsmParser() 258 void Initialize(MCAsmParser &Parser) override { in Initialize() argument 259 MCAsmParserExtension::Initialize(Parser); in Initialize() 280 return Parser.Error(Tok.getLoc(), Msg + Tok.getString()); in error() 284 return Parser.Error(Loc.isValid() ? Loc : Lexer.getTok().getLoc(), Msg); in error() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/ |
H A D | MipsAsmParser.cpp | 843 MipsOperand(KindTy K, MipsAsmParser &Parser) : Kind(K), AsmParser(Parser) {} in MipsOperand() argument 904 MipsAsmParser &Parser) { in CreateReg() argument 905 auto Op = std::make_unique<MipsOperand>(k_RegisterIndex, Parser); in CreateReg() 1504 MipsAsmParser &Parser) { in CreateToken() argument 1505 auto Op = std::make_unique<MipsOperand>(k_Token, Parser); in CreateToken() 1517 SMLoc S, SMLoc E, MipsAsmParser &Parser) { in createNumericReg() argument 1519 return CreateReg(Index, Str, RegKind_Numeric, RegInfo, S, E, Parser); in createNumericReg() 1526 SMLoc S, SMLoc E, MipsAsmParser &Parser) { in createGPRReg() argument 1527 return CreateReg(Index, Str, RegKind_GPR, RegInfo, S, E, Parser); in createGPRReg() 1534 SMLoc S, SMLoc E, MipsAsmParser &Parser) { in createFGRReg() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/ |
H A D | M68kAsmParser.cpp | 35 MCAsmParser &Parser; member in __anon8d0ae56c0111::M68kAsmParser 58 M68kAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in M68kAsmParser() argument 60 : MCTargetAsmParser(Options, STI, MII), STI(STI), Parser(Parser) { in M68kAsmParser() 61 MCAsmParserExtension::Initialize(Parser); in M68kAsmParser() 715 if (!Parser.getTok().is(AsmToken::Identifier)) { in parseRegister() 722 auto RegisterName = Parser.getTok().getString(); in parseRegister() 723 if (!parseRegisterName(RegNo, Parser.getLexer().getLoc(), RegisterName)) { in parseRegister() 730 Parser.Lex(); in parseRegister() 752 switch (Parser.getTok().getKind()) { in isExpr() 768 Parser.Lex(); in parseImm() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
H A D | VEAsmParser.cpp | 43 MCAsmParser &Parser; member in __anon944a62760111::VEAsmParser 93 : MCTargetAsmParser(Options, sti, MII), Parser(parser) { in VEAsmParser() 809 StringRef Name = Parser.getTok().getString(); in parseRegisterName() 832 const AsmToken Tok = Parser.getTok(); in tryParseRegister() 838 Parser.Lex(); in tryParseRegister() 845 Parser.Lex(); in tryParseRegister() 987 Parser.Lex(); // Eat the comma. in ParseInstruction() 999 Parser.Lex(); // Consume the EndOfStatement. in ParseInstruction() 1202 const AsmToken &Tok = Parser.getTok(); in parseMEMOperand() 1248 Parser.Lex(); // Eat the ( in parseMEMOperand() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-remarkutil/ |
H A D | RemarkUtil.cpp | 164 auto &Parser = **MaybeParser; tryParseRemarksFromYAMLFile() local 231 auto &Parser = **MaybeParser; tryBitstream2YAML() local 268 auto &Parser = **MaybeParser; tryInstructionCount() local 319 auto &Parser = **MaybeParser; tryAnnotationCount() local
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
H A D | CodeRegionGenerator.cpp | 48 std::unique_ptr<MCAsmParser> Parser( in parseCodeRegions() local 50 MCAsmLexer &Lexer = Parser->getLexer(); in parseCodeRegions() 57 TheTarget.createMCAsmParser(STI, *Parser, MCII, Opts)); in parseCodeRegions() 62 Parser->setTargetParser(*TAP); in parseCodeRegions() 67 if (Parser->Run(false) && !SkipFailures) { in parseCodeRegions() 80 AssemblerDialect = Parser->getAssemblerDialect(); in parseCodeRegions()
|