reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/StringRef.h
  327     size_t find_if(function_ref<bool(char)> F, size_t From = 0) const {
  342     size_t find_if_not(function_ref<bool(char)> F, size_t From = 0) const {
  626     StringRef take_while(function_ref<bool(char)> F) const {
  633     StringRef take_until(function_ref<bool(char)> F) const {
  656     StringRef drop_while(function_ref<bool(char)> F) const {
  663     StringRef drop_until(function_ref<bool(char)> F) const {
include/llvm/Analysis/DDG.h
   73   bool collectInstructions(llvm::function_ref<bool(Instruction *)> const &Pred,
include/llvm/Analysis/InlineCost.h
  218     Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI,
  230               Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI,
include/llvm/Analysis/LazyCallGraph.h
  698         function_ref<void(ArrayRef<SCC *> MergedSCCs)> MergeCB = {});
  935                 function_ref<TargetLibraryInfo &(Function &)> GetTLI);
include/llvm/Analysis/MemoryBuiltins.h
   62                     function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
   75                     function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
  121                   function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
  124                   function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
include/llvm/Analysis/ScalarEvolutionNormalization.h
   50 typedef function_ref<bool(const SCEVAddRecExpr *)> NormalizePredTy;
include/llvm/Analysis/SyntheticCountsUtils.h
   40   using GetProfCountTy = function_ref<Optional<Scaled64>(NodeRef, EdgeRef)>;
   41   using AddCountTy = function_ref<void(NodeRef, Scaled64)>;
include/llvm/BinaryFormat/AMDGPUMetadataVerifier.h
   37                     function_ref<bool(msgpack::DocNode &)> verifyValue = {});
   40                    function_ref<bool(msgpack::DocNode &)> verifyNode,
   43                    function_ref<bool(msgpack::DocNode &)> verifyNode);
   47                     function_ref<bool(msgpack::DocNode &)> verifyValue = {});
include/llvm/CodeGen/AccelTable.h
  316     llvm::function_ref<unsigned(const DWARF5AccelTableStaticData &)>
include/llvm/CodeGen/AtomicExpandUtils.h
   25     function_ref<void(IRBuilder<> &, Value *, Value *, Value *, AtomicOrdering,
include/llvm/CodeGen/TailDuplicator.h
   87       function_ref<void(MachineBasicBlock *)> *RemovalCallback = nullptr);
  122       function_ref<void(MachineBasicBlock *)> *RemovalCallback = nullptr);
include/llvm/DebugInfo/DWARF/DWARFContext.h
  351          function_ref<ErrorPolicy(Error)> HandleError = defaultErrorHandler,
include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
  338         function_ref<void(Error)> RecoverableErrorCallback,
  339         function_ref<void(Error)> UnrecoverableErrorCallback,
  347     void skip(function_ref<void(Error)> ErrorCallback);
include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
   40             llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)>
include/llvm/DebugInfo/DWARF/DWARFListTable.h
  173             llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)>
  244     llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)>
include/llvm/DebugInfo/DWARF/DWARFObject.h
   36   forEachInfoSections(function_ref<void(const DWARFSection &)> F) const {}
   38   forEachTypesSections(function_ref<void(const DWARFSection &)> F) const {}
   57   forEachInfoDWOSections(function_ref<void(const DWARFSection &)> F) const {}
   59   forEachTypesDWOSections(function_ref<void(const DWARFSection &)> F) const {}
include/llvm/IR/Module.h
  420                     function_ref<GlobalVariable *()> CreateGlobalCallback);
include/llvm/IR/Value.h
  302                          llvm::function_ref<bool(Use &U)> ShouldReplace) {
include/llvm/LTO/LTO.h
   51     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
   53     function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)>
   62     function_ref<bool(StringRef, GlobalValue::GUID)> isExported,
   63     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
include/llvm/LTO/legacy/LTOCodeGenerator.h
  205       llvm::function_ref<bool(const GlobalValue &)> mustPreserveGV);
include/llvm/MC/MCParser/MCAsmParser.h
  233   bool parseMany(function_ref<bool()> parseOne, bool hasComma = true);
include/llvm/MC/MCParser/MCAsmParserExtension.h
   93   bool parseMany(function_ref<bool()> parseOne, bool hasComma = true) {
include/llvm/Object/ELF.h
  107   using WarningHandler = llvm::function_ref<Error(const Twine &Msg)>;
include/llvm/Object/ModuleSymbolTable.h
   58       function_ref<void(StringRef, object::BasicSymbolRef::Flags)> AsmSymbol);
   67                     function_ref<void(StringRef, StringRef)> AsmSymver);
include/llvm/ObjectYAML/yaml2obj.h
   47 using ErrorHandler = llvm::function_ref<void(const Twine &Msg)>;
include/llvm/ProfileData/InstrProf.h
  675              function_ref<void(instrprof_error)> Warn);
  677   void scale(uint64_t Weight, function_ref<void(instrprof_error)> Warn);
  748              function_ref<void(instrprof_error)> Warn);
  752   void scale(uint64_t Weight, function_ref<void(instrprof_error)> Warn);
  835                           function_ref<void(instrprof_error)> Warn);
  839                           function_ref<void(instrprof_error)> Warn);
include/llvm/ProfileData/InstrProfWriter.h
   54                  function_ref<void(Error)> Warn);
   55   void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
   61                               function_ref<void(Error)> Warn);
  111                  uint64_t Weight, function_ref<void(Error)> Warn);
include/llvm/Support/CrashRecoveryContext.h
   81   bool RunSafely(function_ref<void()> Fn);
   94   bool RunSafelyOnThread(function_ref<void()>, unsigned RequestedStackSize = 0);
include/llvm/Support/JSON.h
  753   using Block = llvm::function_ref<void()>;
include/llvm/Support/TimeProfiler.h
   43                             llvm::function_ref<std::string()> Detail);
   64   TimeTraceScope(StringRef Name, llvm::function_ref<std::string()> Detail) {
include/llvm/Transforms/IPO/Attributor.h
  848   bool checkForAllCallSites(const function_ref<bool(AbstractCallSite)> &Pred,
  859       const function_ref<bool(Value &, const SmallSetVector<ReturnInst *, 4> &)>
  867   bool checkForAllReturnedValues(const function_ref<bool(Value &)> &Pred,
  874   bool checkForAllInstructions(const function_ref<bool(Instruction &)> &Pred,
  882   checkForAllCallLikeInstructions(const function_ref<bool(Instruction &)> &Pred,
  896       const llvm::function_ref<bool(Instruction &)> &Pred,
  908   bool checkForAllCallSites(const function_ref<bool(AbstractCallSite)> &Pred,
 1549       const function_ref<bool(Value &, const SmallSetVector<ReturnInst *, 4> &)>
include/llvm/Transforms/IPO/FunctionImport.h
  176     function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing);
  183     function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing,
include/llvm/Transforms/IPO/HotColdSplitting.h
   36                    function_ref<BlockFrequencyInfo *(Function &)> GBFI,
   37                    function_ref<TargetTransformInfo &(Function &)> GTTI,
   39                    function_ref<AssumptionCache *(Function &)> LAC)
   54   function_ref<BlockFrequencyInfo *(Function &)> GetBFI;
   55   function_ref<TargetTransformInfo &(Function &)> GetTTI;
   57   function_ref<AssumptionCache *(Function &)> LookupAC;
include/llvm/Transforms/IPO/WholeProgramDevirt.h
  254     function_ref<bool(StringRef, GlobalValue::GUID)> isExported,
include/llvm/Transforms/Scalar/SCCP.h
   50                function_ref<AnalysisResultsForFn(Function &)> getAnalysis);
include/llvm/Transforms/Utils/Cloning.h
   61             function_ref<bool(const GlobalValue *)> ShouldCloneDefinition);
include/llvm/Transforms/Utils/CtorUtils.h
   27                              function_ref<bool(Function *)> ShouldRemove);
include/llvm/Transforms/Utils/ModuleUtils.h
   65     function_ref<void(Function *, FunctionCallee)> FunctionsCreatedCallback,
include/llvm/Transforms/Utils/SimplifyLibCalls.h
  109   function_ref<void(Instruction *, Value *)> Replacer;
  110   function_ref<void(Instruction *)> Eraser;
  142       function_ref<void(Instruction *, Value *)> Replacer =
  144       function_ref<void(Instruction *)> Eraser = &eraseFromParentDefault);
