Home
last modified time | relevance | path

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

12345678910>>...73

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h1 //===- FunctionSpecialization.h - Function Specialization -----------------===//
11 // Function Specialization is a transformation which propagates the constant
20 // Function Specialization supports propagating constant parameters like
40 // Function pointers are not handled by the InstCostVisitor. They are treated
92 using SpecMap = DenseMap<Function *, std::pair<unsigned, unsigned>>;
123 Function *F;
126 Function *Clone = nullptr;
137 Spec(Function *F, const SpecSig &S, unsigned Score)
139 Spec(Function *F, const SpecSig &&S, unsigned Score)
260 std::function<BlockFrequencyInfo &(Function
[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) in HotColdSplitting()
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 &)> GetTTI;
[all …]
H A DSampleProfileMatcher.h64 operator()(const std::pair<const Function *, FunctionId> &P) const { in operator()
71 std::unordered_map<std::pair<const Function *, FunctionId>, bool,
77 std::unordered_map<Function *, FunctionId> FuncToProfileNameMap;
87 HashKeyMap<std::unordered_map, FunctionId, Function *> *SymbolMap;
90 HashKeyMap<std::unordered_map, FunctionId, Function *>
123 HashKeyMap<std::unordered_map, FunctionId, Function *> &SymMap, in SampleProfileMatcher()
149 FunctionSamples *getFlattenedSamplesFor(const Function &F) { in getFlattenedSamplesFor()
161 void runOnFunction(Function &F);
162 void findIRAnchors(const Function &F, AnchorMap &IRAnchors) const;
167 void recordCallsiteMatchStates(const Function &F, const AnchorMap &IRAnchors,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.h51 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 &, unsigned &);
62 bool getMinCTASm(const Function &, unsigned &);
[all …]
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp174 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);
242 void remove(Function *F);
250 void replaceDirectCallers(Function *Old, Function *New);
255 void mergeTwoFunctions(Function *F, Function *G);
266 void eraseTail(Function *G);
279 void writeThunk(Function *F, Function *G);
[all …]
H A DPartialInlining.cpp190 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 &)> LookupAC,
219 function_ref<TargetTransformInfo &(Function &)> GetTTI);
220 FunctionCloner(Function *F, FunctionOutliningMultiRegionInfo *OMRI,
[all …]
H A DFunctionAttrs.cpp110 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()
544 Function *F = CB->getCalledFunction(); in captured()
688 if (Function *F = CB.getCalledFunction()) in determinePointerAccessAttrs()
754 SmallSet<Function *, 8> &Changed) { in addArgumentReturnedAttrs() argument
756 for (Function *F : SCCNodes) { in addArgumentReturnedAttrs()
[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 …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp76 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) { in setNewDbgInfoFormatFlag()
119 Argument::Argument(Type *Ty, const Twine &Name, Function *Par, unsigned ArgNo) in Argument()
124 void Argument::setParent(Function *parent) { in setParent()
358 LLVMContext &Function::getContext() const { in getContext()
362 const DataLayout &Function::getDataLayout() const { in getDataLayout()
366 unsigned Function::getInstructionCount() const { in getInstructionCount()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSCCPSolver.h31 class Function; variable
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 &F);
119 void solveWhileResolvedUndefsIn(SmallVectorImpl<Function *> &WorkList);
[all …]
H A DCallGraphUpdater.h36 SmallPtrSet<Function *, 16> ReplacedFunctions;
37 SmallVector<Function *, 16> DeadFunctions;
38 SmallVector<Function *, 16> DeadFunctionsInComdats;
72 void removeFunction(Function &Fn);
76 void reanalyzeFunction(Function &Fn);
81 void registerOutlinedFunction(Function &OriginalFn, Function &NewFn);
87 void replaceFunctionWith(Function &OldFn, Function &NewFn);
/freebsd/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/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/contrib/llvm-project/lldb/source/Symbol/
H A DFunction.cpp133 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::Function(CompileUnit *comp_unit, lldb::user_id_t func_uid, in Function() function in Function
268 Function::~Function() = default;
270 void Function::GetStartLineSourceInfo(FileSpec &source_file, in GetStartLineSourceInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFunction.h63 class LLVM_EXTERNAL_VISIBILITY Function : public GlobalObject,
64 public ilist_node<Function> {
102 friend class SymbolTableListTraits<Function>;
152 Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace,
156 Function(const Function&) = delete;
157 void operator=(const Function&) = delete;
158 ~Function();
163 const Function &getFunction() const { return *this; } in getFunction()
165 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
168 return new Function(Ty, Linkage, AddrSpace, N, M);
[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/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 &Kernel, unsigned Dimension) const;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_utilities.h19 template <typename Function> void RealtimeInvoke(Function &&Func) { in RealtimeInvoke()
21 std::forward<Function>(Func)(); in RealtimeInvoke()
25 template <typename Function>
26 void ExpectRealtimeDeath(Function &&Func,
39 EXPECT_EXIT(RealtimeInvoke(std::forward<Function>(Func)),
43 template <typename Function> void ExpectNonRealtimeSurvival(Function &&Func) { in ExpectNonRealtimeSurvival()
44 std::forward<Function>(Func)(); in ExpectNonRealtimeSurvival()
/freebsd/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 &)> GetTLI);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp66 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::arg_iterator AE = Wrapper->arg_end(); in createWrapper()
202 Wrapper = Function::Create(Ty, Function::PrivateLinkage, in createWrapper()
231 Function *Main = nullptr; in runOnModule()
233 SmallVector<std::pair<CallBase *, Function *>, 0> Uses; in runOnModule()
236 for (Function &F : M) { in runOnModule()
[all …]
/freebsd/sys/contrib/dev/acpica/components/executer/
H A Dexserial.c297 UINT32 Function; in AcpiExReadSerialBus() local
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()
365 Function = ACPI_READ; in AcpiExReadSerialBus()
387 ACPI_CAST_PTR (UINT64, BufferDesc->Buffer.Pointer), Function); in AcpiExReadSerialBus()
421 UINT32 Function; in AcpiExWriteSerialBus() local
460 Function = ACPI_WRITE | (ObjDesc->Field.Attribute << 16); in AcpiExWriteSerialBus()
466 Function = ACPI_WRITE; in AcpiExWriteSerialBus()
[all …]
/freebsd/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/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]; } in getFreq()
102 SmallSet<Function *, 16> Visited; in removeParallelEdges()
124 typedef std::pair<const Function *const, std::unique_ptr<CallGraphNode>>
166 if (Function *Func = Node->getFunction()) in getNodeLabel()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp96 Function *F = I->getFunction(); in getUsesOfLDSByFunction()
106 bool isKernelLDS(const Function *F) { in isKernelLDS()
125 for (Function &F : M.functions()) { in getTransitiveUsesOfLDS()
137 auto FunctionMakesUnknownCall = [&](const Function *F) -> bool { in getTransitiveUsesOfLDS()
151 for (Function &F : M.functions()) { in getTransitiveUsesOfLDS()
162 for (Function &Func : M.functions()) { in getTransitiveUsesOfLDS()
166 DenseSet<Function *> seen; // catches cycles in getTransitiveUsesOfLDS()
167 SmallVector<Function *, 4> wip = {&Func}; in getTransitiveUsesOfLDS()
170 Function *F = wip.pop_back_val(); in getTransitiveUsesOfLDS()
177 Function *Ith = R.second->getFunction(); in getTransitiveUsesOfLDS()
[all …]

12345678910>>...73