Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMemProfContextDisambiguation.cpp187 using Base = std::pair<FuncTy *, unsigned>;
191 FuncTy *func() const { return this->first; } in func()
445 CallTy Call, const FuncTy *Func, const FuncTy *CallerFunc, in calleeMatchesFunc()
927 CallInfo Call, const FuncTy *F) { in addAllocNode()
1664 void CallsiteContextGraph<DerivedCCG, FuncTy,
2168 checkEdge<DerivedCCG, FuncTy, CallTy>(Edge); in checkNode()
2184 checkEdge<DerivedCCG, FuncTy, CallTy>(Edge); in checkNode()
2197 checkEdge<DerivedCCG, FuncTy, CallTy>(Edge); in check()
2449 checkNode<DerivedCCG, FuncTy, CallTy>(Node); in identifyClones()
2601 checkNode<DerivedCCG, FuncTy, CallTy>(Clone); in identifyClones()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallVectorExtras.h23 template <unsigned Size, class ContainerTy, class FuncTy>
24 auto map_to_vector(ContainerTy &&C, FuncTy &&F) { in map_to_vector()
26 map_range(std::forward<ContainerTy>(C), std::forward<FuncTy>(F))); in map_to_vector()
28 template <class ContainerTy, class FuncTy>
29 auto map_to_vector(ContainerTy &&C, FuncTy &&F) { in map_to_vector()
31 map_range(std::forward<ContainerTy>(C), std::forward<FuncTy>(F))); in map_to_vector()
H A DSTLExtras.h344 template <typename ItTy, typename FuncTy,
349 mapped_iterator<ItTy, FuncTy>, ItTy,
356 mapped_iterator(ItTy U, FuncTy F)
361 const FuncTy &getFunction() const { return F; }
366 callable_detail::Callable<FuncTy> F{};
371 template <class ItTy, class FuncTy>
372 inline mapped_iterator<ItTy, FuncTy> map_iterator(ItTy I, FuncTy F) {
376 template <class ContainerTy, class FuncTy>
377 auto map_range(ContainerTy &&C, FuncTy F) {
1476 template<typename FuncTy>
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DParallel.h230 template <class IterTy, class FuncTy>
231 void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) { in parallelForEach()
258 template <class RangeTy, class FuncTy>
259 void parallelForEach(RangeTy &&R, FuncTy Fn) { in parallelForEach()
273 template <class RangeTy, class FuncTy>
274 Error parallelForEachError(RangeTy &&R, FuncTy Fn) { in parallelForEachError()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachinePassManager.h257 using FuncTy = Error(Module &, MachineFunctionAnalysisManager &); variable
258 SmallVector<llvm::unique_function<FuncTy>, 4> InitializationFuncs;
259 SmallVector<llvm::unique_function<FuncTy>, 4> FinalizationFuncs;
262 std::map<PassIndex, llvm::unique_function<FuncTy>> MachineModulePasses;
H A DFastISel.h104 CallLoweringInfo &setCallee(Type *ResultTy, FunctionType *FuncTy, in setCallee()
112 IsVarArg = FuncTy->isVarArg(); in setCallee()
119 NumFixedArgs = FuncTy->getNumParams(); in setCallee()
126 CallLoweringInfo &setCallee(Type *ResultTy, FunctionType *FuncTy,
136 IsVarArg = FuncTy->isVarArg();
143 NumFixedArgs = (FixedArgs == ~0U) ? FuncTy->getNumParams() : FixedArgs;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h395 bool isCompatibleSignature(const FunctionType *FuncTy) const;
451 FunctionType *FuncTy; variable
457 FuncTy = FT; in AMDGPUUnmangledLibFunc()
461 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType()
470 void setFunctionType(FunctionType *FT) { FuncTy = FT; } in setFunctionType()
H A DAMDGPULibFunc.cpp519 FuncTy = nullptr; in AMDGPUUnmangledLibFunc()
1002 bool AMDGPULibFunc::isCompatibleSignature(const FunctionType *FuncTy) const { in isCompatibleSignature()
1004 return !FuncTy->isVarArg() && FuncTy->getNumParams() == getNumArgs(); in isCompatibleSignature()
1037 FunctionType *FuncTy = fInfo.getFunctionType(*M); in getOrInsertFunction() local
1041 PI = FuncTy->param_begin(), in getOrInsertFunction()
1042 PE = FuncTy->param_end(); in getOrInsertFunction()
1054 C = M->getOrInsertFunction(FuncName, FuncTy); in getOrInsertFunction()
1061 C = M->getOrInsertFunction(FuncName, FuncTy, Attr); in getOrInsertFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp219 static bool shouldFixMainFunction(FunctionType *FuncTy, FunctionType *MainTy) { in shouldFixMainFunction() argument
223 return FuncTy->getReturnType() == MainTy->getReturnType() && in shouldFixMainFunction()
224 FuncTy->getNumParams() == 0 && in shouldFixMainFunction()
225 !FuncTy->isVarArg(); in shouldFixMainFunction()
H A DWebAssemblyMCInstLower.cpp67 const auto *FuncTy = cast<FunctionType>(Global->getValueType()); in GetGlobalAddressSymbol() local
75 computeSignatureVTs(FuncTy, F, CurrentFunc, TM, ParamMVTs, ResultMVTs); in GetGlobalAddressSymbol()
H A DWebAssemblyFastISel.cpp771 FunctionType *FuncTy = Call->getFunctionType(); in selectCall() local
773 bool IsVoid = FuncTy->getReturnType()->isVoidTy(); in selectCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp190 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFunction() local
191 auto *Func = Function::Create(FuncTy, GlobalValue::InternalLinkage, in createRegisterFunction()
218 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createUnregisterFunction() local
220 Function::Create(FuncTy, GlobalValue::InternalLinkage, in createUnregisterFunction()
/freebsd-14.2/contrib/llvm-project/llvm/tools/bugpoint/
H A DMiscompilation.cpp873 FunctionType *FuncTy = F->getFunctionType(); in CleanupAndPrepareModules() local
875 Function::Create(FuncTy, GlobalValue::InternalLinkage, in CleanupAndPrepareModules()
918 CallInst::Create(FuncTy, FuncPtr, Args, "", DoCallBB); in CleanupAndPrepareModules()
922 CallInst::Create(FuncTy, FuncPtr, Args, "retval", DoCallBB); in CleanupAndPrepareModules()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp119 FunctionType *FuncTy) { in isCallingConvCCompatible() argument
134 if (!FuncTy->getReturnType()->isPointerTy() && in isCallingConvCCompatible()
135 !FuncTy->getReturnType()->isIntegerTy() && in isCallingConvCCompatible()
136 !FuncTy->getReturnType()->isVoidTy()) in isCallingConvCCompatible()
139 for (auto *Param : FuncTy->params()) { in isCallingConvCCompatible()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp355 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments() local
365 .addUse(GR->getSPIRVTypeID(FuncTy)); in lowerFormalArguments()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp143 auto *FuncTy = FunctionType::get(Type::getVoidTy(Context), ArgsTy, false); in GenEmptyFunction() local
146 auto *Func = Function::Create(FuncTy, GlobalValue::ExternalLinkage, Name, M); in GenEmptyFunction()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp465 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in getFunction() local
467 llvm::Function::Create(FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, in getFunction()
H A DCGBlocks.cpp1205 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr() local
1207 CGM.getTypes().arrangeBlockFunctionCall(Args, FuncTy); in EmitBlockCallExpr()
H A DCGExpr.cpp5028 template<typename FuncTy>
5031 const FuncTy &BranchGenFunc) { in EmitConditionalBlocks()
H A DCGBuiltin.cpp2102 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in generateBuiltinOSLogHelperFunction() local
2104 FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, Name, &CGM.getModule()); in generateBuiltinOSLogHelperFunction()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h567 FunctionType *&FuncTy);
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp1106 FunctionType *FuncTy = CI->getFunctionType(); in lowerCall() local
1138 CLI.setCallee(RetTy, FuncTy, CI->getCalledOperand(), std::move(Args), *CI) in lowerCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp6830 FunctionType *&FuncTy) { in resolveFunctionType() argument
6831 FuncTy = dyn_cast<FunctionType>(RetType); in resolveFunctionType()
6832 if (!FuncTy) { in resolveFunctionType()
6841 FuncTy = FunctionType::get(RetType, ParamTypes, false); in resolveFunctionType()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclAttr.cpp6573 const auto *FuncTy = HandlerParam->getType() in checkSwiftAsyncErrorBlock() local
6578 if (FuncTy) in checkSwiftAsyncErrorBlock()
6579 BlockParams = FuncTy->getParamTypes(); in checkSwiftAsyncErrorBlock()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2050 auto *FuncTy = in getFreshReductionFunc() local
2052 return Function::Create(FuncTy, GlobalVariable::InternalLinkage, in getFreshReductionFunc()