include/llvm/Transforms/Utils/SplitModule.h
   37     function_ref<void(std::unique_ptr<Module> MPart)> ModuleCallback,
include/llvm/XRay/FDRTraceExpander.h
   25   function_ref<void(const XRayRecord &)> C;
   38   explicit TraceExpander(function_ref<void(const XRayRecord &)> F, uint16_t L)
lib/Analysis/DDG.cpp
   28     llvm::function_ref<bool(Instruction *)> const &Pred,
lib/Analysis/InlineCost.cpp
  107   Optional<function_ref<BlockFrequencyInfo &(Function &)>> &GetBFI;
  295                Optional<function_ref<BlockFrequencyInfo &(Function &)>> &GetBFI,
 2006     Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI,
 2016     Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI,
lib/Analysis/LazyCallGraph.cpp
  154     Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
  531     function_ref<void(ArrayRef<SCC *> MergeSCCs)> MergeCB) {
lib/Analysis/MemoryBuiltins.cpp
  185                   function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
  240     const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
  262     const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
  322     function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
lib/Analysis/ValueTracking.cpp
  894     function_ref<APInt(const APInt &, unsigned)> KZF,
  895     function_ref<APInt(const APInt &, unsigned)> KOF) {
lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
   24     function_ref<bool(msgpack::DocNode &)> verifyValue) {
   52     msgpack::DocNode &Node, function_ref<bool(msgpack::DocNode &)> verifyNode,
   68     function_ref<bool(msgpack::DocNode &)> verifyNode) {
   78     function_ref<bool(msgpack::DocNode &)> verifyValue) {
lib/Bitcode/Reader/MetadataLoader.cpp
  476                              function_ref<void(StringRef)> CallBack);
 1925     function_ref<void(StringRef)> CallBack) {
lib/CodeGen/AsmPrinter/AccelTable.cpp
  219   llvm::function_ref<unsigned(const DataT &)> getCUIndexForEntry;
  242       llvm::function_ref<unsigned(const DataT &)> GetCUIndexForEntry);
  587     llvm::function_ref<unsigned(const DWARF5AccelTableStaticData &)>
lib/CodeGen/AtomicExpandPass.cpp
   83                       function_ref<Value *(IRBuilder<> &, Value *)> PerformOp);
   86         function_ref<Value *(IRBuilder<> &, Value *)> PerformOp);
   99         function_ref<Value *(IRBuilder<> &, Value *)> PerformOp,
  937     function_ref<Value *(IRBuilder<> &, Value *)> PerformOp) {
 1005     function_ref<Value *(IRBuilder<> &, Value *)> PerformOp) {
 1347     function_ref<Value *(IRBuilder<> &, Value *)> PerformOp,
lib/CodeGen/MIRParser/MILexer.cpp
   31     function_ref<void(StringRef::iterator Loc, const Twine &)>;
lib/CodeGen/MIRParser/MILexer.h
  232     function_ref<void(StringRef::iterator, const Twine &)> ErrorCallback);
lib/CodeGen/ParallelCG.cpp
   28                     function_ref<std::unique_ptr<TargetMachine>()> TMFactory,
lib/CodeGen/TailDuplicator.cpp
  155     function_ref<void(MachineBasicBlock *)> *RemovalCallback) {
  994     function_ref<void(MachineBasicBlock *)> *RemovalCallback) {
lib/DebugInfo/DWARF/DWARFContext.cpp
  267     llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)>
 1505                    function_ref<ErrorPolicy(Error)> HandleError)
 1749       function_ref<void(const DWARFSection &)> F) const override {
 1754       function_ref<void(const DWARFSection &)> F) const override {
 1803       function_ref<void(const DWARFSection &)> F) const override {
 1808       function_ref<void(const DWARFSection &)> F) const override {
 1817                      function_ref<ErrorPolicy(Error)> HandleError,
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
 1132     function_ref<void(Error)> RecoverableErrorCallback,
 1133     function_ref<void(Error)> UnrecoverableErrorCallback, raw_ostream *OS) {
 1147     function_ref<void(Error)> ErrorCallback) {
lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
  176     llvm::function_ref<Optional<object::SectionedAddress>(uint32_t)>
lib/IR/Core.cpp
  899                  llvm::function_ref<void(MetadataEntries &)> AccessMD) {
lib/IR/Module.cpp
  206     function_ref<GlobalVariable *()> CreateGlobalCallback) {
lib/IR/Verifier.cpp
  556                         llvm::function_ref<bool(const Value *)> Callback) {
lib/LTO/LTO.cpp
  303     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
  305     function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)>
  357     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
  359     function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)>
  387     function_ref<bool(StringRef, GlobalValue::GUID)> isExported,
  388     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
  418     function_ref<bool(StringRef, GlobalValue::GUID)> isExported,
  419     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
