/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | MemProfContextDisambiguation.cpp | 154 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 D | SmallVectorExtras.h | 23 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 D | STLExtras.h | 344 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 D | Parallel.h | 230 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 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 | 219 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 D | WebAssemblyMCInstLower.cpp | 67 const auto *FuncTy = cast<FunctionType>(Global->getValueType()); in GetGlobalAddressSymbol() local 75 computeSignatureVTs(FuncTy, F, CurrentFunc, TM, ParamMVTs, ResultMVTs); in GetGlobalAddressSymbol()
|
H A D | WebAssemblyFastISel.cpp | 783 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 D | AMDGPULibFunc.h | 395 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 D | AMDGPULibFunc.cpp | 519 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 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/clang/lib/Sema/ |
H A D | SemaSwift.cpp | 216 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 D | Miscompilation.cpp | 873 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 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/lib/Target/SPIRV/ |
H A D | SPIRVCallLowering.cpp | 390 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments() local 399 .addUse(GR->getSPIRVTypeID(FuncTy)); in lowerFormalArguments()
|
/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/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 2488 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 D | CGNonTrivialStruct.cpp | 465 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in getFunction() local 467 llvm::Function::Create(FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, in getFunction()
|
H A D | CGBlocks.cpp | 1215 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr() local 1217 CGM.getTypes().arrangeBlockFunctionCall(Args, FuncTy); in EmitBlockCallExpr()
|
H A D | CGExpr.cpp | 5088 template<typename FuncTy> 5091 const FuncTy &BranchGenFunc) { in EmitConditionalBlocks()
|
H A D | CGBuiltin.cpp | 2112 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 D | LLParser.h | 565 FunctionType *&FuncTy);
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FastISel.cpp | 1119 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 D | LLParser.cpp | 7265 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()
|