| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SCCPSolver.h | 54 void addAnalysis(Function &F, AnalysisResultsForFn A); 63 DomTreeUpdater getDTU(Function &F); 74 void addTrackedFunction(Function *F); 77 void addToMustPreserveReturnsInFunctions(Function *F); 80 bool mustPreserveReturn(Function *F); 82 void addArgumentTrackedFunction(Function *F); 86 bool isArgumentTrackedFunction(Function *F); 96 bool resolvedUndefsIn(Function &F); 119 const SmallPtrSet<Function *, 16> getMRVFunctionsTracked(); 128 bool isStructLatticeConstant(Function *F, StructType *STy); [all …]
|
| H A D | CallGraphUpdater.h | 35 SmallPtrSet<Function *, 16> ReplacedFunctions; 36 SmallVector<Function *, 16> DeadFunctions; 37 SmallVector<Function *, 16> DeadFunctionsInComdats; 81 void removeFunction(Function &Fn); 85 void reanalyzeFunction(Function &Fn); 90 void registerOutlinedFunction(Function &OriginalFn, Function &NewFn); 96 void replaceFunctionWith(Function &OldFn, Function &NewFn);
|
| H A D | Cloning.h | 40 class Function; variable 118 const Twine &NameSuffix = "", Function *F = nullptr, 133 Function *CloneFunction(Function *F, ValueToValueMapTy &VMap, 167 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc, 175 void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, 193 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, 205 function_ref<AssumptionCache &(Function &)> GetAssumptionCache = nullptr, 216 function_ref<AssumptionCache &(Function &)> GetAssumptionCache; 268 Function *ForwardVarArgsTo = nullptr); 302 Function *Callee, int64_t entryDelta,
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-cov/ |
| H A D | CoverageFilters.cpp | 22 const coverage::FunctionRecord &Function) const { in matches() 23 StringRef FuncName = Function.Name; in matches() 29 const coverage::FunctionRecord &Function) const { in matches() 30 return llvm::Regex(Regex).match(Function.Name); in matches() 39 const coverage::FunctionRecord &Function) const { in matches() 45 const coverage::FunctionRecord &Function) const { in matches() 46 return PassesThreshold(FunctionCoverageSummary::get(CM, Function) in matches() 52 const coverage::FunctionRecord &Function) const { in matches() 64 if (Filter->matches(CM, Function)) in matches() 80 const coverage::FunctionRecord &Function) const { in matches() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPropagateAttributes.cpp | 103 Clone(const FnProperties &Props, Function *OrigF, Function *NewF) : in Clone() 107 Function *OrigF; 108 Function *NewF; 117 SmallSet<Function *, 32> Roots; 128 Function *cloneWithProperties(Function &F, const FnProperties &NewProps); 146 bool process(Function &F); 202 Function * 228 SmallSet<Function *, 32> NewRoots; in process() 229 SmallSet<Function *, 32> Replaced; in process() 305 for (Function *F : Replaced) { in process() [all …]
|
| H A D | AMDGPUSubtarget.h | 24 class Function; variable 71 const Function &F); 83 std::pair<unsigned, unsigned> getFlatWorkGroupSizes(const Function &F) const; 94 std::pair<unsigned, unsigned> getWavesPerEU(const Function &F) const; 99 const Function &) const; 119 bool isMesaKernel(const Function &F) const; 121 bool isAmdHsaOrMesa(const Function &F) const { in isAmdHsaOrMesa() 203 unsigned getExplicitKernelArgOffset(const Function &F) const { in getExplicitKernelArgOffset() 239 unsigned getImplicitArgNumBytes(const Function &F) const; 240 uint64_t getExplicitKernArgSize(const Function &F, Align &MaxAlign) const; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ARCRuntimeEntryPoints.h | 32 class Function; variable 109 Function *AutoreleaseRV = nullptr; 112 Function *Release = nullptr; 115 Function *Retain = nullptr; 118 Function *RetainBlock = nullptr; 121 Function *Autorelease = nullptr; 124 Function *StoreStrong = nullptr; 127 Function *RetainRV = nullptr; 130 Function *ClaimRV = nullptr; 133 Function *RetainAutorelease = nullptr; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | HotColdSplitting.h | 36 function_ref<BlockFrequencyInfo *(Function &)> GBFI, in HotColdSplitting() 37 function_ref<TargetTransformInfo &(Function &)> GTTI, in HotColdSplitting() 39 function_ref<AssumptionCache *(Function &)> LAC) in HotColdSplitting() 44 bool isFunctionCold(const Function &F) const; 45 bool shouldOutlineFrom(const Function &F) const; 46 bool outlineColdRegions(Function &F, bool HasProfileSummary); 47 Function *extractColdRegion(const BlockSequence &Region, 54 function_ref<BlockFrequencyInfo *(Function &)> GetBFI; 55 function_ref<TargetTransformInfo &(Function &)> GetTTI; 56 std::function<OptimizationRemarkEmitter &(Function &)> *GetORE; [all …]
|
| H A D | DeadArgumentElimination.h | 45 const Function *F; 49 RetOrArg(const Function *F, unsigned Idx, bool IsArg) in RetOrArg() 82 RetOrArg CreateRet(const Function *F, unsigned Idx) { in CreateRet() 87 RetOrArg CreateArg(const Function *F, unsigned Idx) { in CreateArg() 110 using LiveFuncSet = std::set<const Function *>; 130 void SurveyFunction(const Function &F); 135 void MarkLive(const Function &F); 137 bool RemoveDeadStuffFromFunction(Function *F); 138 bool DeleteDeadVarargs(Function &Fn); 139 bool RemoveDeadArgumentsFromCallers(Function &Fn);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 251 void replaceDirectCallers(Function *Old, Function *New); 256 void mergeTwoFunctions(Function *F, Function *G); 273 void writeThunk(Function *F, Function *G); 276 void writeAlias(Function *F, Function *G); 280 bool writeThunkOrAlias(Function *F, Function *G); 347 Function *F1 = cast<Function>(*I); in doSanityCheck() 348 Function *F2 = cast<Function>(*J); in doSanityCheck() 369 Function *F3 = cast<Function>(*K); in doSanityCheck() 448 Function *F = cast<Function>(I); in runOnModule() 676 void MergeFunctions::writeThunk(Function *F, Function *G) { in writeThunk() [all …]
|
| H A D | FunctionSpecialization.cpp | 82 std::function<AssumptionCache &(Function &)> GetAC; 86 SmallPtrSet<Function *, 2> SpecializedFuncs; 161 bool specializeFunction(Function *F, in specializeFunction() 293 Function *F = A->getParent(); in getSpecializationBonus() 321 Function *CalledFunction = dyn_cast<Function>(CalledValue); in getSpecializationBonus() 383 Function *F = A->getParent(); in isArgumentInteresting() 470 Function *F = A->getParent(); in getPossibleConstants() 509 void rewriteCallSites(Function *F, Function *Clone, Argument &Arg, in rewriteCallSites() 533 for (Function &F : M) { in cleanup() 561 for (Function &F : M) { in runFunctionSpecialization() [all …]
|
| H A D | LoopExtractor.cpp | 66 function_ref<DominatorTree &(Function &)> LookupDomTree, in LoopExtractor() 67 function_ref<LoopInfo &(Function &)> LookupLoopInfo, in LoopExtractor() 78 function_ref<DominatorTree &(Function &)> LookupDomTree; 79 function_ref<LoopInfo &(Function &)> LookupLoopInfo; 82 bool runOnFunction(Function &F); 122 auto LookupDomTree = [this](Function &F) -> DominatorTree & { in runOnModule() 128 auto LookupACT = [this](Function &F) -> AssumptionCache * { in runOnModule() 151 Function &F = *I; in runOnModule() 166 bool LoopExtractor::runOnFunction(Function &F) { in runOnFunction() 246 Function &Func = *L->getHeader()->getParent(); in extractLoop() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXUtilities.h | 47 bool getMaxNTIDx(const Function &, unsigned &); 48 bool getMaxNTIDy(const Function &, unsigned &); 49 bool getMaxNTIDz(const Function &, unsigned &); 51 bool getReqNTIDx(const Function &, unsigned &); 52 bool getReqNTIDy(const Function &, unsigned &); 53 bool getReqNTIDz(const Function &, unsigned &); 55 bool getMinCTASm(const Function &, unsigned &); 56 bool getMaxNReg(const Function &, unsigned &); 57 bool isKernelFunction(const Function &); 59 bool getAlign(const Function &, unsigned index, unsigned &);
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Symbol/ |
| H A D | Function.cpp | 231 Function::Function(CompileUnit *comp_unit, lldb::user_id_t func_uid, in Function() function in Function 241 Function::~Function() = default; 344 Block &Function::GetBlock(bool can_create) { in GetBlock() 422 Function *Function::CalculateSymbolContextFunction() { return this; } in CalculateSymbolContextFunction() 462 size_t Function::MemorySize() const { in MemorySize() 467 bool Function::GetIsOptimized() { in GetIsOptimized() 478 bool Function::IsTopLevelFunction() { in IsTopLevelFunction() 501 Type *Function::GetType() { in GetType() 522 CompilerType Function::GetCompilerType() { in GetCompilerType() 529 uint32_t Function::GetPrologueByteSize() { in GetPrologueByteSize() [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
| H A D | sanitizer_wrappers.cpp | 51 #define LLVM_SYMBOLIZER_GET_FUNC(Function) \ argument 52 ((__interceptor_##Function) \ 53 ? (__interceptor_##Function) \ 54 : reinterpret_cast<decltype(&Function)>(dlsym(RTLD_NEXT, #Function))) 56 #define LLVM_SYMBOLIZER_INTERCEPTOR1(Function, ...) \ argument 57 GetTypes<__VA_ARGS__>::Result __interceptor_##Function( \ 59 GetTypes<__VA_ARGS__>::Result Function( \ 61 return LLVM_SYMBOLIZER_GET_FUNC(Function)(arg0); \ 64 #define LLVM_SYMBOLIZER_INTERCEPTOR2(Function, ...) \ argument 65 GetTypes<__VA_ARGS__>::Result __interceptor_##Function( \ [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | CFLAndersAliasAnalysis.h | 28 class Function; variable 45 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 51 bool invalidate(Function &, const PreservedAnalyses &, in invalidate() argument 57 void evict(const Function *Fn); 61 const cflaa::AliasSummary *getAliasSummary(const Function &); 70 const Optional<FunctionInfo> &ensureCached(const Function &); 73 void scan(const Function &); 76 FunctionInfo buildInfoFrom(const Function &); 78 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; 85 DenseMap<const Function *, Optional<FunctionInfo>> Cache; [all …]
|
| H A D | CFLSteensAliasAnalysis.h | 30 class Function; variable 46 std::function<const TargetLibraryInfo &(Function &)> GetTLI); 53 bool invalidate(Function &, const PreservedAnalyses &, in invalidate() argument 59 void scan(Function *Fn); 61 void evict(Function *Fn); 65 const Optional<FunctionInfo> &ensureCached(Function *Fn); 69 const cflaa::AliasSummary *getAliasSummary(Function &Fn); 94 std::function<const TargetLibraryInfo &(Function &)> GetTLI; 101 DenseMap<Function *, Optional<FunctionInfo>> Cache; 104 FunctionInfo buildSetsFrom(Function *F); [all …]
|
| H A D | InlineCost.h | 28 class Function; variable 254 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 268 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 280 CallBase &Call, Function *Callee, TargetTransformInfo &CalleeTTI, 281 function_ref<const TargetLibraryInfo &(Function &)> GetTLI); 293 function_ref<AssumptionCache &(Function &)> GetAssumptionCache, 294 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr, 302 function_ref<AssumptionCache &(Function &)> GetAssumptionCache, 303 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr, 308 InlineResult isInlineViable(Function &Callee); [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPULDSUtils.cpp | 48 SmallPtrSet<Function *, 8> collectReachableCallees(Function *K) { in collectReachableCallees() 49 SmallPtrSet<Function *, 8> ReachableCallees; in collectReachableCallees() 100 DenseMap<Function *, SmallPtrSet<Function *, 8>> &KernelToCallees) { in collectReachableCallees() argument 102 for (Function &F : M.functions()) { in collectReachableCallees() 105 Function *K = &F; in collectReachableCallees() 113 DenseMap<Function *, SmallPtrSet<Function *, 8>> &KernelToCallees) { in collectReachableCallees() argument 119 SmallPtrSet<Function *, 8> LDSAccessors; in collectNonKernelAccessorsOfLDS() 132 return SmallPtrSet<Function *, 8>(); in collectNonKernelAccessorsOfLDS() 173 Function *F = I->getFunction(); in getFunctionToInstsMap() 191 bool isKernelCC(const Function *Func) { in isKernelCC() [all …]
|
| H A D | AMDGPULDSUtils.h | 30 DenseMap<Function *, SmallPtrSet<Function *, 8>> &KernelToCallees); 35 SmallPtrSet<Function *, 8> collectNonKernelAccessorsOfLDS(GlobalVariable *GV); 41 DenseMap<Function *, SmallPtrSet<Instruction *, 8>> 44 bool isKernelCC(const Function *Func); 57 const Function *F = nullptr); 60 const Function *F = nullptr); 65 void replaceConstantUsesInFunction(ConstantExpr *C, const Function *F);
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | InstIterator.h | 122 InstIterator<SymbolTableList<BasicBlock>, Function::iterator, 126 Function::const_iterator, BasicBlock::const_iterator, 133 inline inst_range instructions(Function *F) { in instructions() 136 inline const_inst_iterator inst_begin(const Function *F) { in inst_begin() 139 inline const_inst_iterator inst_end(const Function *F) { in inst_end() 142 inline const_inst_range instructions(const Function *F) { in instructions() 145 inline inst_iterator inst_begin(Function &F) { return inst_iterator(F); } in inst_begin() 147 inline inst_range instructions(Function &F) { in instructions() 150 inline const_inst_iterator inst_begin(const Function &F) { in inst_begin() 153 inline const_inst_iterator inst_end(const Function &F) { in inst_end() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 66 static void findUses(Value *V, Function &F, in findUses() 117 static Function *createWrapper(Function *F, FunctionType *Ty) { in createWrapper() 120 Function *Wrapper = Function::Create(Ty, Function::PrivateLinkage, in createWrapper() 127 Function::arg_iterator AI = Wrapper->arg_begin(); in createWrapper() 128 Function::arg_iterator AE = Wrapper->arg_end(); in createWrapper() 210 Wrapper = Function::Create(Ty, Function::PrivateLinkage, in createWrapper() 239 Function *Main = nullptr; in runOnModule() 245 for (Function &F : M) { in runOnModule() 277 DenseMap<std::pair<Function *, FunctionType *>, Function *> Wrappers; in runOnModule() 281 Function *F = UseFunc.second; in runOnModule() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | thread.h | 81 template <class Function, class... Args> 82 explicit thread(Function &&f, Args &&...args) in thread() 85 template <class Function, class... Args> 129 template <class Function, class... Args> 130 thread::thread(llvm::Optional<unsigned> StackSizeInBytes, Function &&f, in thread() 132 typedef std::tuple<typename std::decay<Function>::type, in thread() 175 template <class Function, class... Args> 180 template <class Function, class... Args> 228 template <class Function, class... Args> 233 template <class Function, class... Args> [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | CGProfile.cpp | 29 MapVector<std::pair<Function *, Function *>, uint64_t> &Counts) { in addModuleFlags() argument 50 Module &M, function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in runCGProfilePass() 51 function_ref<TargetTransformInfo &(Function &)> GetTTI, bool LazyBFI) { in runCGProfilePass() 52 MapVector<std::pair<Function *, Function *>, uint64_t> Counts; in runCGProfilePass() 54 auto UpdateCounts = [&](TargetTransformInfo &TTI, Function *F, in runCGProfilePass() 55 Function *CalledF, uint64_t NewCount) { in runCGProfilePass() 118 auto GetBFI = [this](Function &F) -> BlockFrequencyInfo & { in runOnModule() 121 auto GetTTI = [this](Function &F) -> TargetTransformInfo & { in runOnModule() 143 auto GetBFI = [&FAM](Function &F) -> BlockFrequencyInfo & { in run() 146 auto GetTTI = [&FAM](Function &F) -> TargetTransformInfo & { in run()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
| H A D | SCCP.h | 40 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); 44 std::function<const TargetLibraryInfo &(Function &)> GetTLI, 45 function_ref<AnalysisResultsForFn(Function &)> getAnalysis); 49 std::function<TargetLibraryInfo &(Function &)> GetTLI, 50 std::function<TargetTransformInfo &(Function &)> GetTTI, 51 std::function<AssumptionCache &(Function &)> GetAC, 52 function_ref<AnalysisResultsForFn(Function &)> GetAnalysis);
|