lib/LTO/LTOCodeGenerator.cpp
  387     llvm::function_ref<bool(const GlobalValue &)> mustPreserveGV) {
lib/MC/MCParser/MCAsmParser.cpp
  112 bool MCAsmParser::parseMany(function_ref<bool()> parseOne, bool hasComma) {
lib/Object/ModuleSymbolTable.cpp
   72                          function_ref<void(RecordStreamer &)> Init) {
  127     function_ref<void(StringRef, BasicSymbolRef::Flags)> AsmSymbol) {
  163     const Module &M, function_ref<void(StringRef, StringRef)> AsmSymver) {
lib/ProfileData/InstrProf.cpp
  603                                      function_ref<void(instrprof_error)> Warn) {
  625                                      function_ref<void(instrprof_error)> Warn) {
  638     function_ref<void(instrprof_error)> Warn) {
  656                             function_ref<void(instrprof_error)> Warn) {
  678     function_ref<void(instrprof_error)> Warn) {
  684                             function_ref<void(instrprof_error)> Warn) {
lib/ProfileData/InstrProfWriter.cpp
  184                                 function_ref<void(Error)> Warn) {
  226                                 function_ref<void(Error)> Warn) {
  253                                              function_ref<void(Error)> Warn) {
lib/Support/CrashRecoveryContext.cpp
  346 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) {
  387   function_ref<void()> Fn;
  403 bool CrashRecoveryContext::RunSafelyOnThread(function_ref<void()> Fn,
lib/Support/TimeProfiler.cpp
   66   void begin(std::string Name, llvm::function_ref<std::string()> Detail) {
  212                             llvm::function_ref<std::string()> Detail) {
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
   62                     function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
  149     Module &M, function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
lib/Target/AMDGPU/GCNHazardRecognizer.cpp
  356 typedef function_ref<bool(MachineInstr *, int WaitStates)> IsExpiredFn;
lib/Target/AMDGPU/GCNHazardRecognizer.h
   35   typedef function_ref<bool(MachineInstr *)> IsHazardFn;
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
  434     function_ref<void(MCELFStreamer &)> EmitDesc) {
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h
  138                 function_ref<void(MCELFStreamer &)> EmitDesc);
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  136     int Offset, function_ref<unsigned()> GetATReg, SMLoc IDLoc,
  304     function_ref<unsigned()> GetATReg, SMLoc IDLoc,
  701     int Offset, function_ref<unsigned()> GetATReg, SMLoc IDLoc,
 1209     int Offset, function_ref<unsigned()> GetATReg, SMLoc IDLoc,
lib/Target/Mips/MipsTargetStreamer.h
   96                                       function_ref<unsigned()> GetATReg,
  157                               function_ref<unsigned()> GetATReg, SMLoc IDLoc,
  286   bool emitDirectiveCpRestore(int Offset, function_ref<unsigned()> GetATReg,
  350   bool emitDirectiveCpRestore(int Offset, function_ref<unsigned()> GetATReg,
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
 2382   void eraseMatchingBitGroups(function_ref<bool(const BitGroup &)> F) {
lib/Transforms/IPO/ArgumentPromotion.cpp
  107             Optional<function_ref<void(CallSite OldCS, CallSite NewCS)>>
  866 promoteArguments(Function *F, function_ref<AAResults &(Function &F)> AARGetter,
  868                  Optional<function_ref<void(CallSite OldCS, CallSite NewCS)>>
lib/Transforms/IPO/Attributor.cpp
  160     const function_ref<bool(Value &, StateTy &, bool)> &VisitValueCB,
  937       const function_ref<bool(Value &, const SmallSetVector<ReturnInst *, 4> &)>
 1057     const function_ref<bool(Value &, const SmallSetVector<ReturnInst *, 4> &)>
 4244     const function_ref<bool(AbstractCallSite)> &Pred,
 4262     const function_ref<bool(AbstractCallSite)> &Pred, const Function &Fn,
 4321     const function_ref<bool(Value &, const SmallSetVector<ReturnInst *, 4> &)>
 4344     const function_ref<bool(Value &)> &Pred,
 4385     const llvm::function_ref<bool(Instruction &)> &Pred,
 4414     const llvm::function_ref<bool(Instruction &)> &Pred,
lib/Transforms/IPO/FunctionImport.cpp
  736     function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing) {
  852     function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing,
lib/Transforms/IPO/GlobalOpt.cpp
  159     Value *V, function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
  190                         function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
  277     function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
  752     function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
 1570                          function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
 1787     function_ref<DominatorTree &(Function &)> LookupDomTree) {
 1924                       function_ref<TargetLibraryInfo &(Function &)> GetTLI,
 1925                       function_ref<DominatorTree &(Function &)> LookupDomTree) {
 2066               function_ref<TargetLibraryInfo &(Function &)> GetTLI,
 2067               function_ref<DominatorTree &(Function &)> LookupDomTree) {
 2180                           function_ref<BlockFrequencyInfo &(Function &)> GetBFI,
 2216                  function_ref<BlockFrequencyInfo &(Function &)> GetBFI) {
 2247                   function_ref<TargetLibraryInfo &(Function &)> GetTLI,
 2248                   function_ref<TargetTransformInfo &(Function &)> GetTTI,
 2249                   function_ref<BlockFrequencyInfo &(Function &)> GetBFI,
 2250                   function_ref<DominatorTree &(Function &)> LookupDomTree,
 2352                    function_ref<TargetLibraryInfo &(Function &)> GetTLI,
 2353                    function_ref<DominatorTree &(Function &)> LookupDomTree,
 2823 FindCXAAtExit(Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
 2913     function_ref<TargetLibraryInfo &(Function &)> GetTLI,
 2914     function_ref<TargetTransformInfo &(Function &)> GetTTI,
 2915     function_ref<BlockFrequencyInfo &(Function &)> GetBFI,
 2916     function_ref<DominatorTree &(Function &)> LookupDomTree) {
lib/Transforms/IPO/InferFunctionAttrs.cpp
   22     Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) {
lib/Transforms/IPO/Inliner.cpp
  277     bool InsertLifetime, function_ref<AAResults &(Function &)> &AARGetter,
  309                  function_ref<InlineCost(CallSite CS)> GetInlineCost) {
  419 shouldInline(CallSite CS, function_ref<InlineCost(CallSite CS)> GetInlineCost,
  533                 function_ref<InlineCost(CallSite CS)> GetInlineCost,
  534                 function_ref<AAResults &(Function &)> AARGetter,
lib/Transforms/IPO/PartialInlining.cpp
  202       function_ref<AssumptionCache *(Function &)> LookupAC,
  204       Optional<function_ref<BlockFrequencyInfo &(Function &)>> GBFI,
  228                    function_ref<AssumptionCache *(Function &)> LookupAC);
  231                    function_ref<AssumptionCache *(Function &)> LookupAC);
  267     function_ref<AssumptionCache *(Function &)> LookupAC;
  273   function_ref<AssumptionCache *(Function &)> LookupAssumptionCache;
  275   Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI;
  967     function_ref<AssumptionCache *(Function &)> LookupAC)
  992     function_ref<AssumptionCache *(Function &)> LookupAC)
lib/Transforms/IPO/SyntheticCountsPropagation.cpp
   66 initializeCounts(Module &M, function_ref<void(Function *, uint64_t)> SetCount) {
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  176              function_ref<bool(const GlobalValue *)> ShouldKeepDefinition) {
  187 void forEachVirtualFunction(Constant *C, function_ref<void(Function *)> Fn) {
  201     function_ref<AAResults &(Function &)> AARGetter, Module &M) {
  448                          function_ref<AAResults &(Function &)> AARGetter,
lib/Transforms/IPO/WholeProgramDevirt.cpp
  319              function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter) {
  333       function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter,
  444   function_ref<AAResults &(Function &)> AARGetter;
  445   function_ref<DominatorTree &(Function &)> LookupDomTree;
  457   function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter;
  471   DevirtModule(Module &M, function_ref<AAResults &(Function &)> AARGetter,
  472                function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter,
  473                function_ref<DominatorTree &(Function &)> LookupDomTree,
  576   runForTesting(Module &M, function_ref<AAResults &(Function &)> AARGetter,
  577                 function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter,
  578                 function_ref<DominatorTree &(Function &)> LookupDomTree);
  712     function_ref<bool(StringRef, GlobalValue::GUID)> isExported,
  739     Module &M, function_ref<AAResults &(Function &)> AARGetter,
  740     function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter,
  741     function_ref<DominatorTree &(Function &)> LookupDomTree) {
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
 1462     Module &M, function_ref<BranchProbabilityInfo *(Function &)> LookupBPI,
 1463     function_ref<BlockFrequencyInfo *(Function &)> LookupBFI, bool IsCS) {
 1520     function_ref<BranchProbabilityInfo *(Function &)> LookupBPI,
 1521     function_ref<BlockFrequencyInfo *(Function &)> LookupBFI,
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  180 using DomTreeCallback = function_ref<const DominatorTree *(Function &F)>;
  182     function_ref<const PostDominatorTree *(Function &F)>;
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  241   bool run(Loop *L, function_ref<void(Loop *, bool)> LPMAddNewLoop);
  606   function_ref<void(Loop *, bool)> LPMAddNewLoop;
  627                   function_ref<void(Loop *, bool)> LPMAddNewLoop,
 1785     Loop *L, function_ref<void(Loop *, bool)> LPMAddNewLoop) {
lib/Transforms/Scalar/LoopLoadElimination.cpp
  601                           function_ref<const LoopAccessInfo &(Loop &)> GetLAI) {
lib/Transforms/Scalar/SCCP.cpp
 2007     function_ref<AnalysisResultsForFn(Function &)> getAnalysis) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1904     AssumptionCache &AC, function_ref<void(bool, ArrayRef<Loop *>)> UnswitchCB,
 2526                       function_ref<void(bool, ArrayRef<Loop *>)> UnswitchCB,
 2804                          function_ref<void(bool, ArrayRef<Loop *>)> UnswitchCB,
lib/Transforms/Utils/CloneModule.cpp
   48     function_ref<bool(const GlobalValue *)> ShouldCloneDefinition) {
lib/Transforms/Utils/CtorUtils.cpp
  117     Module &M, function_ref<bool(Function *)> ShouldRemove) {
lib/Transforms/Utils/Local.cpp
 1734     function_ref<DbgValReplacement(DbgVariableIntrinsic &DII)> RewriteExpr) {
lib/Transforms/Utils/ModuleUtils.cpp
  147     function_ref<void(Function *, FunctionCallee)> FunctionsCreatedCallback,
lib/Transforms/Utils/SimplifyLibCalls.cpp
 3130     function_ref<void(Instruction *, Value *)> Replacer,
 3131     function_ref<void(Instruction *)> Eraser)
lib/Transforms/Utils/SplitModule.cpp
  251     function_ref<void(std::unique_ptr<Module> MPart)> ModuleCallback,
lib/Transforms/Vectorize/SLPVectorizer.cpp
 1796                          function_ref<void(ScheduleData *SD)> Action) {
 6736     const function_ref<bool(Instruction *, BoUpSLP &)> Vectorize) {
tools/clang/include/clang/AST/ASTContext.h
 2791       llvm::function_ref<void(FunctionDecl *)> Pred) const;
tools/clang/include/clang/AST/DeclCXX.h
 1512       llvm::function_ref<bool(const CXXRecordDecl *BaseDefinition)>;
 1541       llvm::function_ref<bool(const CXXBaseSpecifier *Specifier,
 1657                       llvm::function_ref<bool(const NamedDecl *ND)> Filter);
tools/clang/include/clang/AST/ExternalASTMerger.h
  149                            llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
tools/clang/include/clang/AST/ExternalASTSource.h
  210                            llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
tools/clang/include/clang/Basic/Module.h
  633   using VisibleCallback = llvm::function_ref<void(Module *M)>;
  639       llvm::function_ref<void(ArrayRef<Module *> Path, Module *Conflict,
tools/clang/include/clang/Basic/Stack.h
   35   void runWithSufficientStackSpaceSlow(llvm::function_ref<void()> Diag,
   36                                        llvm::function_ref<void()> Fn);
   40   inline void runWithSufficientStackSpace(llvm::function_ref<void()> Diag,
   41                                           llvm::function_ref<void()> Fn) {
tools/clang/include/clang/CodeGen/SwiftCallingConv.h
   92     llvm::function_ref<void(CharUnits offset, CharUnits end, llvm::Type *type)>;
tools/clang/include/clang/Driver/Action.h
  326       llvm::function_ref<void(Action *, const ToolChain *, const char *)>;
tools/clang/include/clang/Driver/Multilib.h
  121   using FilterCallback = llvm::function_ref<bool(const Multilib &)>;
tools/clang/include/clang/Index/IndexSymbol.h
  152                             llvm::function_ref<void(SymbolRole)> Fn);
  154                             llvm::function_ref<bool(SymbolRole)> Fn);
  165                             llvm::function_ref<void(SymbolProperty)> Fn);
tools/clang/include/clang/Parse/Parser.h
 1711                            llvm::function_ref<void()> ExpressionStarts =
 2184       llvm::function_ref<void(ParsingFieldDeclarator &)> FieldsCallback);
 2692       Optional<llvm::function_ref<void()>> CodeCompletionHandler = None);
 2856       llvm::function_ref<
 2895       const llvm::function_ref<void(CXXScopeSpec &, DeclarationNameInfo)> &
tools/clang/include/clang/Sema/DeclSpec.h
  603       llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle);
  609       llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle);
tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h
  110                            llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
tools/clang/include/clang/Sema/Overload.h
 1072         llvm::function_ref<bool(OverloadCandidate &)> Filter =
 1079         llvm::function_ref<bool(OverloadCandidate &)> Filter =
tools/clang/include/clang/Sema/ScopeInfo.h
 1007       llvm::function_ref<void(VarDecl *, Expr *)> Callback) const;
tools/clang/include/clang/Sema/Sema.h
  299                              llvm::function_ref<QualType()> ComputeType);
  327   llvm::function_ref<QualType()> ComputeType;
 1335                                    llvm::function_ref<void()> Fn);
 3651                             llvm::function_ref<ExprResult(Expr *)> Filter =
 3656                             llvm::function_ref<ExprResult(Expr *)> Filter) {
 3662                             llvm::function_ref<ExprResult(Expr *)> Filter =
 3669                             llvm::function_ref<ExprResult(Expr *)> Filter) {
 7553       llvm::function_ref<bool()> CheckNonDependent = []{ return false; });
 7560       llvm::function_ref<bool(ArrayRef<QualType>)> CheckNonDependent);
10857       const llvm::function_ref<bool(Sema &, FunctionDecl *)> IsKnownEmitted);
11617       llvm::function_ref<void(Expr *, RecordDecl *, FieldDecl *, CharUnits)>
tools/clang/include/clang/Serialization/ASTReader.h
 1931                            llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
 2361           llvm::function_ref<void(const serialization::InputFile &IF,
 2367                                llvm::function_ref<
tools/clang/include/clang/Serialization/ModuleManager.h
  292   void visit(llvm::function_ref<bool(ModuleFile &M)> Visitor,
tools/clang/include/clang/Tooling/Execution.h
   53       llvm::function_ref<void(StringRef Key, StringRef Value)> Callback) = 0;
   65   void forEachResult(llvm::function_ref<void(StringRef Key, StringRef Value)>
tools/clang/lib/AST/ASTContext.cpp
10101     llvm::function_ref<void(FunctionDecl *)> Pred) const {
tools/clang/lib/AST/CXXInheritance.cpp
  525     llvm::function_ref<bool(const NamedDecl *ND)> Filter) {
tools/clang/lib/AST/ExternalASTMerger.cpp
  531     const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
tools/clang/lib/AST/ExternalASTSource.cpp
  117     const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
  258     const Expr *LV, DerefKind AK, llvm::function_ref<bool(PrimType)> Direct,
  259     llvm::function_ref<bool(PrimType)> Indirect) {
  284     llvm::function_ref<bool(PrimType)> Direct,
  285     llvm::function_ref<bool(PrimType)> Indirect) {
  326     llvm::function_ref<bool(PrimType)> Direct,
  327     llvm::function_ref<bool(PrimType)> Indirect) {
tools/clang/lib/AST/Interp/ByteCodeExprGen.h
  182                    llvm::function_ref<bool(PrimType)> Direct,
  183                    llvm::function_ref<bool(PrimType)> Indirect);
  186                         llvm::function_ref<bool(PrimType)> Direct,
  187                         llvm::function_ref<bool(PrimType)> Indirect);
  189                       DerefKind AK, llvm::function_ref<bool(PrimType)> Direct,
  190                       llvm::function_ref<bool(PrimType)> Indirect);
