Home
last modified time | relevance | path

Searched refs:FuncType (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp139 auto *FuncType = dyn_cast<FunctionType>(IF.getValueType()); in run() local
142 Function::Create(FuncType, GlobalValue::ExternalLinkage, in run()
H A DExpandVariadics.cpp646 FunctionType *FuncType = CB->getFunctionType(); in expandCall() local
647 if (FuncType != VarargFunctionType) { in expandCall()
650 FuncType = VarargFunctionType; in expandCall()
669 for (unsigned I = FuncType->getNumParams(), E = CB->arg_size(); I < E; ++I) { in expandCall()
774 const unsigned NumArgs = FuncType->getNumParams(); in expandCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuth.cpp356 QualType FuncType = FD->getType(); in getFunctionPointer() local
361 if (const auto *Proto = FuncType->getAs<FunctionProtoType>()) in getFunctionPointer()
362 FuncType = Context.getFunctionNoProtoType(Proto->getReturnType(), in getFunctionPointer()
365 return getFunctionPointer(getRawFunctionPointer(GD, Ty), FuncType); in getFunctionPointer()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h656 using FuncType = ReturnType (*)();
658 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)());
667 using FuncType = ReturnType (*)(ArgType1);
670 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)(
680 using FuncType = ReturnType (*)(ArgType1, ArgType2);
684 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)(
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp875 const FunctionType *FuncType = Decl->getFunctionType(); in checkPostCall() local
876 if (!FuncType) in checkPostCall()
878 QualType ReturnType = FuncType->getReturnType(); in checkPostCall()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp424 for (uint32_t FuncType : Section.FunctionTypes) in writeSectionContent() local
425 encodeULEB128(FuncType, OS); in writeSectionContent()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp642 SPIRVType *FuncType = GR->getOrCreateOpTypeFunctionWithArgs( in insertInlineAsmProcess() local
651 .addUse(GR->getSPIRVTypeID(FuncType)) in insertInlineAsmProcess()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp688 struct FuncType { in checkMustTailAttr() struct
701 auto GetMethodType = [this, St, MTA](const CXXMethodDecl *CMD, FuncType &Type, in checkMustTailAttr()
713 Type.MemberType = FuncType::ft_static_member; in checkMustTailAttr()
716 Type.MemberType = FuncType::ft_non_static_member; in checkMustTailAttr()
763 CalleeType.MemberType = FuncType::ft_pointer_to_member; in checkMustTailAttr()
833 auto CheckTypesMatch = [this](FuncType CallerType, FuncType CalleeType, in checkMustTailAttr()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp179 using FuncType = std::function<Value *(Instruction *, LLVMContext &)>; typedef
180 Rule(StringRef N, FuncType F) : Name(N), Fn(F) {} in Rule()
182 FuncType Fn;
185 void addRule(StringRef N, const Rule::FuncType &F) { in addRule()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp3100 QualType FuncType = getSimpleFunctionType( in SynthMsgSendStretCallExpr() local
3102 QualType castType = Context->getPointerType(FuncType); in SynthMsgSendStretCallExpr()
3178 ID, FuncType, nullptr, SC_Extern, false, false); in SynthMsgSendStretCallExpr()
4542 QualType FuncType; in convertFunctionTypeOfBlocks() local
4544 FuncType = getSimpleFunctionType(Res, ArgTypes); in convertFunctionTypeOfBlocks()
4545 else FuncType = QualType(FT, 0); in convertFunctionTypeOfBlocks()
4546 return FuncType; in convertFunctionTypeOfBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1458 FunctionType *FuncType = FunctionType::get(ReturnType, ParamTypes, IsVaArgs); in emitLibCall() local
1459 FunctionCallee Callee = getOrInsertLibFunc(M, *TLI, TheLibFunc, FuncType); in emitLibCall()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp3252 const auto *FuncType = cast<FunctionType>(T); in encodeTypeForFunctionPointerAuth() local
3253 encodeTypeForFunctionPointerAuth(Ctx, OS, FuncType->getReturnType()); in encodeTypeForFunctionPointerAuth()
3254 if (const auto *FPT = dyn_cast<FunctionProtoType>(FuncType)) { in encodeTypeForFunctionPointerAuth()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp6567 auto FuncType = FunctionType::get(Builder.getVoidTy(), ParameterTypes, in createOutlinedFunction() local
6569 auto Func = Function::Create(FuncType, GlobalValue::InternalLinkage, FuncName, in createOutlinedFunction()