Home
last modified time | relevance | path

Searched refs:Function (Results 1 – 25 of 1790) sorted by relevance

12345678910>>...72

/freebsd-src/contrib/llvm-project/llvm/tools/llvm-cov/
H A DCoverageFilters.cpp22 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()
40 return Allowlist.inSection("llvmcov", "allowlist_fun", Function.Name); 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()
53 return PassesThreshold(FunctionCoverageSummary::get(CM, Function) in matches()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.h17 #include "llvm/IR/Function.h"
51 std::optional<unsigned> getMaxNTIDx(const Function &);
52 std::optional<unsigned> getMaxNTIDy(const Function &);
53 std::optional<unsigned> getMaxNTIDz(const Function &);
54 std::optional<unsigned> getMaxNTID(const Function &F);
56 std::optional<unsigned> getReqNTIDx(const Function &);
57 std::optional<unsigned> getReqNTIDy(const Function &);
58 std::optional<unsigned> getReqNTIDz(const Function &);
59 std::optional<unsigned> getReqNTID(const Function &);
61 bool getMaxClusterRank(const Function
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp26 // -- We define Function* container class with custom "operator<" (FunctionPtr).
102 #include "llvm/IR/Function.h"
174 mutable AssertingVH<Function> F;
179 FunctionNode(Function *F) : F(F), Hash(StructuralHash(*F)) {} in FunctionNode()
181 Function *getFunc() const { return F; } in getFunc()
186 void replaceBy(Function *G) const { in replaceBy()
238 bool insert(Function *NewFunction);
240 /// Remove a Function from the FnTree and queue it up for a second sweep of
242 void remove(Function *F);
250 void replaceDirectCallers(Function *Ol
[all...]
H A DAlwaysInliner.cpp35 function_ref<AssumptionCache &(Function &)> GetAssumptionCache, in AlwaysInlineImpl()
36 function_ref<AAResults &(Function &)> GetAAR, in AlwaysInlineImpl()
37 function_ref<BlockFrequencyInfo &(Function &)> GetBFI) { in AlwaysInlineImpl()
40 SmallVector<Function *, 16> InlinedComdatFunctions; in AlwaysInlineImpl()
42 for (Function &F : make_early_inc_range(M)) { in AlwaysInlineImpl()
59 Function *Caller = CB->getCaller(); in AlwaysInlineImpl()
106 for (Function *F : InlinedComdatFunctions) { in AlwaysInlineImpl()
130 auto GetAAR = [&](Function &F) -> AAResults & {
133 auto GetAssumptionCache = [&](Function &F) -> AssumptionCache & {
169 auto GetAssumptionCache = [&](Function in INITIALIZE_PASS_DEPENDENCY()
[all...]
H A DLoopExtractor.cpp61 function_ref<DominatorTree &(Function &)> LookupDomTree, in LoopExtractor()
62 function_ref<LoopInfo &(Function &)> LookupLoopInfo, in LoopExtractor()
63 function_ref<AssumptionCache *(Function &)> LookupAssumptionCache) in LoopExtractor()
73 function_ref<DominatorTree &(Function &)> LookupDomTree;
74 function_ref<LoopInfo &(Function &)> LookupLoopInfo;
75 function_ref<AssumptionCache *(Function &)> LookupAssumptionCache;
77 bool runOnFunction(Function &F);
117 auto LookupDomTree = [this](Function &F) -> DominatorTree & { in runOnModule()
120 auto LookupLoopInfo = [this, &Changed](Function &F) -> LoopInfo & { in runOnModule()
123 auto LookupACT = [this](Function &F) -> AssumptionCache * { in runOnModule()
[all …]
H A DPartialInlining.cpp35 #include "llvm/IR/Function.h"
190 function_ref<AssumptionCache &(Function &)> GetAC, in PartialInlinerImpl()
191 function_ref<AssumptionCache *(Function &)> LookupAC, in PartialInlinerImpl()
192 function_ref<TargetTransformInfo &(Function &)> GTTI, in PartialInlinerImpl()
193 function_ref<const TargetLibraryInfo &(Function &)> GTLI, in PartialInlinerImpl()
195 function_ref<BlockFrequencyInfo &(Function &)> GBFI = nullptr) in PartialInlinerImpl()
207 std::pair<bool, Function *> unswitchFunction(Function &F);
216 FunctionCloner(Function *F, FunctionOutliningInfo *OI,
218 function_ref<AssumptionCache *(Function
[all...]
H A DFunctionAttrs.cpp40 #include "llvm/IR/Function.h"
110 using SCCNodeSet = SmallSetVector<Function *, 8>;
160 checkFunctionMemoryAccess(Function &F, bool ThisBody, AAResults &AAR, in checkFunctionMemoryAccess()
252 MemoryEffects llvm::computeFunctionBodyMemoryAccess(Function &F, in computeFunctionBodyMemoryAccess()
260 SmallSet<Function *, 8> &Changed) { in addMemoryAttrs() argument
263 for (Function *F : SCCNodes) { in addMemoryAttrs()
283 for (Function *F : SCCNodes) { in addMemoryAttrs()
425 // Function summaries can fail to contain information such as declarations in thinLTOPropagateFunctionAttrs()
544 Function *F = CB->getCalledFunction(); in captured()
688 if (Function * in determinePointerAccessAttrs()
754 addArgumentReturnedAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addArgumentReturnedAttrs() argument
871 addArgumentAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addArgumentAttrs() argument
1120 addNoAliasAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addNoAliasAttrs() argument
1233 addNonNullAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addNonNullAttrs() argument
1290 addNoUndefAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addNoUndefAttrs() argument
1383 run(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) run() argument
1559 inferConvergent(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) inferConvergent() argument
1590 inferAttrsFromFunctionBodies(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) inferAttrsFromFunctionBodies() argument
1659 addNoRecurseAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addNoRecurseAttrs() argument
1729 addNoReturnAttrs(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addNoReturnAttrs() argument
1773 addWillReturn(const SCCNodeSet & SCCNodes,SmallSet<Function *,8> & Changed) addWillReturn() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h92 using SpecMap = DenseMap<Function *, std::pair<unsigned, unsigned>>;
123 Function *F;
126 Function *Clone = nullptr;
137 Spec(Function *F, const SpecSig &S, unsigned Score) in Spec()
139 Spec(Function *F, const SpecSig &&S, unsigned Score) in Spec()
260 std::function<BlockFrequencyInfo &(Function &)> GetBFI;
261 std::function<const TargetLibraryInfo &(Function &)> GetTLI;
262 std::function<TargetTransformInfo &(Function &)> GetTTI;
263 std::function<AssumptionCache &(Function &)> GetAC;
265 SmallPtrSet<Function *, 32> Specializations;
[all …]
H A DHotColdSplitting.h39 function_ref<BlockFrequencyInfo *(Function &)> GBFI, in HotColdSplitting()
40 function_ref<TargetTransformInfo &(Function &)> GTTI, in HotColdSplitting()
41 std::function<OptimizationRemarkEmitter &(Function &)> *GORE, in HotColdSplitting()
42 function_ref<AssumptionCache *(Function &)> LAC)
47 bool isFunctionCold(const Function &F) const;
51 bool shouldOutlineFrom(const Function &F) const;
52 bool outlineColdRegions(Function &F, bool HasProfileSummary);
55 Function *extractColdRegion(BasicBlock &EntryPoint, CodeExtractor &CE,
60 function_ref<BlockFrequencyInfo *(Function &)> GetBFI;
61 function_ref<TargetTransformInfo &(Function
[all...]
H A DDeadArgumentElimination.h45 const Function *F;
49 RetOrArg(const Function *F, unsigned Idx, bool IsArg) in RetOrArg()
81 RetOrArg createRet(const Function *F, unsigned Idx) { in createRet()
86 RetOrArg createArg(const Function *F, unsigned Idx) { in createArg()
109 using LiveFuncSet = std::set<const Function *>;
129 void surveyFunction(const Function &F);
134 void markLive(const Function &F);
136 bool removeDeadStuffFromFunction(Function *F);
137 bool deleteDeadVarargs(Function &F);
138 bool removeDeadArgumentsFromCallers(Function &F);
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h32 class Function; variable
70 Function *get(ARCRuntimeEntryPointKind kind) { in get()
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 *UnsafeClaimRV = nullptr;
[all …]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSCCPSolver.h31 class Function; variable
40 /// Helper struct shared between Function Specialization and SCCP Solver.
70 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
75 void addPredicateInfo(Function &F, DominatorTree &DT, AssumptionCache &AC);
93 void addTrackedFunction(Function *F);
96 void addToMustPreserveReturnsInFunctions(Function *F);
99 bool mustPreserveReturn(Function *F);
101 void addArgumentTrackedFunction(Function *F);
105 bool isArgumentTrackedFunction(Function *F);
115 bool resolvedUndefsIn(Function
[all...]
H A DCallGraphUpdater.h36 SmallPtrSet<Function *, 16> ReplacedFunctions;
37 SmallVector<Function *, 16> DeadFunctions;
38 SmallVector<Function *, 16> DeadFunctionsInComdats;
72 void removeFunction(Function &Fn); in initialize()
76 void reanalyzeFunction(Function &Fn);
81 void registerOutlinedFunction(Function &OriginalFn, Function &NewFn);
87 void replaceFunctionWith(Function &OldFn, Function &NewFn);
H A DCloning.h39 class Function;
120 const Twine &NameSuffix = "", Function *F = nullptr,
135 Function *CloneFunction(Function *F, ValueToValueMapTy &VMap,
169 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
177 void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
195 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFun
38 class Function; global() variable
[all...]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp52 #define LLVM_SYMBOLIZER_GET_FUNC(Function) \ argument
53 ((__interceptor_##Function) \
54 ? (__interceptor_##Function) \
55 : reinterpret_cast<decltype(&Function)>(dlsym(RTLD_NEXT, #Function)))
57 #define LLVM_SYMBOLIZER_INTERCEPTOR1(Function, ...) \ argument
58 GetTypes<__VA_ARGS__>::Result __interceptor_##Function( \
60 GetTypes<__VA_ARGS__>::Result Function( \
62 return LLVM_SYMBOLIZER_GET_FUNC(Function)(arg0); \
65 #define LLVM_SYMBOLIZER_INTERCEPTOR2(Function, ...) \ argument
66 GetTypes<__VA_ARGS__>::Result __interceptor_##Function( \
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp1 //===- Function.cpp - Implement the Global object classes -----------------===//
9 // This file implements the Function class for the IR library.
13 #include "llvm/IR/Function.h"
76 using ProfileCount = Function::ProfileCount;
88 void Function::convertToNewDbgValues() { in convertToNewDbgValues()
95 void Function::convertFromNewDbgValues() { in convertFromNewDbgValues()
102 void Function::setIsNewDbgInfoFormat(bool NewFlag) { in setIsNewDbgInfoFormat()
108 void Function::setNewDbgInfoFormatFlag(bool NewFlag) {
119 Argument::Argument(Type *Ty, const Twine &Name, Function *Par, unsigned ArgNo) in hasNonNullAttr()
124 void Argument::setParent(Function *paren in hasNonNullAttr()
421 Function::Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace, Function() function in Function
[all...]
/freebsd-src/contrib/llvm-project/lldb/source/Symbol/
H A DFunction.cpp1 //===-- Function.cpp ------------------------------------------------------===//
9 #include "lldb/Symbol/Function.h"
133 Function &caller, Target &target) { in GetLoadAddress()
155 lldb::addr_t CallEdge::GetReturnPCAddress(Function &caller, in GetReturnPCAddress()
168 auto resolve_lazy_callee = [&]() -> Function * { in ParseSymbolFileAndResolve()
184 Function *f = callee_addr.CalculateSymbolContextFunction(); in ParseSymbolFileAndResolve()
204 Function *DirectCallEdge::GetCallee(ModuleList &images, ExecutionContext &) { in GetCallee()
219 Function *IndirectCallEdge::GetCallee(ModuleList &images, in GetCallee()
246 Function *f = callee_addr.CalculateSymbolContextFunction(); in GetCallee()
258 Function in Function()
257 Function::Function(CompileUnit *comp_unit, lldb::user_id_t func_uid, Function() function in Function
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DFunction.h1 //===- llvm/Function.h - Class to represent a single function ---*- C++ -*-===//
9 // This file contains the declaration of the Function class, which represents a
63 class LLVM_EXTERNAL_VISIBILITY Function : public GlobalObject,
64 public ilist_node<Function> {
102 friend class SymbolTableListTraits<Function>;
148 /// Function ctor - If the (optional) Module argument is specified, the
152 Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace,
156 Function(const Function&) = delete;
157 void operator=(const Function
[all...]
H A DInstIterator.h122 InstIterator<SymbolTableList<BasicBlock>, Function::iterator,
126 Function::const_iterator, BasicBlock::const_iterator,
131 inline inst_iterator inst_begin(Function *F) { return inst_iterator(*F); } in inst_begin()
132 inline inst_iterator inst_end(Function *F) { return inst_iterator(*F, true); } in inst_end()
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()
146 inline inst_iterator inst_end(Function &F) { return inst_iterator(F, true); } in inst_end()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.h24 class Function; variable
78 const Function &F);
90 std::pair<unsigned, unsigned> getFlatWorkGroupSizes(const Function &F) const;
101 std::pair<unsigned, unsigned> getWavesPerEU(const Function &F) const { in getWavesPerEU()
111 getWavesPerEU(const Function &F,
120 const Function &) const;
124 unsigned getOccupancyWithLocalMemSize(uint32_t Bytes, const Function &) const;
140 bool isMesaKernel(const Function &F) const;
142 bool isAmdHsaOrMesa(const Function &F) const { in isAmdHsaOrMesa()
289 unsigned getMaxWorkitemID(const Function
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h30 class Function; variable
280 function_ref<AssumptionCache &(Function &)> GetAssumptionCache,
281 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
282 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
292 getInlineCost(CallBase &Call, Function *Callee, const InlineParams &Params,
294 function_ref<AssumptionCache &(Function &)> GetAssumptionCache,
295 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
296 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
307 CallBase &Call, Function *Callee, TargetTransformInfo &CalleeTTI,
308 function_ref<const TargetLibraryInfo &(Function
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp40 return "WebAssembly Fix Function Bitcasts"; in getPassName()
66 static void findUses(Value *V, Function &F, in findUses()
67 SmallVectorImpl<std::pair<CallBase *, Function *>> &Uses) { in findUses()
109 static Function *createWrapper(Function *F, FunctionType *Ty) { in createWrapper()
112 Function *Wrapper = Function::Create(Ty, Function::PrivateLinkage, in createWrapper()
119 Function::arg_iterator AI = Wrapper->arg_begin(); in createWrapper()
120 Function in createWrapper()
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A Dthread.h76 template <class Function, class... Args>
77 explicit thread(Function &&f, Args &&...args) in thread()
80 template <class Function, class... Args>
81 explicit thread(std::optional<unsigned> StackSizeInBytes, Function &&f,
124 template <class Function, class... Args>
125 thread::thread(std::optional<unsigned> StackSizeInBytes, Function &&f, in thread()
127 typedef std::tuple<std::decay_t<Function>, std::decay_t<Args>...> CalleeTuple; in thread()
129 new CalleeTuple(std::forward<Function>(f), std::forward<Args>(args)...)); in thread()
168 template <class Function, class... Args>
169 explicit thread(std::optional<unsigned> StackSizeInBytes, Function &&f,
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DCallPrinter.cpp60 DenseMap<const Function *, uint64_t> Freq;
64 std::function<BlockFrequencyInfo *(Function &)> LookupBFI;
67 function_ref<BlockFrequencyInfo *(Function &)> LookupBFI) in CallGraphDOTInfo()
71 for (Function &F : M->getFunctionList()) { in CallGraphDOTInfo()
73 SmallSet<Function *, 16> Callers; in CallGraphDOTInfo()
77 for (Function *Caller : Callers) in CallGraphDOTInfo()
91 uint64_t getFreq(const Function *F) { return Freq[F]; }
102 SmallSet<Function *, 16> Visited; in removeParallelEdges()
124 typedef std::pair<const Function *const, std::unique_ptr<CallGraphNode>>
166 if (Function *Fun in getNodeLabel()
[all...]
/freebsd-src/sys/contrib/dev/acpica/components/executer/
H A Dexserial.c297 UINT32 Function; in AcpiExReadSerialBus() local
309 * of Function in AcpiExReadSerialBus()
321 Function = ACPI_READ | (ObjDesc->Field.Attribute << 16); in AcpiExReadSerialBus()
327 Function = ACPI_READ; in AcpiExReadSerialBus()
353 Function = ACPI_READ | (AccessorType << 16); in AcpiExReadSerialBus()
359 Function = ACPI_READ; in AcpiExReadSerialBus()
381 ACPI_CAST_PTR (UINT64, BufferDesc->Buffer.Pointer), Function); in AcpiExReadSerialBus()
415 UINT32 Function; in AcpiExWriteSerialBus() local
432 * of Function in AcpiExWriteSerialBus()
454 Function in AcpiExWriteSerialBus()
[all...]

12345678910>>...72