tools/clang/lib/AST/Interp/Interp.h
  159 using CompareFn = llvm::function_ref<bool(ComparisonCategoryResult)>;
tools/clang/lib/Basic/Stack.cpp
   67 void clang::runWithSufficientStackSpaceSlow(llvm::function_ref<void()> Diag,
   68                                             llvm::function_ref<void()> Fn) {
tools/clang/lib/CodeGen/CGAtomic.cpp
  235                           const llvm::function_ref<RValue(RValue)> &UpdateOp,
  274                             const llvm::function_ref<RValue(RValue)> &UpdateOp,
  278                             const llvm::function_ref<RValue(RValue)> &UpdateOp,
 1683                       const llvm::function_ref<RValue(RValue)> &UpdateOp,
 1737     llvm::AtomicOrdering AO, const llvm::function_ref<RValue(RValue)> &UpdateOp,
 1766     llvm::AtomicOrdering AO, const llvm::function_ref<RValue(RValue)> &UpdateOp,
 1878     llvm::AtomicOrdering AO, const llvm::function_ref<RValue(RValue)> &UpdateOp,
 2000     const llvm::function_ref<RValue(RValue)> &UpdateOp, bool IsVolatile) {
tools/clang/lib/CodeGen/CGCall.cpp
 1004                                       llvm::function_ref<void(Address)> Fn) {
tools/clang/lib/CodeGen/CGExprAgg.cpp
   57                            llvm::function_ref<RValue(ReturnValueSlot)> Fn);
  248     const Expr *E, llvm::function_ref<RValue(ReturnValueSlot)> EmitCall) {
tools/clang/lib/CodeGen/CGObjC.cpp
 2763 typedef llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1054     llvm::function_ref<bool(CodeGenFunction &)> DefaultInit) {
 5469     const llvm::function_ref<void(CodeGenFunction &CGF, const Expr *,
 9137     llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
 9163     llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
11370     llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
  172                      llvm::function_ref<bool(CodeGenFunction &)> DefaultInit);
  556     typedef llvm::function_ref<void(unsigned, unsigned, StringRef, unsigned,
  620     typedef llvm::function_ref<void(StringRef,
  812       llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
 1453                  llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
 2141                  llvm::function_ref<llvm::Value *(CodeGenFunction &CGF,
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  641     const llvm::function_ref<void(Address, Address)> CopyGen) {
 1236     const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen) {
 1263 typedef llvm::function_ref<void(CodeGenFunction &,
 1396     const llvm::function_ref<void(CodeGenFunction &)> BodyGen,
 1397     const llvm::function_ref<void(CodeGenFunction &)> PostIncGen) {
 1481     const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen) {
 1712     const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen) {
 3844     const llvm::function_ref<RValue(RValue)> CommonGen) {
tools/clang/lib/CodeGen/CodeGenFunction.h
  269   typedef llvm::function_ref<void(CodeGenFunction &, const OMPLoopDirective &,
  272   typedef llvm::function_ref<void(CodeGenFunction &, SourceLocation,
  277   typedef llvm::function_ref<std::pair<LValue, LValue>(
  282   typedef llvm::function_ref<std::pair<llvm::Value *, llvm::Value *>(
  917                     const llvm::function_ref<Address()> PrivateGen) {
 1283                   const llvm::function_ref<void(CodeGenFunction &)> CodeGen) {
 2992       const llvm::function_ref<void(Address, Address)> CopyGen);
 3024       const llvm::function_ref<RValue(RValue)> CommonGen);
 3075       const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen);
 3100   typedef const llvm::function_ref<void(CodeGenFunction & /*CGF*/,
 3242       const llvm::function_ref<void(CodeGenFunction &)> BodyGen,
 3243       const llvm::function_ref<void(CodeGenFunction &)> PostIncGen);
 3268       const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen);
 3400                         const llvm::function_ref<RValue(RValue)> &UpdateOp,
tools/clang/lib/Driver/ToolChains/Clang.cpp
  126                            llvm::function_ref<void(const ToolChain &)> Work) {
tools/clang/lib/Frontend/CompilerInstance.cpp
 1041                   llvm::function_ref<void(CompilerInstance &)> PreBuildStep =
 1043                   llvm::function_ref<void(CompilerInstance &)> PostBuildStep =
tools/clang/lib/Index/IndexBody.cpp
  155       llvm::function_ref<bool(const NamedDecl *ND)> Filter) {
tools/clang/lib/Index/IndexSymbol.cpp
  398                                    llvm::function_ref<bool(SymbolRole)> Fn) {
  432                                    llvm::function_ref<void(SymbolRole)> Fn) {
  547                                   llvm::function_ref<void(SymbolProperty)> Fn) {
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1275                                             llvm::function_ref<
tools/clang/lib/Parse/ParseDecl.cpp
 2415     llvm::function_ref<void()> ExpressionStarts;
 4044     llvm::function_ref<void(ParsingFieldDeclarator &)> FieldsCallback) {
 5303     Optional<llvm::function_ref<void()>> CodeCompletionHandler) {
tools/clang/lib/Parse/ParseExpr.cpp
 2901                                  llvm::function_ref<void()> ExpressionStarts) {
tools/clang/lib/Parse/ParseOpenMP.cpp
  825     llvm::function_ref<void(SourceRange,
  913     llvm::function_ref<void(SourceRange,
 1887     const llvm::function_ref<void(CXXScopeSpec &, DeclarationNameInfo)> &
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  320     llvm::function_ref<void(const CXXThrowExpr *, CFGBlock &)> Visit) {
tools/clang/lib/Sema/DeclSpec.cpp
  410     llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle) {
  422     llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle) {
tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp
  117     const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
tools/clang/lib/Sema/ScopeInfo.cpp
  233     llvm::function_ref<void(VarDecl *, Expr *)> Callback) const {
tools/clang/lib/Sema/Sema.cpp
  398                                        llvm::function_ref<void()> Fn) {
 1511     const llvm::function_ref<bool(Sema &, FunctionDecl *)> IsKnownEmitted) {
tools/clang/lib/Sema/SemaChecking.cpp
14668     llvm::function_ref<void(Expr *, RecordDecl *, FieldDecl *, CharUnits)>
tools/clang/lib/Sema/SemaCodeComplete.cpp
  396     SourceLocation Tok, llvm::function_ref<QualType()> ComputeType) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
  876     llvm::function_ref<ExprResult(SourceLocation, Expr *, unsigned)> GetInit) {
tools/clang/lib/Sema/SemaExprCXX.cpp
 7616   llvm::function_ref<ExprResult(Expr *)> ExprFilter;
 7844   TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter)
tools/clang/lib/Sema/SemaInit.cpp
 6675 using LocalVisitor = llvm::function_ref<bool(IndirectLocalPath &Path, Local L,
tools/clang/lib/Sema/SemaOpenMP.cpp
  484   hasDSA(ValueDecl *D, const llvm::function_ref<bool(OpenMPClauseKind)> CPred,
  485          const llvm::function_ref<bool(OpenMPDirectiveKind)> DPred,
  492                   const llvm::function_ref<bool(OpenMPClauseKind)> CPred,
  493                   const llvm::function_ref<bool(OpenMPDirectiveKind)> DPred,
  499                       const llvm::function_ref<bool(OpenMPClauseKind)> CPred,
  505       const llvm::function_ref<bool(OpenMPDirectiveKind)> DPred,
  510       const llvm::function_ref<bool(
  732       const llvm::function_ref<
  764       const llvm::function_ref<
 1455                    const llvm::function_ref<bool(OpenMPClauseKind)> CPred,
 1456                    const llvm::function_ref<bool(OpenMPDirectiveKind)> DPred,
 1478     ValueDecl *D, const llvm::function_ref<bool(OpenMPClauseKind)> CPred,
 1479     const llvm::function_ref<bool(OpenMPDirectiveKind)> DPred,
 1496     const ValueDecl *D, const llvm::function_ref<bool(OpenMPClauseKind)> CPred,
 1516     const llvm::function_ref<bool(OpenMPDirectiveKind)> DPred,
 1525     const llvm::function_ref<bool(OpenMPDirectiveKind,
tools/clang/lib/Sema/SemaOverload.cpp
11089     llvm::function_ref<bool(OverloadCandidate &)> Filter) {
tools/clang/lib/Sema/SemaPseudoObject.cpp
   49     typedef llvm::function_ref<Expr *(Expr *, unsigned)> SpecificRebuilderRefTy;
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 3316     bool PartialOverloading, llvm::function_ref<bool()> CheckNonDependent) {
 3813     llvm::function_ref<bool(ArrayRef<QualType>)> CheckNonDependent) {
tools/clang/lib/Sema/SemaType.cpp
 2491                     llvm::function_ref<SourceLocation(unsigned)> getParamLoc) {
tools/clang/lib/Serialization/ASTReader.cpp
 7933     const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
 9814                     llvm::function_ref<void(const serialization::InputFile &IF,
 9829     llvm::function_ref<void(const FileEntry *FE)> Visitor) {
tools/clang/lib/Serialization/ModuleManager.cpp
  330 void ModuleManager::visit(llvm::function_ref<bool(ModuleFile &M)> Visitor,
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
  150                llvm::function_ref<bool(const MallocOverflowCheck &)> Pred) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 3031       llvm::function_ref<void(const ExplodedNode *)> PreCallback,
 3032       llvm::function_ref<void(const ExplodedNode *)> PostCallback,
 3033       llvm::function_ref<bool(const ExplodedNode *)> Stop) {
tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
  320   RangeSet getSymLERange(llvm::function_ref<RangeSet()> RS,
  697       llvm::function_ref<RangeSet()> RS,
tools/clang/lib/Tooling/AllTUsExecution.cpp
   45   void forEachResult(llvm::function_ref<void(StringRef Key, StringRef Value)>
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
  171     llvm::function_ref<bool(DiagnosticConsumer &DC)> BodyShouldSucceed) {
tools/clang/lib/Tooling/Execution.cpp
   32     llvm::function_ref<void(StringRef Key, StringRef Value)> Callback) {
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
   40     llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)>
tools/clang/lib/Tooling/Syntax/Tree.cpp
   61                      llvm::function_ref<void(const syntax::Node *)> Visit) {
tools/clang/tools/clang-refactor/ClangRefactor.cpp
   84                llvm::function_ref<void(SourceRange R)> Callback) = 0;
  103                     llvm::function_ref<void(SourceRange R)> Callback) override {
  118                     llvm::function_ref<void(SourceRange R)> Callback) override {
tools/clang/tools/clang-refactor/TestSupport.cpp
   43     llvm::function_ref<void(SourceRange)> Callback) const {
tools/clang/tools/clang-refactor/TestSupport.h
   62                     llvm::function_ref<void(SourceRange)> Callback) const;
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
   31   void applyLocked(llvm::function_ref<void(raw_ostream &OS)> Fn) {
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  388     llvm::function_ref<QualType(const Expr *)> GetType, StringRef Message) {
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.h
   28                    llvm::function_ref<QualType(const Expr *)> GetType,
tools/clang/tools/extra/clangd/Diagnostics.cpp
  322     llvm::function_ref<void(clangd::Diagnostic, llvm::ArrayRef<Fix>)> OutFn) {
tools/clang/tools/extra/clangd/Diagnostics.h
  107     llvm::function_ref<void(clangd::Diagnostic, llvm::ArrayRef<Fix>)> OutFn);
tools/clang/tools/extra/clangd/FindTarget.cpp
  582   ExplicitReferenceColletor(llvm::function_ref<void(ReferenceLoc)> Out)
  714   llvm::function_ref<void(ReferenceLoc)> Out;
  722                             llvm::function_ref<void(ReferenceLoc)> Out) {
  727                             llvm::function_ref<void(ReferenceLoc)> Out) {
tools/clang/tools/extra/clangd/FindTarget.h
  107                             llvm::function_ref<void(ReferenceLoc)> Out);
  109                             llvm::function_ref<void(ReferenceLoc)> Out);
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp
   57                                llvm::function_ref<bool(PathRef)> Action) {
tools/clang/tools/extra/clangd/SourceCode.cpp
  723          llvm::function_ref<void(const clang::Token &, Position)> Action) {
  771                           llvm::function_ref<void(NamespaceEvent)> Callback) {
tools/clang/tools/extra/clangd/TUScheduler.h
  108   using PublishFn = llvm::function_ref<void(llvm::function_ref<void()>)>;
  108   using PublishFn = llvm::function_ref<void(llvm::function_ref<void()>)>;
tools/clang/tools/extra/clangd/index/Index.cpp
   61                           llvm::function_ref<void(const Symbol &)> CB) const {
   65                        llvm::function_ref<void(const Symbol &)> CB) const {
   69                      llvm::function_ref<void(const Ref &)> CB) const {
   74     llvm::function_ref<void(const SymbolID &, const Symbol &)> CB) const {
tools/clang/tools/extra/clangd/index/Index.h
   96             llvm::function_ref<void(const Symbol &)> Callback) const = 0;
  103          llvm::function_ref<void(const Symbol &)> Callback) const = 0;
  111                     llvm::function_ref<void(const Ref &)> Callback) const = 0;
  118       llvm::function_ref<void(const SymbolID &Subject, const Symbol &Object)>
  136                  llvm::function_ref<void(const Symbol &)>) const override;
  138               llvm::function_ref<void(const Symbol &)>) const override;
  140             llvm::function_ref<void(const Ref &)>) const override;
  142                  llvm::function_ref<void(const SymbolID &, const Symbol &)>)
