Searched refs:FnTy (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp108 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, local
110 if (CanRepresent(FnTy.getTypePtr()))
111 DI.EmitFunctionDecl(D, D->getLocation(), FnTy);
127 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, local
129 if (CanRepresent(FnTy.getTypePtr()))
130 DI.EmitFunctionDecl(D, D->getLocation(), FnTy);
H A DCGOpenMPRuntimeNVPTX.cpp1563 auto *FnTy =
1565 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_kernel_init");
1571 auto *FnTy =
1573 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_kernel_deinit");
1580 auto *FnTy =
1582 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_spmd_kernel_init");
1588 auto *FnTy =
1590 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_spmd_kernel_deinit_v2");
1597 auto *FnTy =
1599 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_kernel_prepare_paralle
[all...]
H A DCGCUDANV.cpp103 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { argument
104 assert(FnTy->getReturnType()->isVoidTy() &&
107 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule);
H A DCGVTables.cpp34 llvm::Constant *CodeGenModule::GetAddrOfThunk(StringRef Name, llvm::Type *FnTy, argument
36 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true,
H A DCGOpenMPRuntime.cpp1115 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); local
1118 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage,
1543 auto *FnTy = local
1545 return CGM.CreateRuntimeFunction(FnTy, Name);
1565 auto *FnTy = local
1567 return CGM.CreateRuntimeFunction(FnTy, Name);
1582 auto *FnTy = local
1584 return CGM.CreateRuntimeFunction(FnTy, Name);
1605 auto *FnTy = local
1607 return CGM.CreateRuntimeFunction(FnTy, Nam
5748 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); local
5822 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); local
5892 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); local
8943 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); local
[all...]
H A DCGException.cpp1943 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); local
1945 FnTy, llvm::GlobalValue::InternalLinkage, Name.str(), &CGM.getModule());
H A DCodeGenModule.h868 llvm::Constant *GetAddrOfThunk(StringRef Name, llvm::Type *FnTy,
H A DItaniumCXXABI.cpp2651 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FI); local
2653 llvm::Function::Create(FnTy, getThreadLocalWrapperLinkage(VD, CGM),
H A DCGDebugInfo.cpp4419 auto *FnTy = Block.getBlockExpr()->getFunctionType(); local
4420 auto FnPtrType = CGM.getContext().getPointerType(FnTy->desugar());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp111 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, local
113 auto *FnPtrTy = FnTy->getPointerTo();
118 Function::Create(FnTy, GlobalValue::LinkageTypes::PrivateLinkage,
H A DCoroFrame.cpp546 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, local
548 auto *FnPtrTy = FnTy->getPointerTo();
1343 auto FnTy = FunctionType::get(ValueTy, {}, false); local
1344 auto Fn = ConstantPointerNull::get(FnTy->getPointerTo());
1346 auto Call = Builder.CreateCall(FnTy, Fn, {});
1358 auto FnTy = FunctionType::get(V->getType()->getPointerTo(), local
1360 auto Fn = ConstantPointerNull::get(FnTy->getPointerTo());
1362 auto Call = Builder.CreateCall(FnTy, Fn, { V });
H A DCoroSplit.cpp400 auto *FnTy = Shape.getResumeFunctionType(); local
403 Function::Create(FnTy, GlobalValue::LinkageTypes::InternalLinkage,
1532 FunctionType *FnTy = FunctionType::get(Type::getVoidTy(Context), local
1534 auto *IndirectCall = CallInst::Create(FnTy, DevirtFnAddr, Null, "", InsertPt);
1550 auto *FnTy = FunctionType::get(Type::getVoidTy(C), Type::getInt8PtrTy(C), local
1553 Function::Create(FnTy, GlobalValue::LinkageTypes::PrivateLinkage,
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h176 : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {}
178 FunctionCallee(FunctionType *FnTy, Value *Callee) argument
179 : FnTy(FnTy), Callee(Callee) {
180 assert((FnTy == nullptr) == (Callee == nullptr));
187 FunctionType *getFunctionType() { return FnTy; }
194 FunctionType *FnTy = nullptr; member in class:llvm::FunctionCallee
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMachOPlatform.cpp46 template <typename FnTy>
47 static Error setUpObjCRegAPIFunc(FnTy &Target, sys::DynamicLibrary &LibObjC,
50 Target = reinterpret_cast<FnTy>(Addr);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp28 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); local
34 IRB.getInt32Ty(), PointerType::getUnqual(FnTy), IRB.getInt8PtrTy());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp63 FunctionType *FnTy = nullptr; local
70 FnTy = FunctionType::get(ReturnType, ArrayRef<Type *>{__VA_ARGS__}, \
82 Fn = Function::Create(FnTy, GlobalValue::ExternalLinkage, Str, M); \
116 Constant *C = ConstantExpr::getBitCast(Fn, FnTy->getPointerTo());
117 return {FnTy, C};
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMustExecute.cpp492 template <typename K, typename V, typename FnTy, typename... ArgsTy>
494 FnTy &&Fn, ArgsTy&&... args) {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4533 if (const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node))
4534 return FnTy->hasDynamicExceptionSpec();
4553 const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node); local
4558 if (!FnTy)
4562 if (isUnresolvedExceptionSpec(FnTy->getExceptionSpecType()))
4565 return FnTy->isNothrow();
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp512 PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FnTy, IdentKind IK, argument
514 : Expr(PredefinedExprClass, FnTy, VK_LValue, OK_Ordinary) {
526 PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FnTy, IdentKind IK, argument
528 : Expr(PredefinedExprClass, FnTy, VK_LValue, OK_Ordinary) {
2909 template <typename FnTy, typename... FnTys>
2910 static Expr *IgnoreExprNodesImpl(Expr *E, FnTy &&Fn, FnTys &&... Fns) {
H A DDecl.cpp3105 if (auto *FnTy = getType()->getAs<FunctionType>())
3106 return FnTy->getNoReturnAttr();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclAttr.cpp80 if (const FunctionType *FnTy = D->getFunctionType())
81 return isa<FunctionProtoType>(FnTy);
89 if (const FunctionType *FnTy = D->getFunctionType())
90 return cast<FunctionProtoType>(FnTy)->getNumParams();
108 if (const FunctionType *FnTy = D->getFunctionType())
109 return cast<FunctionProtoType>(FnTy)->getParamType(Idx);
123 if (const FunctionType *FnTy = D->getFunctionType())
124 return FnTy->getReturnType();
137 if (const FunctionType *FnTy = D->getFunctionType())
138 return cast<FunctionProtoType>(FnTy)
[all...]
H A DSemaType.cpp1974 static std::string getFunctionQualifiersAsString(const FunctionProtoType *FnTy){ argument
1975 std::string Quals = FnTy->getMethodQuals().getAsString();
1977 switch (FnTy->getRefQualifier()) {
5387 const FunctionProtoType *FnTy = T->getAs<FunctionProtoType>(); local
5388 assert(FnTy && "Why oh why is there not a FunctionProtoType here?");
5460 << getFunctionQualifiersAsString(FnTy)
5464 FunctionProtoType::ExtProtoInfo EPI = FnTy->getExtProtoInfo();
5468 T = Context.getFunctionType(FnTy->getReturnType(), FnTy->getParamTypes(),
H A DSemaOverload.cpp10510 const auto *FnTy = Fn->getType()->castAs<FunctionProtoType>();
10516 if (MinParams != FnTy->getNumParams() || FnTy->isVariadic() ||
10517 FnTy->isTemplateVariadic())
10523 if (MinParams != FnTy->getNumParams())
10527 modeCount = FnTy->getNumParams();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp1322 FunctionType *FnTy = F.getFunctionType();
1325 Function::Create(FnTy, F.getLinkage(), F.getAddressSpace(), F.getName());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2827 Type *FnTy = getTypeByID(Record[0]);
2828 if (!FnTy)
2831 dyn_cast_or_null<Function>(ValueList.getConstantFwdRef(Record[1],FnTy));

Completed in 327 milliseconds

12