Home
last modified time | relevance | path

Searched refs:getFunctionType (Results 1 – 25 of 134) sorted by relevance

123456

/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp129 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in CreateWrapper()
130 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in CreateWrapper()
134 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in CreateWrapper()
137 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in CreateWrapper()
138 (F->getFunctionType()->isVarArg() != Ty->isVarArg()) || in CreateWrapper()
178 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in CreateWrapper()
259 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule()
261 << *F.getFunctionType() << "\n"); in runOnModule()
H A DWebAssemblyAsmPrinter.cpp95 ComputeSignatureVTs(F.getFunctionType(), F, TM, Params, Results); in EmitEndOfAsmFile()
171 ComputeSignatureVTs(F.getFunctionType(), F, TM, ParamVTs, ResultVTs); in EmitFunctionBodyStart()
H A DWebAssemblyAddMissingPrototypes.cpp82 if (F.getFunctionType()->getNumParams() != 0) in runOnModule()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp338 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
352 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote()
381 if (CS.getFunctionType() == Callee->getFunctionType()) in promoteCall()
389 CS.mutateFunctionType(Callee->getFunctionType()); in promoteCall()
394 auto CalleeType = Callee->getFunctionType(); in promoteCall()
H A DFunctionComparator.cpp698 if (int Res = cmpTypes(L->getFunctionType(), R->getFunctionType())) in cmpInlineAsm()
710 assert(L->getFunctionType() != R->getFunctionType()); in cmpInlineAsm()
822 if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType())) in compareSignature()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp112 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
123 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
124 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded()
159 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams()
272 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub()
421 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall()
457 (F->getFunctionType(), in createFPFnStub()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h348 virtual FunctionType *getFunctionType(Module &M) const = 0;
392 FunctionType *getFunctionType(Module &M) const { in getFunctionType() function
393 return Impl->getFunctionType(M); in getFunctionType()
417 FunctionType *getFunctionType(Module &M) const override;
447 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() function
H A DR600OpenCLImageTypeLoweringPass.cpp273 FunctionType *FT = F->getFunctionType(); in addImplicitArgs()
351 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp124 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!"); in DeleteDeadVarargs()
159 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs()
278 if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg()) in RemoveDeadArgumentsFromCallers()
442 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
522 != F.getFunctionType()->getReturnType()) { in SurveyFunction()
631 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in SurveyFunction()
737 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction()
1096 if (F.getFunctionType()->isVarArg()) in run()
H A DMergeFunctions.cpp696 NewG = Function::Create(G->getFunctionType(), G->getLinkage(), in writeThunk()
705 FunctionType *FFTy = F->getFunctionType(); in writeThunk()
810 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions()
/freebsd-12.1/contrib/llvm/tools/bugpoint/
H A DMiscompilation.cpp393 MisCompFunctions.emplace_back(F->getName(), F->getFunctionType()); in ExtractLoops()
419 MisCompFunctions.emplace_back(I->getName(), I->getFunctionType()); in ExtractLoops()
590 MisCompFunctions.emplace_back(I->getName(), I->getFunctionType()); in ExtractBlocks()
798 Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
802 Function *oldMainProto = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
870 FunctionType *FuncTy = F->getFunctionType(); in CleanupAndPrepareModules()
895 Resolver, PointerType::getUnqual(F->getFunctionType()), in CleanupAndPrepareModules()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInlineAsm.cpp39 assert(Verify(getFunctionType(), constraints) && in InlineAsm()
57 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
H A DMangler.cpp170 FunctionType *FT = MSFunc->getFunctionType(); in getNameWithPrefix()
H A DAutoUpgrade.cpp42 Type *Arg0Type = F->getFunctionType()->getParamType(0); in UpgradePTESTIntrinsic()
58 F->getFunctionType()->getNumParams() - 1); in UpgradeX86IntrinsicsWith8BitMask()
399 if (F->getFunctionType()->getNumParams() == 0) in UpgradeX86IntrinsicFunction()
517 auto fArgs = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
538 auto fArgs = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
584 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
598 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
608 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
631 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
653 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DFunction.h164 FunctionType *getFunctionType() const { in getFunctionType() function
169 Type *getReturnType() const { return getFunctionType()->getReturnType(); } in getReturnType()
177 bool isVarArg() const { return getFunctionType()->isVarArg(); } in isVarArg()
H A DInlineAsm.h79 FunctionType *getFunctionType() const;
H A DCallSite.h320 FunctionType *getFunctionType() const { in getFunctionType() function
321 CALLSITE_DELEGATE_GETTER(getFunctionType()); in getFunctionType()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.cpp92 const size_t ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
H A DExternalFunctions.cpp105 FunctionType *FT = F->getFunctionType(); in lookupFunction()
195 FunctionType *FTy = F->getFunctionType(); in ffiInvoke()
270 return Fn(F->getFunctionType(), ArgVals); in callExternalFunction()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp109 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl()
128 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl()
H A DCGGPUBuiltin.cpp34 assert(F->getFunctionType() == VprintfFuncType); in GetVprintfDeclaration()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Orc/
H A DOrcMCJITReplacement.cpp33 FunctionType *FTy = F->getFunctionType(); in runFunction()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DPreISelIntrinsicLowering.cpp68 Constant* FCache = M->getOrInsertFunction(NewFn, F.getFunctionType()); in lowerObjCCall()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DItaniumCXXABI.cpp122 Context.getFunctionType(Context.VoidTy, Proto->getParamTypes(), EPI); in getManglingNumber()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLambda.cpp392 MethodType = Context.getFunctionType(Result, FPT->getParamTypes(), in startLambdaDefinition()
871 Context.getFunctionType(DefaultTypeForNoTrailingReturn, None, EPI); in ActOnStartOfLambdaDefinition()
1204 return Context.getFunctionType(CallOpProto->getReturnType(), in getLambdaConversionFunctionResultType()
1235 S.Context.getFunctionType(PtrToFunctionTy, None, ConvExtInfo); in addFunctionPointerConversion()
1383 QualType ConvTy = S.Context.getFunctionType(BlockPtrTy, None, ConversionEPI); in addBlockPointerConversion()

123456