Home
last modified time | relevance | path

Searched refs:FnTy (Results 1 – 25 of 31) sorted by relevance

12

/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DObjectFilePCHContainerOperations.cpp113 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl() local
115 if (CanRepresent(FnTy.getTypePtr())) in VisitFunctionDecl()
116 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitFunctionDecl()
132 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl() local
134 if (CanRepresent(FnTy.getTypePtr())) in VisitObjCMethodDecl()
135 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitObjCMethodDecl()
DCGCUDANV.cpp122 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { in makeDummyFunction() argument
123 assert(FnTy->getReturnType()->isVoidTy() && in makeDummyFunction()
126 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction()
DCGVTables.cpp34 llvm::Constant *CodeGenModule::GetAddrOfThunk(StringRef Name, llvm::Type *FnTy, in GetAddrOfThunk() argument
36 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true, in GetAddrOfThunk()
DCGOpenMPRuntime.cpp1109 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitCombinerOrInitializer() local
1112 auto *Fn = llvm::Function::Create(FnTy, llvm::GlobalValue::InternalLinkage, in emitCombinerOrInitializer()
1525 auto *FnTy = in createForStaticInitFunction() local
1527 return CGM.CreateRuntimeFunction(FnTy, Name); in createForStaticInitFunction()
1547 auto *FnTy = in createDispatchInitFunction() local
1549 return CGM.CreateRuntimeFunction(FnTy, Name); in createDispatchInitFunction()
1564 auto *FnTy = in createDispatchFiniFunction() local
1566 return CGM.CreateRuntimeFunction(FnTy, Name); in createDispatchFiniFunction()
1587 auto *FnTy = in createDispatchNextFunction() local
1589 return CGM.CreateRuntimeFunction(FnTy, Name); in createDispatchNextFunction()
[all …]
DCGException.cpp2040 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in startOutlinedSEHHelper() local
2042 FnTy, llvm::GlobalValue::InternalLinkage, Name.str(), &CGM.getModule()); in startOutlinedSEHHelper()
DCodeGenModule.h946 llvm::Constant *GetAddrOfThunk(StringRef Name, llvm::Type *FnTy,
/openbsd/src/gnu/llvm/llvm/include/llvm/IR/
DDerivedTypes.h171 : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {} in FunctionCallee()
173 FunctionCallee(FunctionType *FnTy, Value *Callee) in FunctionCallee() argument
174 : FnTy(FnTy), Callee(Callee) { in FunctionCallee()
175 assert((FnTy == nullptr) == (Callee == nullptr)); in FunctionCallee()
182 FunctionType *getFunctionType() { return FnTy; } in getFunctionType()
189 FunctionType *FnTy = nullptr;
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Coroutines/
DCoroEarly.cpp131 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()
DCoroSplit.cpp512 auto *FnTy = (Shape.ABI != coro::ABI::Async) in createCloneDeclaration() local
517 Function::Create(FnTy, GlobalValue::LinkageTypes::InternalLinkage, in createCloneDeclaration()
1660 static void coerceArguments(IRBuilder<> &Builder, FunctionType *FnTy, in coerceArguments() argument
1664 for (auto *paramTy : FnTy->params()) { in coerceArguments()
1678 auto *FnTy = MustTailCallFn->getFunctionType(); in createMustTailCall() local
1682 coerceArguments(Builder, FnTy, Arguments, CallArgs); in createMustTailCall()
1684 auto *TailCall = Builder.CreateCall(FnTy, MustTailCallFn, CallArgs); in createMustTailCall()
DCoroFrame.cpp1166 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, in buildFrameType() local
1168 auto *FnPtrTy = FnTy->getPointerTo(); in buildFrameType()
2318 auto FnTy = FunctionType::get(ValueTy, {}, false); in emitGetSwiftErrorValue() local
2319 auto Fn = ConstantPointerNull::get(FnTy->getPointerTo()); in emitGetSwiftErrorValue()
2321 auto Call = Builder.CreateCall(FnTy, Fn, {}); in emitGetSwiftErrorValue()
2333 auto FnTy = FunctionType::get(V->getType()->getPointerTo(), in emitSetSwiftErrorValue() local
2335 auto Fn = ConstantPointerNull::get(FnTy->getPointerTo()); in emitSetSwiftErrorValue()
2337 auto Call = Builder.CreateCall(FnTy, Fn, { V }); in emitSetSwiftErrorValue()
DCoroutines.cpp652 auto *FnTy = MustTailCallFunc->getFunctionType(); in checkWellFormed() local
653 if (FnTy->getNumParams() != (arg_size() - 3)) in checkWellFormed()
/openbsd/src/gnu/llvm/clang/include/clang/AST/
DIgnoreExpr.h24 template <typename FnTy, typename... FnTys>
25 Expr *IgnoreExprNodesImpl(Expr *E, FnTy &&Fn, FnTys &&... Fns) { in IgnoreExprNodesImpl()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DModuleUtils.cpp29 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() local
35 IRB.getInt32Ty(), PointerType::get(FnTy, F->getAddressSpace()), in appendToGlobalArray()
178 auto *FnTy = FunctionType::get(VoidTy, InitArgTypes, false); in declareSanitizerInitFunction() local
179 auto FnCallee = M.getOrInsertFunction(InitName, FnTy); in declareSanitizerInitFunction()
/openbsd/src/gnu/llvm/llvm/tools/llvm-c-test/
Decho.cpp526 LLVMTypeRef FnTy = CloneType(LLVMGetCalledFunctionType(Src)); in CloneInstruction() local
530 Dst = LLVMBuildInvoke2(Builder, FnTy, Fn, Args.data(), ArgCount, in CloneInstruction()
714 LLVMTypeRef FnTy = CloneType(LLVMGetCalledFunctionType(Src)); in CloneInstruction() local
716 Dst = LLVMBuildCall2(Builder, FnTy, Fn, Args.data(), ArgCount, Name); in CloneInstruction()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DMustExecute.cpp500 template <typename K, typename V, typename FnTy, typename... ArgsTy>
502 FnTy &&Fn, ArgsTy &&...args) { in getOrCreateCachedOptional()
/openbsd/src/gnu/llvm/clang/include/clang/ASTMatchers/
DASTMatchers.h5214 if (const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node)) in AST_POLYMORPHIC_MATCHER() local
5215 return FnTy->hasDynamicExceptionSpec(); in AST_POLYMORPHIC_MATCHER()
5234 const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node); in AST_POLYMORPHIC_MATCHER() local
5239 if (!FnTy) in AST_POLYMORPHIC_MATCHER()
5243 if (isUnresolvedExceptionSpec(FnTy->getExceptionSpecType())) in AST_POLYMORPHIC_MATCHER()
5246 return FnTy->isNothrow(); in AST_POLYMORPHIC_MATCHER()
/openbsd/src/gnu/llvm/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c1753 LLVMValueRef llvm_build_invoke_nat(LLVMTypeRef FnTy, LLVMValueRef Fn, in llvm_build_invoke_nat() argument
1757 return LLVMBuildInvoke2(Builder_val(B), FnTy, Fn, in llvm_build_invoke_nat()
2214 LLVMValueRef llvm_build_call(LLVMTypeRef FnTy, LLVMValueRef Fn, value Params, in llvm_build_call() argument
2216 return LLVMBuildCall2(Builder_val(B), FnTy, Fn, in llvm_build_call()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/
DAttributor.cpp2555 FunctionType *FnTy = F.getFunctionType(); in createShallowWrapper() local
2558 Function::Create(FnTy, F.getLinkage(), F.getAddressSpace(), F.getName()); in createShallowWrapper()
2627 FunctionType *FnTy = F->getFunctionType(); in internalizeFunctions() local
2631 Function::Create(FnTy, F->getLinkage(), F->getAddressSpace(), in internalizeFunctions()
/openbsd/src/gnu/llvm/clang/lib/Sema/
DSemaType.cpp2080 static std::string getFunctionQualifiersAsString(const FunctionProtoType *FnTy){ in getFunctionQualifiersAsString() argument
2081 std::string Quals = FnTy->getMethodQuals().getAsString(); in getFunctionQualifiersAsString()
2083 switch (FnTy->getRefQualifier()) { in getFunctionQualifiersAsString()
5711 const FunctionProtoType *FnTy = T->getAs<FunctionProtoType>(); in GetFullTypeForDeclarator() local
5712 assert(FnTy && "Why oh why is there not a FunctionProtoType here?"); in GetFullTypeForDeclarator()
5783 << getFunctionQualifiersAsString(FnTy) in GetFullTypeForDeclarator()
5787 FunctionProtoType::ExtProtoInfo EPI = FnTy->getExtProtoInfo(); in GetFullTypeForDeclarator()
5791 T = Context.getFunctionType(FnTy->getReturnType(), FnTy->getParamTypes(), in GetFullTypeForDeclarator()
DSemaDeclAttr.cpp91 if (const FunctionType *FnTy = D->getFunctionType()) in hasFunctionProto() local
92 return isa<FunctionProtoType>(FnTy); in hasFunctionProto()
100 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodNumParams() local
101 return cast<FunctionProtoType>(FnTy)->getNumParams(); in getFunctionOrMethodNumParams()
119 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodParamType() local
120 return cast<FunctionProtoType>(FnTy)->getParamType(Idx); in getFunctionOrMethodParamType()
134 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodResultType() local
135 return FnTy->getReturnType(); in getFunctionOrMethodResultType()
148 if (const FunctionType *FnTy = D->getFunctionType()) in isFunctionOrMethodVariadic() local
149 return cast<FunctionProtoType>(FnTy)->isVariadic(); in isFunctionOrMethodVariadic()
DSemaOverload.cpp10973 const auto *FnTy = Fn->getType()->castAs<FunctionProtoType>(); in DiagnoseArityMismatch() local
10979 if (MinParams != FnTy->getNumParams() || FnTy->isVariadic() || in DiagnoseArityMismatch()
10980 FnTy->isTemplateVariadic()) in DiagnoseArityMismatch()
10986 if (MinParams != FnTy->getNumParams()) in DiagnoseArityMismatch()
10990 modeCount = FnTy->getNumParams(); in DiagnoseArityMismatch()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp3270 FunctionType *FnTy = GuardCheckFn->getFunctionType(); in emitSPDescriptorParent()
3271 assert(FnTy->getNumParams() == 1 && "Invalid function signature"); in emitSPDescriptorParent()
3276 {GuardVal, FnTy->getParamType(0), {Flags}}); in emitSPDescriptorParent()
3282 Info.OrigRet = {Register(), FnTy->getReturnType()}; in emitSPDescriptorParent()
/openbsd/src/gnu/llvm/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp384 FunctionType *FnTy = nullptr; in getOrCreateRuntimeFunction() local
391 FnTy = FunctionType::get(ReturnType, ArrayRef<Type *>{__VA_ARGS__}, \ in getOrCreateRuntimeFunction()
403 Fn = Function::Create(FnTy, GlobalValue::ExternalLinkage, Str, M); \ in getOrCreateRuntimeFunction()
437 Constant *C = ConstantExpr::getBitCast(Fn, FnTy->getPointerTo()); in getOrCreateRuntimeFunction()
438 return {FnTy, C}; in getOrCreateRuntimeFunction()
/openbsd/src/gnu/llvm/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp3466 auto *FnTy = dyn_cast_or_null<FunctionType>(getTypeByID(Record[OpNum])); in parseConstants() local
3468 if (!FnTy) in parseConstants()
3490 V = InlineAsm::get(FnTy, AsmStr, ConstrStr, HasSideEffects, IsAlignStack, in parseConstants()
3498 Type *FnTy = getTypeByID(FnTyID); in parseConstants() local
3499 if (!FnTy) in parseConstants()
/openbsd/src/gnu/llvm/clang/lib/AST/
DDecl.cpp3353 if (auto *FnTy = getType()->getAs<FunctionType>()) in isNoReturn() local
3354 return FnTy->getNoReturnAttr(); in isNoReturn()

12