tools/clang/tools/extra/clangd/index/MemIndex.cpp
   30     llvm::function_ref<void(const Symbol &)> Callback) const {
   61                       llvm::function_ref<void(const Symbol &)> Callback) const {
   71                     llvm::function_ref<void(const Ref &)> Callback) const {
   90     llvm::function_ref<void(const SymbolID &, const Symbol &)> Callback) const {
tools/clang/tools/extra/clangd/index/MemIndex.h
   53             llvm::function_ref<void(const Symbol &)> Callback) const override;
   56               llvm::function_ref<void(const Symbol &)> Callback) const override;
   59             llvm::function_ref<void(const Ref &)> Callback) const override;
   62                  llvm::function_ref<void(const SymbolID &, const Symbol &)>
tools/clang/tools/extra/clangd/index/Merge.cpp
   32     llvm::function_ref<void(const Symbol &)> Callback) const {
   72     llvm::function_ref<void(const Symbol &)> Callback) const {
   93                        llvm::function_ref<void(const Ref &)> Callback) const {
  125     llvm::function_ref<void(const SymbolID &, const Symbol &)> Callback) const {
tools/clang/tools/extra/clangd/index/Merge.h
   40                  llvm::function_ref<void(const Symbol &)>) const override;
   42               llvm::function_ref<void(const Symbol &)>) const override;
   44             llvm::function_ref<void(const Ref &)>) const override;
   46                  llvm::function_ref<void(const SymbolID &, const Symbol &)>)
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
  164                     llvm::function_ref<void(const Symbol &)> Callback) const {
  243                  llvm::function_ref<void(const Symbol &)> Callback) const {
  253                llvm::function_ref<void(const Ref &)> Callback) const {
  268     llvm::function_ref<void(const SymbolID &, const Symbol &)> Callback) const {
tools/clang/tools/extra/clangd/index/dex/Dex.h
   75             llvm::function_ref<void(const Symbol &)> Callback) const override;
   78               llvm::function_ref<void(const Symbol &)> Callback) const override;
   81             llvm::function_ref<void(const Ref &)> Callback) const override;
   84                  llvm::function_ref<void(const SymbolID &, const Symbol &)>
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
   41 void reportTime(llvm::StringRef Name, llvm::function_ref<void()> F) {
tools/clang/tools/extra/clangd/refactor/Tweak.cpp
   60               llvm::function_ref<bool(const Tweak &)> Filter) {
tools/clang/tools/extra/clangd/refactor/Tweak.h
  140               llvm::function_ref<bool(const Tweak &)> Filter);
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp
 1159             llvm::function_ref<void(const Symbol &)> Callback) const override {
 1167               llvm::function_ref<void(const Symbol &)>) const override {}
 1170             llvm::function_ref<void(const Ref &)>) const override {}
 1173                  llvm::function_ref<void(const SymbolID &, const Symbol &)>)
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
 2159               llvm::function_ref<void(const Ref &)>) const override {
tools/clang/tools/libclang/CIndex.cpp
 8751 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
tools/clang/tools/libclang/CIndexer.h
  115   bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
tools/clang/unittests/AST/ASTPrint.h
   23     Optional<llvm::function_ref<void(PrintingPolicy &Policy)>>;
tools/clang/unittests/AST/RecursiveASTVisitorTest.cpp
   36       Consumer(llvm::function_ref<void(ASTContext &CTx)> Process)
   42       llvm::function_ref<void(ASTContext &CTx)> Process;
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
   31   llvm::function_ref<void(SourceRange SelectionRange,
   38                          llvm::function_ref<void(SourceRange SelectionRange,
   68     llvm::function_ref<void(SourceRange SelectionRange,
   79     llvm::function_ref<void(Optional<SelectedASTNode>)> Consumer,
tools/lld/ELF/DWARF.h
   31       llvm::function_ref<void(const llvm::DWARFSection &)> f) const override {
tools/lld/ELF/ICF.cpp
  119                          llvm::function_ref<void(size_t, size_t)> fn);
  121   void forEachClass(llvm::function_ref<void(size_t, size_t)> fn);
  382                                   llvm::function_ref<void(size_t, size_t)> fn) {
  392 void ICF<ELFT>::forEachClass(llvm::function_ref<void(size_t, size_t)> fn) {
tools/lld/ELF/OutputSections.cpp
  219                         llvm::function_ref<int(InputSectionBase *s)> order) {
  239 void OutputSection::sort(llvm::function_ref<int(InputSectionBase *s)> order) {
tools/lld/ELF/OutputSections.h
  107   void sort(llvm::function_ref<int(InputSectionBase *s)> order);
tools/lld/ELF/Relocations.cpp
 1441     llvm::function_ref<void(OutputSection *, InputSectionDescription *)> fn) {
tools/lld/ELF/SymbolTable.h
   38   void forEachSymbol(llvm::function_ref<void(Symbol *)> fn) {
tools/lld/ELF/Writer.cpp
   55   void forEachRelSec(llvm::function_ref<void(InputSectionBase &)> fn);
 1014     llvm::function_ref<void(InputSectionBase &)> fn) {
tools/lld/include/lld/Common/ErrorHandler.h
  143 T check2(ErrorOr<T> e, llvm::function_ref<std::string()> prefix) {
  150 T check2(Expected<T> e, llvm::function_ref<std::string()> prefix) {
tools/lld/include/lld/Common/Threads.h
   76                              llvm::function_ref<void(size_t)> fn) {
tools/lldb/include/lldb/Host/TaskPool.h
   86                     const llvm::function_ref<void(size_t)> &func);
tools/lldb/include/lldb/Symbol/ClangExternalASTSourceCallbacks.h
   85       llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
tools/lldb/include/lldb/Symbol/CompileUnit.h
  164       llvm::function_ref<bool(const lldb::FunctionSP &)> lambda) const;
  234   void ForEachExternalModule(llvm::function_ref<void(lldb::ModuleSP)> f);
tools/lldb/include/lldb/Symbol/PostfixExpression.h
  204                     llvm::function_ref<Node *(SymbolNode &symbol)> replacer);
tools/lldb/include/lldb/Symbol/SymbolFile.h
  127                         llvm::function_ref<void(lldb::ModuleSP)> f) {}
tools/lldb/include/lldb/Target/Process.h
  658       llvm::function_ref<std::unique_ptr<UtilityFunction>()> factory);
tools/lldb/include/lldb/Utility/Log.h
  122       llvm::function_ref<void(llvm::StringRef, llvm::StringRef)> lambda);
  207       llvm::function_ref<void(llvm::StringRef, llvm::StringRef)> lambda);
tools/lldb/source/Host/common/TaskPool.cpp
  104                     const llvm::function_ref<void(size_t)> &func) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h
   85       llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
  344       llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  519     llvm::function_ref<bool(Decl::Kind)> predicate,
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h
  100       llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
  224         llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
  176     llvm::function_ref<void(llvm::StringRef)> output_callback) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
   51       llvm::function_ref<void(llvm::StringRef)> output_callback);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
  163       llvm::function_ref<void(llvm::StringRef)> output_callback);
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
  850     CompileUnit &comp_unit, llvm::function_ref<void(ModuleSP)> f) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
  110                         llvm::function_ref<void(lldb::ModuleSP)> f) override;
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
  656     CompileUnit &comp_unit, llvm::function_ref<void(ModuleSP)> f) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
   58                         llvm::function_ref<void(lldb::ModuleSP)> f) override;
