Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMemProfContextDisambiguation.cpp227 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 DSmallVectorExtras.h37 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 DSTLExtras.h353 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 DParallel.h232 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 DDeclareRuntimeLibcalls.cpp30 FunctionType *FuncTy = in run() local
34 M.getOrInsertFunction(FuncName, FuncTy); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h409 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 DAMDGPULibFunc.cpp519 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 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.cpp221 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 DWebAssemblyMCInstLower.cpp68 const auto *FuncTy = cast<FunctionType>(Global->getValueType()); in GetGlobalAddressSymbol() local
76 computeSignatureVTs(FuncTy, F, CurrentFunc, TM, ParamMVTs, ResultMVTs); in GetGlobalAddressSymbol()
H A DWebAssemblyFastISel.cpp789 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 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/llvm/lib/ExecutionEngine/Orc/
H A DReOptimizeLayer.cpp229 FunctionType *FuncTy = in createReoptimizeCall() local
231 DispatchFunc = Function::Create(FuncTy, GlobalValue::ExternalLinkage, in createReoptimizeCall()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLBuiltinTypeDeclBuilder.cpp385 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 DSemaSwift.cpp230 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 DMiscompilation.cpp873 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 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/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/Target/SPIRV/
H A DSPIRVCallLowering.cpp437 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments() local
446 .addUse(GR->getSPIRVTypeID(FuncTy)); in lowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2622 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 DCIRGenFunction.h1142 template <typename FuncTy>
1144 const FuncTy &branchGenFunc);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp478 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in getFunction() local
480 llvm::Function::Create(FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, in getFunction()
H A DCGBlocks.cpp1226 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 DLLParser.h568 FunctionType *&FuncTy);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp1116 FunctionType *FuncTy = CI->getFunctionType(); in lowerCall() local
1148 CLI.setCallee(RetTy, FuncTy, CI->getCalledOperand(), std::move(Args), *CI) in lowerCall()

12