/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Attr.h | 56 if (const FunctionType *FnTy = D->getFunctionType()) in hasFunctionProto() local 57 return isa<FunctionProtoType>(FnTy); in hasFunctionProto() 65 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodNumParams() local 66 return cast<FunctionProtoType>(FnTy)->getNumParams(); in getFunctionOrMethodNumParams() 84 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodParamType() local 85 return cast<FunctionProtoType>(FnTy)->getParamType(Idx); in getFunctionOrMethodParamType() 99 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodResultType() local 100 return FnTy->getReturnType(); in getFunctionOrMethodResultType() 113 if (const FunctionType *FnTy = D->getFunctionType()) in isFunctionOrMethodVariadic() local 114 return cast<FunctionProtoType>(FnTy)->isVariadic(); in isFunctionOrMethodVariadic()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | IgnoreExpr.h | 24 template <typename FnTy, typename... FnTys> 25 Expr *IgnoreExprNodesImpl(Expr *E, FnTy &&Fn, FnTys &&... Fns) { in IgnoreExprNodesImpl() 26 return IgnoreExprNodesImpl(std::forward<FnTy>(Fn)(E), in IgnoreExprNodesImpl()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 174 : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {} in FunctionCallee() 176 FunctionCallee(FunctionType *FnTy, Value *Callee) in FunctionCallee() argument 177 : FnTy(FnTy), Callee(Callee) { in FunctionCallee() 178 assert((FnTy == nullptr) == (Callee == nullptr)); in FunctionCallee() 185 FunctionType *getFunctionType() { return FnTy; } in getFunctionType() 192 FunctionType *FnTy = nullptr;
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroEarly.cpp | 131 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, in lowerCoroNoop() local 133 auto *FnPtrTy = FnTy->getPointerTo(); in lowerCoroNoop() 138 Function::Create(FnTy, GlobalValue::LinkageTypes::PrivateLinkage, in lowerCoroNoop()
|
H A D | CoroSplit.cpp | 545 auto *FnTy = (Shape.ABI != coro::ABI::Async) in createCloneDeclaration() local 550 Function::Create(FnTy, GlobalValue::LinkageTypes::InternalLinkage, in createCloneDeclaration() 1643 static void coerceArguments(IRBuilder<> &Builder, FunctionType *FnTy, in coerceArguments() argument 1647 for (auto *paramTy : FnTy->params()) { in coerceArguments() 1662 auto *FnTy = MustTailCallFn->getFunctionType(); in createMustTailCall() local 1666 coerceArguments(Builder, FnTy, Arguments, CallArgs); in createMustTailCall() 1668 auto *TailCall = Builder.CreateCall(FnTy, MustTailCallFn, CallArgs); in createMustTailCall()
|
H A D | Coroutines.cpp | 637 auto *FnTy = MustTailCallFunc->getFunctionType(); in checkWellFormed() local 638 if (FnTy->getNumParams() != (arg_size() - 3)) in checkWellFormed()
|
H A D | CoroFrame.cpp | 2557 auto FnTy = FunctionType::get(ValueTy, {}, false); in emitGetSwiftErrorValue() local 2560 auto Call = Builder.CreateCall(FnTy, Fn, {}); in emitGetSwiftErrorValue() 2572 auto FnTy = FunctionType::get(Builder.getPtrTy(), in emitSetSwiftErrorValue() local 2576 auto Call = Builder.CreateCall(FnTy, Fn, { V }); in emitSetSwiftErrorValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 32 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() local 49 PointerType::get(FnTy, F->getAddressSpace()), in appendToGlobalArray() 185 auto *FnTy = FunctionType::get(VoidTy, InitArgTypes, false); in declareSanitizerInitFunction() local 186 auto FnCallee = M.getOrInsertFunction(InitName, FnTy); in declareSanitizerInitFunction()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | wrapper_function_utils.h | 440 using FnTy = in run() 443 FnAddr.toPtr<FnTy *>()(ArgData.data(), ArgData.size())); 436 using FnTy = run() local
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MustExecute.cpp | 395 template <typename K, typename V, typename FnTy, typename... ArgsTy> 397 FnTy &&Fn, ArgsTy &&...args) { in getOrCreateCachedOptional()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | WrapperFunctionUtils.h | 667 using FnTy = in run() local 670 FnAddr.toPtr<FnTy *>()(ArgData.data(), ArgData.size())); in run()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCUDANV.cpp | 120 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { in makeDummyFunction() argument 121 assert(FnTy->getReturnType()->isVoidTy() && in makeDummyFunction() 124 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction()
|
H A D | CGVTables.cpp | 35 llvm::Constant *CodeGenModule::GetAddrOfThunk(StringRef Name, llvm::Type *FnTy, in GetAddrOfThunk() argument 37 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true, in GetAddrOfThunk()
|
H A D | CGException.cpp | 2059 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in startOutlinedSEHHelper() local 2061 FnTy, llvm::GlobalValue::InternalLinkage, Name.str(), &CGM.getModule()); in startOutlinedSEHHelper()
|
H A D | CGOpenMPRuntime.cpp | 1093 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitCombinerOrInitializer() local 1096 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage, in emitCombinerOrInitializer() 5275 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitReduceInitFunction() local 5277 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage, in emitReduceInitFunction() 5346 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitReduceCombFunction() local 5348 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage, in emitReduceCombFunction() 5415 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitReduceFiniFunction() local 5417 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage, in emitReduceFiniFunction() 9105 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitUserDefinedMapper() local 9110 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage, in emitUserDefinedMapper()
|
H A D | CodeGenModule.h | 1040 llvm::Constant *GetAddrOfThunk(StringRef Name, llvm::Type *FnTy,
|
H A D | CGStmt.cpp | 2623 auto FnTy = llvm::FunctionType::get(llvm::Type::getVoidTy(Ctx), in EmitHipStdParUnsupportedAsm() local 2625 auto UBF = CGF->CGM.getModule().getOrInsertFunction(Name, FnTy); in EmitHipStdParUnsupportedAsm()
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 5476 if (const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node)) in AST_POLYMORPHIC_MATCHER() local 5477 return FnTy->hasDynamicExceptionSpec(); in AST_POLYMORPHIC_MATCHER() 5496 const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node); in AST_POLYMORPHIC_MATCHER() local 5501 if (!FnTy) in AST_POLYMORPHIC_MATCHER() 5505 if (isUnresolvedExceptionSpec(FnTy->getExceptionSpecType())) in AST_POLYMORPHIC_MATCHER() 5508 return FnTy->isNothrow(); in AST_POLYMORPHIC_MATCHER()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaType.cpp | 1710 static std::string getFunctionQualifiersAsString(const FunctionProtoType *FnTy){ in getFunctionQualifiersAsString() argument 1711 std::string Quals = FnTy->getMethodQuals().getAsString(); in getFunctionQualifiersAsString() 1713 switch (FnTy->getRefQualifier()) { in getFunctionQualifiersAsString() 5413 const FunctionProtoType *FnTy = T->getAs<FunctionProtoType>(); in GetFullTypeForDeclarator() local 5414 assert(FnTy && "Why oh why is there not a FunctionProtoType here?"); in GetFullTypeForDeclarator() 5511 << getFunctionQualifiersAsString(FnTy) in GetFullTypeForDeclarator() 5515 FunctionProtoType::ExtProtoInfo EPI = FnTy->getExtProtoInfo(); in GetFullTypeForDeclarator() 5519 T = Context.getFunctionType(FnTy->getReturnType(), FnTy->getParamTypes(), in GetFullTypeForDeclarator() 7804 const auto *FnTy = unwrapped.get()->getAs<FunctionProtoType>(); in handleFunctionTypeAttr() local 7805 if (!FnTy) { in handleFunctionTypeAttr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | Attributor.cpp | 2735 FunctionType *FnTy = F.getFunctionType(); in createShallowWrapper() local 2738 Function::Create(FnTy, F.getLinkage(), F.getAddressSpace(), F.getName()); in createShallowWrapper() 2809 FunctionType *FnTy = F->getFunctionType(); in internalizeFunctions() local 2813 Function::Create(FnTy, F->getLinkage(), F->getAddressSpace(), in internalizeFunctions()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerBufferFatPointers.cpp | 326 if (auto *FnTy = dyn_cast<FunctionType>(Ty)) in remapTypeImpl() local 329 FnTy->isVarArg()); in remapTypeImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 3723 FunctionType *FnTy = GuardCheckFn->getFunctionType(); in emitSPDescriptorParent() 3724 assert(FnTy->getNumParams() == 1 && "Invalid function signature"); in emitSPDescriptorParent() 3729 {GuardVal, FnTy->getParamType(0), {Flags}}); in emitSPDescriptorParent() 3735 Info.OrigRet = {Register(), FnTy->getReturnType()}; in emitSPDescriptorParent()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64Arm64ECCallLowering.cpp | 70 Function *buildExitThunk(FunctionType *FnTy, AttributeList Attrs);
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 3638 auto *FnTy = dyn_cast_or_null<FunctionType>(getTypeByID(Record[OpNum])); in parseConstants() local 3640 if (!FnTy) in parseConstants() 3662 V = InlineAsm::get(FnTy, AsmStr, ConstrStr, HasSideEffects, IsAlignStack, in parseConstants() 3670 Type *FnTy = getTypeByID(FnTyID); in parseConstants() local 3671 if (!FnTy) in parseConstants()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Decl.cpp | 3522 if (auto *FnTy = getType()->getAs<FunctionType>()) in isNoReturn() local 3523 return FnTy->getNoReturnAttr(); in isNoReturn()
|