Home
last modified time | relevance | path

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

1234567

/netbsd-src/external/apache2/llvm/dist/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()
263 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule()
265 << *F.getFunctionType() << "\n"); in runOnModule()
H A DWebAssemblyAddMissingPrototypes.cpp81 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule()
122 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp111 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
122 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
123 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded()
158 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams()
271 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub()
420 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall()
456 (F->getFunctionType(), in createFPFnStub()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroutines.cpp452 Prototype->getFunctionType()->dump(); in buildFrom()
461 Prototype->getFunctionType()->dump(); in buildFrom()
480 Prototype->getFunctionType()->dump(); in buildFrom()
488 Prototype->getFunctionType()->dump(); in buildFrom()
539 Alloc->getFunctionType()->getParamType(0), in emitAlloc()
562 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc()
594 auto FT = F->getFunctionType(); in checkWFRetconPrototype()
612 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype()
630 auto FT = F->getFunctionType(); in checkWFAlloc()
645 auto FT = F->getFunctionType(); in checkWFDealloc()
H A DCoroInternal.h213 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType()
225 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
240 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp400 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
418 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote()
457 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall()
465 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall()
470 auto CalleeType = Callee->getFunctionType(); in promoteCall()
H A DFunctionComparator.cpp729 if (int Res = cmpTypes(L->getFunctionType(), R->getFunctionType())) in cmpInlineAsm()
741 assert(L->getFunctionType() != R->getFunctionType()); in cmpInlineAsm()
853 if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType())) in compareSignature()
H A DLowerInvoke.cpp56 CallInst::Create(II->getFunctionType(), II->getCalledOperand(), in runImpl()
H A DInjectTLIMappings.cpp52 assert(!CI.getFunctionType()->isVarArg() && in addVariantDeclaration()
/netbsd-src/external/apache2/llvm/dist/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.cpp257 FunctionType *FT = F->getFunctionType(); in addImplicitArgs()
336 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp51 TLIFunc = Function::Create(OldFunc->getFunctionType(), in replaceWithTLIFunction()
78 assert(OldFunc->getFunctionType() == TLIFunc->getFunctionType() && in replaceWithTLIFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DMatrixBuilder.h82 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
105 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
125 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
145 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
H A DFunction.h175 FunctionType *getFunctionType() const { in getFunctionType() function
180 Type *getReturnType() const { return getFunctionType()->getReturnType(); } in getReturnType()
188 bool isVarArg() const { return getFunctionType()->isVarArg(); } in isVarArg()
H A DDerivedTypes.h168 template <typename T, typename U = decltype(&T::getFunctionType)>
170 : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {} in FunctionCallee()
181 FunctionType *getFunctionType() { return FnTy; } in getFunctionType() function
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp125 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!"); in DeleteDeadVarargs()
160 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs()
275 if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg()) in RemoveDeadArgumentsFromCallers()
443 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
523 != F.getFunctionType()->getReturnType()) { in SurveyFunction()
625 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in SurveyFunction()
742 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction()
1098 if (F.getFunctionType()->isVarArg()) in run()
H A DMergeFunctions.cpp694 NewG = Function::Create(G->getFunctionType(), G->getLinkage(), in writeThunk()
704 FunctionType *FFTy = F->getFunctionType(); in writeThunk()
811 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint/
H A DMiscompilation.cpp393 F->getFunctionType()); in ExtractLoops()
420 I->getFunctionType()); in ExtractLoops()
592 I->getFunctionType()); in ExtractBlocks()
800 Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
804 Function *oldMainProto = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
873 FunctionType *FuncTy = F->getFunctionType(); in CleanupAndPrepareModules()
899 Resolver, PointerType::getUnqual(F->getFunctionType()), in CleanupAndPrepareModules()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInlineAsm.cpp38 assert(Verify(getFunctionType(), constraints) && in InlineAsm()
57 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
H A DAutoUpgrade.cpp46 Type *Arg0Type = F->getFunctionType()->getParamType(0); in UpgradePTESTIntrinsic()
61 Type *LastArgType = F->getFunctionType()->getParamType( in UpgradeX86IntrinsicsWith8BitMask()
62 F->getFunctionType()->getNumParams() - 1); in UpgradeX86IntrinsicsWith8BitMask()
435 if (F->getFunctionType()->getNumParams() == 0) in UpgradeX86IntrinsicFunction()
507 auto Idx = F->getFunctionType()->getParamType(2); in UpgradeX86IntrinsicFunction()
581 auto fArgs = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
602 auto fArgs = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
749 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
765 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
779 auto Args = F->getFunctionType()->params(); in UpgradeIntrinsicFunction1()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp104 FunctionType *FT = F->getFunctionType(); in lookupFunction()
194 FunctionType *FTy = F->getFunctionType(); in ffiInvoke()
269 return Fn(F->getFunctionType(), ArgVals); in callExternalFunction()
H A DInterpreter.cpp91 const size_t ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp108 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl()
127 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp50 FunctionType *FTy = Func.getFunctionType(); in createCallInstWithColors()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp143 MASSVEntryName, Func.getFunctionType(), Func.getAttributes()); in lowerMASSVCall()

1234567