| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MemProfContextDisambiguation.cpp | 227 template <typename DerivedCCG, typename FuncTy, typename CallTy> 259 const CallsiteContextGraph<DerivedCCG, FuncTy, CallTy> *>; 261 const CallsiteContextGraph<DerivedCCG, FuncTy, CallTy> *>; 267 : public std::pair<FuncTy *, unsigned /*Clone number*/> { 268 using Base = std::pair<FuncTy *, unsigned>; 270 FuncInfo(FuncTy *F = nullptr, unsigned CloneNo = 0) : Base(F, CloneNo) {} in FuncInfo() 272 FuncTy *func() const { return this->first; } in func() 561 ContextNode *addAllocNode(CallInfo Call, const FuncTy *F); 597 MapVector<FuncTy *, std::vector<CallInfo>> FuncToCallsWithMetadata; 600 std::map<const ContextNode *, const FuncTy *> NodeToCallingFunc; [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | SmallVectorExtras.h | 37 template <unsigned Size, class ContainerTy, class FuncTy> 38 auto map_to_vector(ContainerTy &&C, FuncTy &&F) { in map_to_vector() 40 map_range(std::forward<ContainerTy>(C), std::forward<FuncTy>(F))); in map_to_vector() 44 template <class ContainerTy, class FuncTy> 45 auto map_to_vector(ContainerTy &&C, FuncTy &&F) { in map_to_vector() 47 map_range(std::forward<ContainerTy>(C), std::forward<FuncTy>(F))); in map_to_vector()
|
| H A D | STLExtras.h | 353 template <typename ItTy, typename FuncTy, 355 decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))> 358 mapped_iterator<ItTy, FuncTy>, ItTy, 365 mapped_iterator(ItTy U, FuncTy F) 370 const FuncTy &getFunction() const { return F; } 375 callable_detail::Callable<FuncTy> F{}; 380 template <class ItTy, class FuncTy> 381 inline mapped_iterator<ItTy, FuncTy> map_iterator(ItTy I, FuncTy F) { 382 return mapped_iterator<ItTy, FuncTy>(std::move(I), std::move(F)); 385 template <class ContainerTy, class FuncTy> [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Parallel.h | 232 template <class IterTy, class FuncTy> 233 void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) { in parallelForEach() 260 template <class RangeTy, class FuncTy> 261 void parallelForEach(RangeTy &&R, FuncTy Fn) { in parallelForEach() 275 template <class RangeTy, class FuncTy> 276 Error parallelForEachError(RangeTy &&R, FuncTy Fn) { in parallelForEachError()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | DeclareRuntimeLibcalls.cpp | 30 FunctionType *FuncTy = in run() local 34 M.getOrInsertFunction(FuncName, FuncTy); in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 409 bool isCompatibleSignature(const Module &M, const FunctionType *FuncTy) const; 465 FunctionType *FuncTy; variable 471 FuncTy = FT; in AMDGPUUnmangledLibFunc() 476 return FuncTy; in getFunctionType() 486 void setFunctionType(FunctionType *FT) { FuncTy = FT; } in setFunctionType()
|
| H A D | AMDGPULibFunc.cpp | 519 FuncTy = nullptr; in AMDGPUUnmangledLibFunc() 1031 const FunctionType *FuncTy = getFunctionType(M); in isCompatibleSignature() local 1033 if (!FuncTy) { in isCompatibleSignature() 1044 if (FuncTy == CallTy) in isCompatibleSignature() 1047 const unsigned NumParams = FuncTy->getNumParams(); in isCompatibleSignature() 1052 Type *FuncArgTy = FuncTy->getParamType(I); in isCompatibleSignature() 1099 FunctionType *FuncTy = fInfo.getFunctionType(*M); in getOrInsertFunction() local 1100 assert(FuncTy); in getOrInsertFunction() 1104 PI = FuncTy->param_begin(), in getOrInsertFunction() 1105 PE = FuncTy->param_end(); in getOrInsertFunction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | FastISel.h | 104 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 D | WebAssemblyFixFunctionBitcasts.cpp | 221 static bool shouldFixMainFunction(FunctionType *FuncTy, FunctionType *MainTy) { in shouldFixMainFunction() argument 225 return FuncTy->getReturnType() == MainTy->getReturnType() && in shouldFixMainFunction() 226 FuncTy->getNumParams() == 0 && in shouldFixMainFunction() 227 !FuncTy->isVarArg(); in shouldFixMainFunction()
|
| H A D | WebAssemblyMCInstLower.cpp | 68 const auto *FuncTy = cast<FunctionType>(Global->getValueType()); in GetGlobalAddressSymbol() local 76 computeSignatureVTs(FuncTy, F, CurrentFunc, TM, ParamMVTs, ResultMVTs); in GetGlobalAddressSymbol()
|
| H A D | WebAssemblyFastISel.cpp | 789 FunctionType *FuncTy = Call->getFunctionType(); in selectCall() local 791 bool IsVoid = FuncTy->getReturnType()->isVoidTy(); in selectCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
| H A D | OffloadWrapper.cpp | 192 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/llvm/lib/ExecutionEngine/Orc/ |
| H A D | ReOptimizeLayer.cpp | 229 FunctionType *FuncTy = in createReoptimizeCall() local 231 DispatchFunc = Function::Create(FuncTy, GlobalValue::ExternalLinkage, in createReoptimizeCall()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | HLSLBuiltinTypeDeclBuilder.cpp | 385 QualType FuncTy = AST.getFunctionType(ReturnTy, ParamTypes, ExtInfo); in createDecl() local 388 auto *TSInfo = AST.getTrivialTypeSourceInfo(FuncTy, SourceLocation()); in createDecl() 392 AST, DeclBuilder.Record, SourceLocation(), NameInfo, FuncTy, TSInfo, in createDecl() 398 NameInfo, FuncTy, TSInfo, SC_None, false, false, in createDecl()
|
| H A D | SemaSwift.cpp | 230 const auto *FuncTy = HandlerParam->getType() in checkSwiftAsyncErrorBlock() local 235 if (FuncTy) in checkSwiftAsyncErrorBlock() 236 BlockParams = FuncTy->getParamTypes(); in checkSwiftAsyncErrorBlock()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | Miscompilation.cpp | 873 FunctionType *FuncTy = F->getFunctionType(); in CleanupAndPrepareModules() local 875 Function::Create(FuncTy, GlobalValue::InternalLinkage, in CleanupAndPrepareModules() 913 CallInst::Create(FuncTy, FuncPtr, Args, "", DoCallBB); in CleanupAndPrepareModules() 917 CallInst::Create(FuncTy, FuncPtr, Args, "retval", DoCallBB); in CleanupAndPrepareModules()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TargetLibraryInfo.cpp | 122 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/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 143 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/Target/SPIRV/ |
| H A D | SPIRVCallLowering.cpp | 437 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments() local 446 .addUse(GR->getSPIRVTypeID(FuncTy)); in lowerFormalArguments()
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 2622 FunctionType *FuncTy = FunctionType::get( in emitInterWarpCopyFunction() local 2626 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitInterWarpCopyFunction() 2857 FunctionType *FuncTy = in emitShuffleAndReduceFunction() local 2863 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitShuffleAndReduceFunction() 3024 FunctionType *FuncTy = FunctionType::get( in emitListToGlobalCopyFunction() local 3029 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitListToGlobalCopyFunction() 3134 FunctionType *FuncTy = FunctionType::get( in emitListToGlobalReduceFunction() local 3139 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitListToGlobalReduceFunction() 3217 FunctionType *FuncTy = FunctionType::get( in emitGlobalToListCopyFunction() local 3222 Function::Create(FuncTy, GlobalVariable::InternalLinkage, in emitGlobalToListCopyFunction() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenFunction.h | 1142 template <typename FuncTy> 1144 const FuncTy &branchGenFunc);
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGNonTrivialStruct.cpp | 478 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in getFunction() local 480 llvm::Function::Create(FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, in getFunction()
|
| H A D | CGBlocks.cpp | 1226 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr() local 1228 CGM.getTypes().arrangeBlockFunctionCall(Args, FuncTy); in EmitBlockCallExpr()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLParser.h | 568 FunctionType *&FuncTy);
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FastISel.cpp | 1116 FunctionType *FuncTy = CI->getFunctionType(); in lowerCall() local 1148 CLI.setCallee(RetTy, FuncTy, CI->getCalledOperand(), std::move(Args), *CI) in lowerCall()
|