Home
last modified time | relevance | path

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

12345678910>>...77

/openbsd-src/gnu/gcc/gcc/doc/
H A Dlibgcc.texi55 @deftypefn {Runtime Function} int __ashlsi3 (int @var{a}, int @var{b})
56 @deftypefnx {Runtime Function} long __ashldi3 (long @var{a}, int @var{b})
57 @deftypefnx {Runtime Function} {long long} __ashlti3 (long long @var{a}, int @var{b})
61 @deftypefn {Runtime Function} int __ashrsi3 (int @var{a}, int @var{b})
62 @deftypefnx {Runtime Function} long __ashrdi3 (long @var{a}, int @var{b})
63 @deftypefnx {Runtime Function} {long long} __ashrti3 (long long @var{a}, int @var{b})
68 @deftypefn {Runtime Function} int __divsi3 (int @var{a}, int @var{b})
69 @deftypefnx {Runtime Function} long __divdi3 (long @var{a}, long @var{b})
70 @deftypefnx {Runtime Function} {long long} __divti3 (long long @var{a}, long long @var{b})
75 @deftypefn {Runtime Function} int __lshrsi3 (int @var{a}, int @var{b})
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h89 Function *F;
92 Function *Clone = nullptr;
103 Spec(Function *F, const SpecSig &S, InstructionCost G) in Spec()
105 Spec(Function *F, const SpecSig &&S, InstructionCost G) in Spec()
113 using SpecMap = DenseMap<Function *, std::pair<unsigned, unsigned>>;
126 std::function<const TargetLibraryInfo &(Function &)> GetTLI;
127 std::function<TargetTransformInfo &(Function &)> GetTTI;
128 std::function<AssumptionCache &(Function &)> GetAC;
134 SmallPtrSet<Function *, 32> SpecializedFuncs;
135 SmallPtrSet<Function *, 32> FullySpecialized;
[all …]
H A DHotColdSplitting.h36 function_ref<BlockFrequencyInfo *(Function &)> GBFI, in HotColdSplitting()
37 function_ref<TargetTransformInfo &(Function &)> GTTI, in HotColdSplitting()
38 std::function<OptimizationRemarkEmitter &(Function &)> *GORE, 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;
[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);
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSCCPSolver.h31 class Function; variable
80 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
85 void addAnalysis(Function &F, AnalysisResultsForFn A);
94 const LoopInfo &getLoopInfo(Function &F);
96 DomTreeUpdater getDTU(Function &F);
107 void addTrackedFunction(Function *F);
110 void addToMustPreserveReturnsInFunctions(Function *F);
113 bool mustPreserveReturn(Function *F);
115 void addArgumentTrackedFunction(Function *F);
119 bool isArgumentTrackedFunction(Function *F);
[all …]
H A DCallGraphUpdater.h36 SmallPtrSet<Function *, 16> ReplacedFunctions;
37 SmallVector<Function *, 16> DeadFunctions;
38 SmallVector<Function *, 16> DeadFunctionsInComdats;
82 void removeFunction(Function &Fn);
86 void reanalyzeFunction(Function &Fn);
91 void registerOutlinedFunction(Function &OriginalFn, Function &NewFn);
97 void replaceFunctionWith(Function &OldFn, Function &NewFn);
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUPropagateAttributes.cpp69 explicit FnProperties(const TargetMachine &TM, const Function &F) { in FnProperties()
99 Clone(const FnProperties &Props, Function *OrigF, Function *NewF) : in Clone()
103 Function *OrigF;
104 Function *NewF;
113 SmallSet<Function *, 32> Roots;
119 Function *findFunction(const FnProperties &PropsNeeded,
120 Function *OrigF);
124 Function *cloneWithProperties(Function &F, const FnProperties &NewProps);
127 void setFeatures(Function &F, const FeatureBitset &NewFeatures);
130 void setAttributes(Function &F,
[all …]
H A DAMDGPUReplaceLDSUseWithPointer.cpp119 DenseMap<Function *, SmallPtrSet<Instruction *, 8>>
122 SmallPtrSet<Function *, 8> collectNonKernelAccessorsOfLDS(GlobalVariable *GV);
133 DenseMap<GlobalVariable *, SmallPtrSet<Function *, 8>> LDSToNonKernels;
134 DenseMap<Function *, SmallPtrSet<Function *, 8>> KernelToCallees;
135 DenseMap<Function *, SmallPtrSet<GlobalVariable *, 8>> KernelToLDSPointers;
136 DenseMap<Function *, BasicBlock *> KernelToInitBB;
137 DenseMap<Function *, DenseMap<GlobalVariable *, Value *>>
199 BasicBlock *activateLaneZero(Function *K) { in activateLaneZero()
226 void initializeLDSPointer(Function *K, GlobalVariable *GV, in initializeLDSPointer()
263 Function *F = FunctionToInst.first; in replaceLDSUseByPointer()
[all …]
H A DAMDGPUSubtarget.h24 class Function; variable
75 const Function &F);
87 std::pair<unsigned, unsigned> getFlatWorkGroupSizes(const Function &F) const;
98 std::pair<unsigned, unsigned> getWavesPerEU(const Function &F) const { in getWavesPerEU()
108 getWavesPerEU(const Function &F,
114 const Function &) const;
118 unsigned getOccupancyWithLocalMemSize(uint32_t Bytes, const Function &) const;
134 bool isMesaKernel(const Function &F) const;
136 bool isAmdHsaOrMesa(const Function &F) const { in isAmdHsaOrMesa()
229 unsigned getExplicitKernelArgOffset(const Function &F) const { in getExplicitKernelArgOffset()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.h49 bool getMaxNTIDx(const Function &, unsigned &);
50 bool getMaxNTIDy(const Function &, unsigned &);
51 bool getMaxNTIDz(const Function &, unsigned &);
53 bool getReqNTIDx(const Function &, unsigned &);
54 bool getReqNTIDy(const Function &, unsigned &);
55 bool getReqNTIDz(const Function &, unsigned &);
57 bool getMinCTASm(const Function &, unsigned &);
58 bool getMaxNReg(const Function &, unsigned &);
59 bool isKernelFunction(const Function &);
61 bool getAlign(const Function &, unsigned index, unsigned &);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp175 mutable AssertingVH<Function> F;
180 FunctionNode(Function *F) in FunctionNode()
183 Function *getFunc() const { return F; } in getFunc()
188 void replaceBy(Function *G) const { in replaceBy()
240 bool insert(Function *NewFunction);
244 void remove(Function *F);
252 void replaceDirectCallers(Function *Old, Function *New);
257 void mergeTwoFunctions(Function *F, Function *G);
265 void eraseTail(Function *G);
274 void writeThunk(Function *F, Function *G);
[all …]
H A DPartialInlining.cpp191 function_ref<AssumptionCache &(Function &)> GetAC, in PartialInlinerImpl()
192 function_ref<AssumptionCache *(Function &)> LookupAC, in PartialInlinerImpl()
193 function_ref<TargetTransformInfo &(Function &)> GTTI, in PartialInlinerImpl()
194 function_ref<const TargetLibraryInfo &(Function &)> GTLI, in PartialInlinerImpl()
196 function_ref<BlockFrequencyInfo &(Function &)> GBFI = nullptr) in PartialInlinerImpl()
208 std::pair<bool, Function *> unswitchFunction(Function &F);
217 FunctionCloner(Function *F, FunctionOutliningInfo *OI,
219 function_ref<AssumptionCache *(Function &)> LookupAC,
220 function_ref<TargetTransformInfo &(Function &)> GetTTI);
221 FunctionCloner(Function *F, FunctionOutliningMultiRegionInfo *OMRI,
[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 …]
/openbsd-src/gnu/llvm/lldb/source/Symbol/
H A DFunction.cpp126 Function &caller, Target &target) { in GetLoadAddress()
148 lldb::addr_t CallEdge::GetReturnPCAddress(Function &caller, in GetReturnPCAddress()
161 auto resolve_lazy_callee = [&]() -> Function * { in ParseSymbolFileAndResolve()
177 Function *f = callee_addr.CalculateSymbolContextFunction(); in ParseSymbolFileAndResolve()
188 Function *DirectCallEdge::GetCallee(ModuleList &images, ExecutionContext &) { in GetCallee()
194 Function *IndirectCallEdge::GetCallee(ModuleList &images, in GetCallee()
220 Function *f = callee_addr.CalculateSymbolContextFunction(); in GetCallee()
232 Function::Function(CompileUnit *comp_unit, lldb::user_id_t func_uid, in Function() function in Function
242 Function::~Function() = default;
244 void Function::GetStartLineSourceInfo(FileSpec &source_file, in GetStartLineSourceInfo()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DFunction.h59 class LLVM_EXTERNAL_VISIBILITY Function : public GlobalObject,
60 public ilist_node<Function> {
98 friend class SymbolTableListTraits<Function>;
123 Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace,
127 Function(const Function&) = delete;
128 void operator=(const Function&) = delete;
129 ~Function();
134 const Function &getFunction() const { return *this; } in getFunction()
136 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
139 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 …]
H A DSSAContext.h27 class Function; variable
37 template <> class GenericSSAContext<Function> {
38 Function *F;
42 using FunctionT = Function;
49 void setFunction(Function &Fn);
50 Function *getFunction() const { return F; } in getFunction()
52 static BasicBlock *getEntryBlock(Function &F);
53 static const BasicBlock *getEntryBlock(const Function &F);
74 using SSAContext = GenericSSAContext<Function>;
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DFunction.cpp73 using ProfileCount = Function::ProfileCount;
87 Argument::Argument(Type *Ty, const Twine &Name, Function *Par, unsigned ArgNo) in Argument()
92 void Argument::setParent(Function *parent) { in setParent()
315 LLVMContext &Function::getContext() const { in getContext()
319 unsigned Function::getInstructionCount() const { in getInstructionCount()
327 Function *Function::Create(FunctionType *Ty, LinkageTypes Linkage, in Create()
332 Function *Function::createWithDefaultAttr(FunctionType *Ty, in createWithDefaultAttr()
336 auto *F = new Function(Ty, Linkage, AddrSpace, N, M); in createWithDefaultAttr()
358 void Function::removeFromParent() { in removeFromParent()
362 void Function::eraseFromParent() { in eraseFromParent()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DInlineCost.h30 class Function; variable
278 function_ref<AssumptionCache &(Function &)> GetAssumptionCache,
279 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
280 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
290 getInlineCost(CallBase &Call, Function *Callee, const InlineParams &Params,
292 function_ref<AssumptionCache &(Function &)> GetAssumptionCache,
293 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
294 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
305 CallBase &Call, Function *Callee, TargetTransformInfo &CalleeTTI,
306 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DCallPrinter.cpp59 DenseMap<const Function *, uint64_t> Freq;
63 std::function<BlockFrequencyInfo *(Function &)> LookupBFI;
66 function_ref<BlockFrequencyInfo *(Function &)> LookupBFI) in CallGraphDOTInfo()
70 for (Function &F : M->getFunctionList()) { in CallGraphDOTInfo()
72 SmallSet<Function *, 16> Callers; in CallGraphDOTInfo()
76 for (Function *Caller : Callers) in CallGraphDOTInfo()
90 uint64_t getFreq(const Function *F) { return Freq[F]; } in getFreq()
101 SmallSet<Function *, 16> Visited; in removeParallelEdges()
123 typedef std::pair<const Function *const, std::unique_ptr<CallGraphNode>>
165 if (Function *Func = Node->getFunction()) in getNodeLabel()
[all …]
/openbsd-src/gnu/llvm/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 …]

12345678910>>...77