/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RTDyldMemoryManager.cpp | 155 #define ARM_MATH_IMPORTS(PP) \ argument 156 PP(__aeabi_d2f) \ 157 PP(__aeabi_d2iz) \ 158 PP(__aeabi_d2lz) \ 159 PP(__aeabi_d2uiz) \ 160 PP(__aeabi_d2ulz) \ 161 PP(__aeabi_dadd) \ 162 PP(__aeabi_dcmpeq) \ 163 PP(__aeabi_dcmpge) \ 164 PP(__aeabi_dcmpg [all...] |
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | path.cpp | 47 auto PP = PathParser::CreateBegin(__pn_); in __root_name() local 48 if (PP.State_ == PathParser::PS_InRootName) in __root_name() 49 return *PP; in __root_name() 54 auto PP = PathParser::CreateBegin(__pn_); in __root_directory() local 55 if (PP.State_ == PathParser::PS_InRootName) in __root_directory() 56 ++PP; in __root_directory() 57 if (PP.State_ == PathParser::PS_InRootDir) in __root_directory() 58 return *PP; in __root_directory() 63 auto PP = PathParser::CreateBegin(__pn_); in __root_path_raw() local 64 if (PP.State_ == PathParser::PS_InRootName) { in __root_path_raw() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParsePragma.cpp | 36 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 42 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 48 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 54 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 61 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 70 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 76 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 82 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 88 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, 94 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, [all …]
|
H A D | Parser.cpp | 39 bool HandleComment(Preprocessor &PP, SourceRange Comment) override { in HandleComment() argument 49 Ident__except = PP.getIdentifierInfo("__except"); in getSEHExceptKeyword() 55 : PP(pp), PreferredType(pp.isCodeCompletionEnabled()), Actions(actions), in Parser() 56 Diags(PP.getDiagnostics()), GreaterThanIsOperator(true), in Parser() 71 PP.addCommentHandler(CommentSemaHandler.get()); in Parser() 73 PP.setCodeCompletionHandler(*this); in Parser() 97 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses() 145 SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation); in ExpectAndConsume() 176 << PP.getSpelling(Tok) in ExpectAndConsumeSemi() 247 PP.getSourceManager().getFileID(FirstTokLoc) != in checkCompoundToken() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Pragma.cpp | 67 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma() argument 107 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument 111 PP.LexUnexpandedToken(Tok); in HandlePragma() 119 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma() 124 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma() 771 Preprocessor &PP, Token &Tok, in LexModuleNameComponent() argument 774 PP.LexUnexpandedToken(Tok); in LexModuleNameComponent() 776 StringLiteralParser Literal(Tok, PP); in LexModuleNameComponent() 780 PP.getIdentifierInfo(Literal.GetString()), Tok.getLocation()); in LexModuleNameComponent() 785 PP.Diag(Tok.getLocation(), diag::err_pp_expected_module_name) << First; in LexModuleNameComponent() [all …]
|
H A D | PPExpressions.cpp | 78 Preprocessor &PP); 103 bool ValueLive, Preprocessor &PP) { in EvaluateDefined() argument 108 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined() 115 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined() 119 if (PP.getCodeCompletionHandler()) in EvaluateDefined() 120 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false); in EvaluateDefined() 121 PP.setCodeCompletionReached(); in EvaluateDefined() 122 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined() 126 if (PP.CheckMacroName(PeekTok, MU_Other)) in EvaluateDefined() 131 MacroDefinition Macro = PP.getMacroDefinition(II); in EvaluateDefined() [all …]
|
H A D | MacroArgs.cpp | 26 bool VarargsElided, Preprocessor &PP) { in create() argument 34 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry; in create() 78 void MacroArgs::destroy(Preprocessor &PP) { in destroy() argument 85 ArgCache = PP.MacroArgCache; in destroy() 86 PP.MacroArgCache = this; in destroy() 137 Preprocessor &PP) { in invokedWithVariadicArgument() argument 141 return getPreExpArgument(VariadicArgIndex, PP).front().isNot(tok::eof); in invokedWithVariadicArgument() 147 Preprocessor &PP) const { in ArgNeedsPreexpansion() 162 Preprocessor &PP) { in getPreExpArgument() argument 172 SaveAndRestore PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); in getPreExpArgument() [all …]
|
H A D | TokenConcatenation.cpp | 48 const LangOptions &LangOpts = PP.getLangOpts(); in IsIdentifierStringPrefix() 53 SourceManager &SM = PP.getSourceManager(); in IsIdentifierStringPrefix() 62 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix() 66 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix() 69 TokenConcatenation::TokenConcatenation(const Preprocessor &pp) : PP(pp) { in TokenConcatenation() 89 if (PP.getLangOpts().CPlusPlus11) { in TokenConcatenation() 102 if (PP.getLangOpts().CPlusPlus17) in TokenConcatenation() 106 if (PP.getLangOpts().CPlusPlus20) in TokenConcatenation() 128 static char GetFirstChar(const Preprocessor &PP, const Token &Tok) { in GetFirstChar() argument 136 SourceManager &SM = PP.getSourceManager(); in GetFirstChar() [all …]
|
H A D | TokenLexer.cpp | 62 SourceManager &SM = PP.getSourceManager(); in Init() 136 if (ActualArgs) ActualArgs->destroy(PP); in destroy() 141 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument 149 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs() 157 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs() 167 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs() 230 &ConcatenatedVAOPTResultToks[0], PP, VCtx.hasCharifyBefore() /*Charify*/, in stringifyVAOPTContents() 254 VAOptExpansionContext VCtx(PP); in ExpandFunctionArguments() 302 ActualArgs->invokedWithVariadicArgument(Macro, PP); in ExpandFunctionArguments() 391 UnexpArg, PP, Charify, ExpansionLocStart, ExpansionLocEnd); in ExpandFunctionArguments() [all …]
|
H A D | PPMacroExpansion.cpp | 326 static IdentifierInfo *RegisterBuiltinMacro(Preprocessor &PP, const char *Name){ in RegisterBuiltinMacro() argument 328 IdentifierInfo *Id = PP.getIdentifierInfo(Name); in RegisterBuiltinMacro() 331 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); in RegisterBuiltinMacro() 333 PP.appendDefMacroDirective(Id, MI); in RegisterBuiltinMacro() 410 Preprocessor &PP) { in isTrivialSingleTokenExpansion() argument 419 PP.getExternalSource()->updateOutOfDateIdentifier(*II); in isTrivialSingleTokenExpansion() 423 if (auto *ExpansionMI = PP.getMacroInfo(II)) in isTrivialSingleTokenExpansion() 673 static bool GenerateNewArgTokens(Preprocessor &PP, in GenerateNewArgTokens() argument 724 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens() 742 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | PrintPreprocessedOutput.cpp | 35 Preprocessor &PP, raw_ostream *OS) { in PrintMacroDefinition() argument 70 *OS << PP.getSpelling(T, SpellingBuffer); in PrintMacroDefinition() 80 Preprocessor &PP; member in __anon881592160111::PrintPPOutputPPCallbacks 115 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os), in PrintPPOutputPPCallbacks() 441 *OS << PP.getSpelling(T, SpellingBuffer); in EmbedDirective() 493 const std::string TokenText = PP.getSpelling(IncludeTok); in InclusionDirective() 513 << "#" << PP.getSpelling(IncludeTok) << " " in InclusionDirective() 571 SourceManager &SM = PP.getSourceManager(); in MacroDefined() 577 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined() 852 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, in HandlePragma() [all …]
|
H A D | DependencyFile.cpp | 34 Preprocessor &PP; member 35 DepCollectorPPCallbacks(DependencyCollector &L, Preprocessor &PP) in DepCollectorPPCallbacks() 36 : DepCollector(L), PP(PP) {} in DepCollectorPPCallbacks() 48 PP.getSourceManager().getNonBuiltinFilenameForID(FID)) in LexedFileChanged() 119 DepCollector.finishedMainFile(PP.getDiagnostics()); in EndOfMainFile() 209 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) { in attachToPreprocessor() argument 210 PP.addPPCallbacks(std::make_unique<DepCollectorPPCallbacks>(*this, PP)); in attachToPreprocessor() 211 PP.getHeaderSearchInfo().getModuleMap().addModuleMapCallbacks( in attachToPreprocessor() 233 void DependencyFileGenerator::attachToPreprocessor(Preprocessor &PP) { in attachToPreprocessor() argument 236 PP.SetSuppressIncludeNotFoundError(true); in attachToPreprocessor() [all …]
|
H A D | CompilerInstance.cpp | 173 PP = std::move(Value); in setPreprocessor() 455 PP = std::make_shared<Preprocessor>(Invocation->getPreprocessorOptsPtr(), in createPreprocessor() 461 PP->Initialize(getTarget(), getAuxTarget()); in createPreprocessor() 464 PP->createPreprocessingRecord(); in createPreprocessor() 467 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(), in createPreprocessor() 468 PP->getFileManager(), PPOpts); in createPreprocessor() 471 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 477 const llvm::Triple *HeaderSearchTriple = &PP->getTargetInfo().getTriple(); in createPreprocessor() 478 if (PP->getTargetInfo().getTriple().getOS() == llvm::Triple::CUDA && in createPreprocessor() 479 PP->getAuxTargetInfo()) in createPreprocessor() [all …]
|
H A D | DependencyGraph.cpp | 29 const Preprocessor *PP; member in __anoncc7c34da0111::DependencyGraphCallback 46 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) {} in DependencyGraphCallback() 67 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, in AttachDependencyGraphGen() argument 69 PP.addPPCallbacks(std::make_unique<DependencyGraphCallback>(&PP, OutputFile, in AttachDependencyGraphGen() 81 SourceManager &SM = PP->getSourceManager(); in InclusionDirective() 99 SourceManager &SM = PP->getSourceManager(); in EmbedDirective() 122 PP->getDiagnostics().Report(diag::err_fe_error_opening) << OutputFile in OutputGraphFile()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | GeneratePCH.cpp | 26 Preprocessor &PP, InMemoryModuleCache &ModuleCache, StringRef OutputFile, in PCHGenerator() argument 32 : PP(PP), OutputFile(OutputFile), isysroot(isysroot.str()), in PCHGenerator() 47 if (PP.getLangOpts().isCompilingModule()) { in getEmittingModule() 48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule() 52 assert(PP.getDiagnostics().hasErrorOccurred() && in getEmittingModule() 61 if (PP.getModuleLoader().HadFatalFailure) in HandleTranslationUnit() 64 bool hasErrors = PP.getDiagnostics().hasErrorOccurred(); in HandleTranslationUnit() 73 PP.getDiagnostics().getClient()->clear(); in HandleTranslationUnit() 93 CXX20ModulesGenerator::CXX20ModulesGenerator(Preprocessor &PP, in CXX20ModulesGenerator() argument 98 PP, ModuleCache, OutputFile, llvm::StringRef(), in CXX20ModulesGenerator()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ReachableCode.cpp | 151 Preprocessor &PP, in isExpandedFromConfigurationMacro() argument 159 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro() 165 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro() 168 } else if (!PP.getLangOpts().CPlusPlus) { in isExpandedFromConfigurationMacro() 171 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro() 180 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP); 190 Preprocessor &PP, in isConfigurationValue() argument 206 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue() 221 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue() 232 isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue() [all …]
|
H A D | MacroExpansionContext.cpp | 15 static void dumpTokenInto(const clang::Preprocessor &PP, llvm::raw_ostream &OS, 21 const Preprocessor &PP; member in clang::detail::MacroExpansionRangeRecorder 27 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument 29 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder() 50 (void)PP; in MacroExpands() 52 dumpTokenInto(PP, llvm::dbgs(), MacroName); in MacroExpands() 90 PP = &NewPP; in registerForPreprocessor() 94 PP->addPPCallbacks(std::make_unique<detail::MacroExpansionRangeRecorder>( in registerForPreprocessor() 95 *PP, *SM, ExpansionRanges)); in registerForPreprocessor() 97 PP->setTokenWatcher([this](const Token &Tok) { onTokenLexed(Tok); }); in registerForPreprocessor() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteMacros.cpp | 61 static void LexRawTokensFromMainFile(Preprocessor &PP, in LexRawTokensFromMainFile() argument 63 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() 68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 81 PP.LookUpIdentifierInfo(RawTok); in LexRawTokensFromMainFile() 89 void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) { in RewriteMacrosInInput() argument 90 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() 93 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput() 97 LexRawTokensFromMainFile(PP, RawTokens); in RewriteMacrosInInput() 103 PP.EnterMainSourceFile(); in RewriteMacrosInInput() 105 PP.Lex(PPTok); in RewriteMacrosInInput() [all …]
|
H A D | InclusionRewriter.cpp | 37 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon7638e4020111::InclusionRewriter 56 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers, 107 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument 110 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter() 373 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName() 391 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process() 397 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process() 422 PP.LookUpIdentifierInfo(RawToken); in Process() 432 if (FileId != PP.getPredefinesFileID()) in Process() 549 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MustExecute.h | 376 /// A "must be executed context" for a given program point PP is the set of 377 /// instructions, potentially before and after PP, that are executed always when 378 /// PP is reached. The MustBeExecutedContextExplorer an interface to explore 388 /// In the description of the parameters we use PP to denote a program point 393 /// other than the parent of PP should be 396 /// PP in the CFG, e.g., post-dominating PP, 399 /// before PP in the CFG, e.g., dominating PP, 419 /// Return an iterator to explore the context around \p PP [all...] |
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexingAction.cpp | 104 std::shared_ptr<Preprocessor> PP; member in __anonb20dd8150111::IndexASTConsumer 110 std::shared_ptr<Preprocessor> PP, in IndexASTConsumer() argument 114 PP(std::move(PP)), in IndexASTConsumer() 117 assert(this->PP != nullptr); in IndexASTConsumer() 124 IndexCtx->getDataConsumer().setPreprocessor(PP); in Initialize() 125 PP->addPPCallbacks(std::make_unique<IndexPPCallbacks>(IndexCtx)); in Initialize() 173 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP, in createIndexingASTConsumer() argument 175 return std::make_unique<IndexASTConsumer>(DataConsumer, Opts, PP, in createIndexingASTConsumer() 181 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP) { in createIndexingASTConsumer() argument 190 return createIndexingASTConsumer(std::move(DataConsumer), Opts, std::move(PP), in createIndexingASTConsumer() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTTypeTraits.cpp | 187 const PrintingPolicy &PP) const { in print() 189 TA->print(PP, OS, /*IncludeType*/ true); in print() 191 TAL->getArgument().print(PP, OS, /*IncludeType*/ true); in print() 193 TN->print(OS, PP); in print() 195 NNS->print(OS, PP); in print() 198 NNS->print(OS, PP); in print() 202 QT->print(OS, PP); in print() 204 TL->getType().print(OS, PP); in print() 206 D->print(OS, PP); in print() 208 S->printPretty(OS, nullptr, PP); in print() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | MacroArgs.h | 68 bool VarargsElided, Preprocessor &PP); 72 void destroy(Preprocessor &PP); 76 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const; 91 getPreExpArgument(unsigned Arg, Preprocessor &PP); 117 bool invokedWithVariadicArgument(const MacroInfo *const MI, Preprocessor &PP); 125 Preprocessor &PP, bool Charify,
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | MacroPPCallbacks.cpp | 23 Preprocessor &PP, raw_ostream &Name, in writeMacroDefinition() argument 56 Value << PP.getSpelling(T, SpellingBuffer); in writeMacroDefinition() 61 MacroPPCallbacks::MacroPPCallbacks(CodeGenerator *Gen, Preprocessor &PP) in MacroPPCallbacks() argument 62 : Gen(Gen), PP(PP), Status(NoScope) {} in MacroPPCallbacks() 120 if (PP.getSourceManager().isWrittenInCommandLineFile(Loc)) in FileEntered() 140 if (!PP.getSourceManager().isWrittenInBuiltinFile(Loc)) in FileExited() 185 writeMacroDefinition(*Id, *MD->getMacroInfo(), PP, Name, Value); in MacroDefined()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MustExecute.cpp | 609 MustBeExecutedIterator &It, const Instruction *PP) { in getMustBeExecutedNextInstruction() argument 610 if (!PP) in getMustBeExecutedNextInstruction() 611 return PP; in getMustBeExecutedNextInstruction() 612 LLVM_DEBUG(dbgs() << "Find next instruction for " << *PP << "\n"); in getMustBeExecutedNextInstruction() 615 if (!ExploreInterBlock && PP->isTerminator()) { in getMustBeExecutedNextInstruction() 623 bool TransfersExecution = isGuaranteedToTransferExecutionToSuccessor(PP); in getMustBeExecutedNextInstruction() 631 if (!PP->isTerminator()) { in getMustBeExecutedNextInstruction() 632 const Instruction *NextPP = PP->getNextNode(); in getMustBeExecutedNextInstruction() 638 assert(PP->isTerminator() && "Expected a terminator!"); in getMustBeExecutedNextInstruction() 641 if (PP->getNumSuccessors() == 0) { in getMustBeExecutedNextInstruction() [all …]
|