| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | Visitors.h | 165 typename ArgT = detail::first_argument<FuncTy>, 169 walk(Operation *op, FuncTy &&callback) { in walk() 186 typename ArgT = detail::first_argument<FuncTy>, 192 walk(Operation *op, FuncTy &&callback) { in walk() 227 walk(Operation *op, FuncTy &&callback) { in walk() 261 template <typename FuncTy, typename ArgT = detail::first_argument<FuncTy>, 265 walk(Operation *op, FuncTy &&callback) { in walk() 276 template <typename FuncTy, typename ArgT = detail::first_argument<FuncTy>, 282 walk(Operation *op, FuncTy &&callback) { in walk() 301 template <typename FuncTy, typename ArgT = detail::first_argument<FuncTy>, [all …]
|
| H A D | Diagnostics.h | 438 template <typename FuncTy, typename RetT = decltype(std::declval<FuncTy>()( 441 registerHandler(FuncTy &&handler) { in registerHandler() 517 template <typename FuncTy> 518 ScopedDiagnosticHandler(MLIRContext *ctx, FuncTy &&handler) in ScopedDiagnosticHandler() 520 setHandler(std::forward<FuncTy>(handler)); in ScopedDiagnosticHandler() 526 template <typename FuncTy> 527 void setHandler(FuncTy &&handler) { in setHandler() 531 handlerID = diagEngine.registerHandler(std::forward<FuncTy>(handler)); in setHandler()
|
| H A D | BuiltinAttributeInterfaces.h | 128 template <typename ItTy, typename FuncTy, typename FuncReturnTy> 130 llvm::mapped_iterator<ItTy, FuncTy, FuncReturnTy>) {} in isMappedIteratorTestFn()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Parallel.h | 198 template <class IterTy, class FuncTy> 199 void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) { in parallelForEach() 226 template <class RangeTy, class FuncTy> 227 void parallelForEach(RangeTy &&R, FuncTy Fn) { in parallelForEach() 241 template <class RangeTy, class FuncTy> 242 Error parallelForEachError(RangeTy &&R, FuncTy Fn) { in parallelForEachError()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | attr-no-tail.c | 21 typedef int (*FuncTy)(int); typedef 29 FuncTy F = callee1; in foo0()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | FastISel.h | 103 CallLoweringInfo &setCallee(Type *ResultTy, FunctionType *FuncTy, in setCallee() 111 IsVarArg = FuncTy->isVarArg(); in setCallee() 118 NumFixedArgs = FuncTy->getNumParams(); in setCallee() 125 CallLoweringInfo &setCallee(Type *ResultTy, FunctionType *FuncTy, 135 IsVarArg = FuncTy->isVarArg(); 142 NumFixedArgs = (FixedArgs == ~0U) ? FuncTy->getNumParams() : FixedArgs;
|
| H A D | MachinePassManager.h | 242 using FuncTy = Error(Module &, MachineFunctionAnalysisManager &); variable 243 SmallVector<llvm::unique_function<FuncTy>, 4> InitializationFuncs; 244 SmallVector<llvm::unique_function<FuncTy>, 4> FinalizationFuncs; 247 std::map<PassIndex, llvm::unique_function<FuncTy>> MachineModulePasses;
|
| /llvm-project-15.0.7/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 | 771 FunctionType *FuncTy = Call->getFunctionType(); in selectCall() local 773 bool IsVoid = FuncTy->getReturnType()->isVoidTy(); in selectCall()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | VPIntrinsicTest.cpp | 313 auto *FuncTy = F.getFunctionType(); in TEST_F() local 317 for (auto *ParamTy : FuncTy->params()) in TEST_F() 322 OutM.get(), F.getIntrinsicID(), FuncTy->getReturnType(), Values); in TEST_F() 331 for (auto *ParamTy : FuncTy->params()) { in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 438 FunctionType *FuncTy; variable 444 FuncTy = FT; in AMDGPUUnmangledLibFunc() 448 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() 457 void setFunctionType(FunctionType *FT) { FuncTy = FT; } in setFunctionType()
|
| H A D | AMDGPULibFunc.cpp | 518 FuncTy = nullptr; in AMDGPUUnmangledLibFunc() 974 FunctionType *FuncTy = fInfo.getFunctionType(*M); in getOrInsertFunction() local 978 PI = FuncTy->param_begin(), in getOrInsertFunction() 979 PE = FuncTy->param_end(); in getOrInsertFunction() 991 C = M->getOrInsertFunction(FuncName, FuncTy); in getOrInsertFunction() 997 C = M->getOrInsertFunction(FuncName, FuncTy, Attr); in getOrInsertFunction()
|
| /llvm-project-15.0.7/clang/tools/clang-offload-wrapper/ |
| H A D | ClangOffloadWrapper.cpp | 278 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFunction() local 279 auto *Func = Function::Create(FuncTy, GlobalValue::InternalLinkage, in createRegisterFunction() 304 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createUnregisterFunction() local 305 auto *Func = Function::Create(FuncTy, GlobalValue::InternalLinkage, in createUnregisterFunction()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | STLExtras.h | 295 template <typename ItTy, typename FuncTy, 300 mapped_iterator<ItTy, FuncTy>, ItTy, 306 mapped_iterator(ItTy U, FuncTy F) 311 const FuncTy &getFunction() const { return F; } 316 FuncTy F; 321 template <class ItTy, class FuncTy> 322 inline mapped_iterator<ItTy, FuncTy> map_iterator(ItTy I, FuncTy F) { 326 template <class ContainerTy, class FuncTy> 327 auto map_range(ContainerTy &&C, FuncTy F) { 1370 template<typename FuncTy> [all …]
|
| /llvm-project-15.0.7/clang/tools/clang-linker-wrapper/ |
| H A D | OffloadWrapper.cpp | 229 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFunction() local 230 auto *Func = Function::Create(FuncTy, GlobalValue::InternalLinkage, in createRegisterFunction() 256 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createUnregisterFunction() local 257 auto *Func = Function::Create(FuncTy, GlobalValue::InternalLinkage, in createUnregisterFunction()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVCallLowering.cpp | 216 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments() local 226 .addUse(GR->getSPIRVTypeID(FuncTy)); in lowerFormalArguments()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TargetLibraryInfo.cpp | 71 FunctionType *FuncTy) { in isCallingConvCCompatible() argument 86 if (!FuncTy->getReturnType()->isPointerTy() && in isCallingConvCCompatible() 87 !FuncTy->getReturnType()->isIntegerTy() && in isCallingConvCCompatible() 88 !FuncTy->getReturnType()->isVoidTy()) in isCallingConvCCompatible() 91 for (auto *Param : FuncTy->params()) { in isCallingConvCCompatible()
|
| /llvm-project-15.0.7/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 140 auto *FuncTy = FunctionType::get(Type::getVoidTy(Context), ArgsTy, false); in GenEmptyFunction() local 143 auto *Func = Function::Create(FuncTy, GlobalValue::ExternalLinkage, Name, M); in GenEmptyFunction()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGNonTrivialStruct.cpp | 468 llvm::FunctionType *FuncTy = CGM.getTypes().GetFunctionType(FI); in getFunction() local 470 llvm::Function::Create(FuncTy, llvm::GlobalValue::LinkOnceODRLinkage, in getFunction()
|
| H A D | CGBlocks.cpp | 1234 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr() local 1236 CGM.getTypes().arrangeBlockFunctionCall(Args, FuncTy); in EmitBlockCallExpr()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FastISel.cpp | 1115 FunctionType *FuncTy = CI->getFunctionType(); in lowerCall() local 1148 CLI.setCallee(RetTy, FuncTy, CI->getCalledOperand(), std::move(Args), *CI) in lowerCall()
|
| /llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 1624 auto *FuncTy = in getFreshReductionFunc() local 1626 return Function::Create(FuncTy, GlobalVariable::InternalLinkage, in getFreshReductionFunc()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaDeclAttr.cpp | 6240 const auto *FuncTy = HandlerParam->getType() in checkSwiftAsyncErrorBlock() local 6245 if (FuncTy) in checkSwiftAsyncErrorBlock() 6246 BlockParams = FuncTy->getParamTypes(); in checkSwiftAsyncErrorBlock()
|