tools/lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp
   91     llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
tools/lldb/source/Symbol/CompileUnit.cpp
   69     llvm::function_ref<bool(const FunctionSP &)> lambda) const {
  356 void CompileUnit::ForEachExternalModule(llvm::function_ref<void(ModuleSP)> f) {
tools/lldb/source/Symbol/PostfixExpression.cpp
  110   SymbolResolver(llvm::function_ref<Node *(SymbolNode &symbol)> replacer)
  138   llvm::function_ref<Node *(SymbolNode &symbol)> m_replacer;
  241     Node *&node, llvm::function_ref<Node *(SymbolNode &)> replacer) {
tools/lldb/source/Target/Process.cpp
 5972     llvm::function_ref<std::unique_ptr<UtilityFunction>()> factory) {
tools/lldb/source/Utility/Log.cpp
   42     llvm::function_ref<void(llvm::StringRef, llvm::StringRef)> lambda) {
  250     llvm::function_ref<void(llvm::StringRef, llvm::StringRef)> lambda) {
tools/llvm-cov/CodeCoverage.cpp
  115   typedef llvm::function_ref<int(int, const char **)> CommandLineParserType;
tools/llvm-cxxfilt/llvm-cxxfilt.cpp
   91     function_ref<bool(char)> IsLegalChar) {
tools/llvm-objcopy/COFF/Object.cpp
   40 void Object::removeSymbols(function_ref<bool(const Symbol &)> ToRemove) {
   87 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) {
  125 void Object::truncateSections(function_ref<bool(const Section &)> ToTruncate) {
tools/llvm-objcopy/COFF/Object.h
  119   void removeSymbols(function_ref<bool(const Symbol &)> ToRemove);
  135   void removeSections(function_ref<bool(const Section &)> ToRemove);
  136   void truncateSections(function_ref<bool(const Section &)> ToTruncate);
tools/llvm-objcopy/CopyConfig.cpp
  266                    llvm::function_ref<Error(Error)> ErrorCallback) {
  289                       llvm::function_ref<Error(Error)> ErrorCallback) {
  371                     llvm::function_ref<Error(Error)> ErrorCallback) {
  760                   llvm::function_ref<Error(Error)> ErrorCallback) {
tools/llvm-objcopy/CopyConfig.h
  115          llvm::function_ref<Error(Error)> ErrorCallback);
  252                     llvm::function_ref<Error(Error)> ErrorCallback);
  260                   llvm::function_ref<Error(Error)> ErrorCallback);
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  315     function_ref<bool(const SectionBase &)> shouldReplace,
  316     function_ref<SectionBase *(const SectionBase *)> addSection) {
tools/llvm-objcopy/ELF/Object.cpp
   55     function_ref<bool(const SectionBase *)> ToRemove) {
   59 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)> ToRemove) {
  674     function_ref<bool(const SectionBase *)> ToRemove) {
  690 void SymbolTableSection::updateSymbols(function_ref<void(Symbol &)> Callable) {
  700     function_ref<bool(const Symbol &)> ToRemove) {
  806     function_ref<bool(const SectionBase *)> ToRemove) {
  894     function_ref<bool(const Symbol &)> ToRemove) {
  929     bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
  950     function_ref<bool(const SectionBase *)> ToRemove) {
  967 Error GroupSection::removeSymbols(function_ref<bool(const Symbol &)> ToRemove) {
 1860 Error Object::removeSymbols(function_ref<bool(const Symbol &)> ToRemove) {
tools/llvm-objcopy/ELF/Object.h
  413                           function_ref<bool(const SectionBase *)> ToRemove);
  414   virtual Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove);
  479       function_ref<bool(const SectionBase *)> ToRemove) override;
  685   void updateSymbols(function_ref<void(Symbol &)> Callable);
  688       function_ref<bool(const SectionBase *)> ToRemove) override;
  693   Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
  758       function_ref<bool(const SectionBase *)> ToRemove) override;
  759   Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
  796   Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
  838       function_ref<bool(const SectionBase *)> ToRemove) override;
 1054   Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove);
