Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMemProfContextDisambiguation.cpp154 template <typename DerivedCCG, typename FuncTy, typename CallTy>
186 const CallsiteContextGraph<DerivedCCG, FuncTy, CallTy> *>;
188 const CallsiteContextGraph<DerivedCCG, FuncTy, CallTy> *>;
194 : public std::pair<FuncTy *, unsigned /*Clone number*/> {
195 using Base = std::pair<FuncTy *, unsigned>;
197 FuncInfo(FuncTy *F = nullptr, unsigned CloneNo = 0) : Base(F, CloneNo) {} in FuncInfo()
199 FuncTy *func() const { return this->first; } in func()
438 ContextNode *addAllocNode(CallInfo Call, const FuncTy *F);
458 MapVector<FuncTy *, std::vector<CallInfo>> FuncToCallsWithMetadata;
461 std::map<const ContextNode *, const FuncTy *> NodeToCallingFunc;
[all …]
/freebsd/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,
346 decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))>
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) {
373 return mapped_iterator<ItTy, FuncTy>(std::move(I), std::move(F));
376 template <class ContainerTy, class FuncTy>
[all …]
/freebsd/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/contrib/llvm-project/llvm/include/llvm/CodeGen/
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/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.cpp783 FunctionType *FuncTy = Call->getFunctionType(); in selectCall() local
785 bool IsVoid = FuncTy->getReturnType()->isVoidTy(); in selectCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h395 bool isCompatibleSignature(const FunctionType *FuncTy) const; in getFunctionType()
451 FunctionType *FuncTy;
457 FuncTy = FT; in setFunctionType()
461 FunctionType *getFunctionType(Module &M) const override { return FuncTy; }
470 void setFunctionType(FunctionType *FT) { FuncTy = FT; }
438 FunctionType *FuncTy; global() variable
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/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp192 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createUnregisterFunction() local
194 Function::Create(FuncTy, GlobalValue::InternalLinkage, in createUnregisterFunction()
215 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFunction() local
216 auto *Func = Function::Create(FuncTy, GlobalValue::InternalLinkage, in createRegisterFunction()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaSwift.cpp216 const auto *FuncTy = HandlerParam->getType() in checkSwiftAsyncErrorBlock() local
221 if (FuncTy) in checkSwiftAsyncErrorBlock()
222 BlockParams = FuncTy->getParamTypes(); in checkSwiftAsyncErrorBlock()
/freebsd/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/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp122 FunctionType *FuncTy) { in isCallingConvCCompatible() argument
137 if (!FuncTy->getReturnType()->isPointerTy() && in isCallingConvCCompatible()
138 !FuncTy->getReturnType()->isIntegerTy() && in isCallingConvCCompatible()
139 !FuncTy->getReturnType()->isVoidTy()) in isCallingConvCCompatible()
142 for (auto *Param : FuncTy->params()) { in isCallingConvCCompatible()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp390 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments() local
399 .addUse(GR->getSPIRVTypeID(FuncTy)); in lowerFormalArguments()
/freebsd/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/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2488 FunctionType *FuncTy = FunctionType::get( in emitInterWarpCopyFunction() local
2492 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitInterWarpCopyFunction()
2716 FunctionType *FuncTy = in emitShuffleAndReduceFunction() local
2722 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitShuffleAndReduceFunction()
2882 FunctionType *FuncTy = FunctionType::get( in emitListToGlobalCopyFunction() local
2887 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitListToGlobalCopyFunction()
2992 FunctionType *FuncTy = FunctionType::get( in emitListToGlobalReduceFunction() local
2997 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitListToGlobalReduceFunction()
3075 FunctionType *FuncTy = FunctionType::get( in emitGlobalToListCopyFunction() local
3080 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitGlobalToListCopyFunction()
[all …]
/freebsd/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.cpp1215 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr() local
1217 CGM.getTypes().arrangeBlockFunctionCall(Args, FuncTy); in EmitBlockCallExpr()
H A DCGExpr.cpp5088 template<typename FuncTy>
5091 const FuncTy &BranchGenFunc) { in EmitConditionalBlocks()
H A DCGBuiltin.cpp2112 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in generateBuiltinOSLogHelperFunction() local
2114 FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, Name, &CGM.getModule()); in generateBuiltinOSLogHelperFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h565 FunctionType *&FuncTy);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp1119 FunctionType *FuncTy = CI->getFunctionType(); in lowerCall() local
1151 CLI.setCallee(RetTy, FuncTy, CI->getCalledOperand(), std::move(Args), *CI) in lowerCall()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp7265 FunctionType *&FuncTy) { in resolveFunctionType() argument
7266 FuncTy = dyn_cast<FunctionType>(RetType); in resolveFunctionType()
7267 if (!FuncTy) { in resolveFunctionType()
7276 FuncTy = FunctionType::get(RetType, ParamTypes, false); in resolveFunctionType()