tools/llvm-objcopy/MachO/Object.cpp
   13 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) {
tools/llvm-objcopy/MachO/Object.h
  256   void removeSections(function_ref<bool(const Section &)> ToRemove);
tools/llvm-pdbutil/DumpOutputStyle.cpp
  480     llvm::function_ref<void(uint32_t, const SymbolGroup &, SubsectionT &)>
tools/llvm-xray/trie-node.h
   54   llvm::function_ref<T(const T &, const T &)> MergeFn(
tools/sancov/sancov.cpp
  778                  function_ref<void(const object::ObjectFile &)> Fn) {
  793                  function_ref<void(const object::ObjectFile &)> Fn) {
unittests/ADT/FunctionRefTest.cpp
   19   function_ref<int()> F;
   35   function_ref<int()> X = A;
   36   function_ref<int()> Y = X;
unittests/Analysis/DivergenceAnalysisTest.cpp
   67       function_ref<void(Function &F, LoopInfo &LI, DivergenceAnalysis &DA)>
unittests/Analysis/IVDescriptorsTest.cpp
   24     function_ref<void(Function &F, LoopInfo &LI, ScalarEvolution &SE)> Test) {
unittests/Analysis/LoopInfoTest.cpp
   23                 function_ref<void(Function &F, LoopInfo &LI)> Test) {
   35     function_ref<void(Function &F, LoopInfo &LI, ScalarEvolution &SE)> Test) {
unittests/Analysis/ScalarEvolutionTest.cpp
   54       function_ref<void(Function &F, LoopInfo &LI, ScalarEvolution &SE)> Test) {
unittests/IR/DominatorTreeTest.cpp
   28     function_ref<void(Function &F, DominatorTree *DT, PostDominatorTree *PDT)>
unittests/Transforms/Utils/CloningTest.cpp
  362     function_ref<void(Function &F, LoopInfo &LI, DominatorTree &DT)> Test) {
unittests/Transforms/Utils/LocalTest.cpp
  169     function_ref<void(Function &F, DominatorTree *DT)> Test) {