Home
last modified time | relevance | path

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

12345678

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp78 if (CB->getFunctionType() == F.getValueType()) in findUses()
121 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper()
122 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper()
126 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper()
129 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in createWrapper()
130 (F->getFunctionType()->isVarArg() != Ty->isVarArg()) || in createWrapper()
170 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper()
253 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule()
255 << *F.getFunctionType() << "\n"); in runOnModule()
269 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
H A DWebAssemblyAddMissingPrototypes.cpp81 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule()
109 FunctionType *DestType = CB->getFunctionType(); in runOnModule()
132 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp581 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper()
905 if (SetjmpF->getFunctionType() != SetjmpF2->getFunctionType()) in runOnModule()
908 SetjmpF = Function::Create(SetjmpF2->getFunctionType(), in runOnModule()
915 if (LongjmpF->getFunctionType() != LongjmpF2->getFunctionType()) in runOnModule()
919 LongjmpF = Function::Create(LongjmpF2->getFunctionType(), in runOnModule()
1011 FunctionType *SetjmpFTy = SetjmpF->getFunctionType(); in runOnModule()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSMEABIPass.cpp76 Builder.CreateCall(WriteIntr->getFunctionType(), WriteIntr, in emitTPIDR2Save()
119 auto *TPIDR2 = Builder.CreateCall(TPIDR2Intr->getFunctionType(), TPIDR2Intr, in updateNewStateFunctions()
133 Builder.CreateCall(EnableZAIntr->getFunctionType(), EnableZAIntr); in updateNewStateFunctions()
139 Builder.CreateCall(ZeroIntr->getFunctionType(), ZeroIntr, in updateNewStateFunctions()
146 Builder.CreateCall(ClearZT0Intr->getFunctionType(), ClearZT0Intr, in updateNewStateFunctions()
159 Builder.CreateCall(DisableZAIntr->getFunctionType(), DisableZAIntr); in updateNewStateFunctions()
H A DAArch64Arm64ECCallLowering.cpp455 getThunkType(F->getFunctionType(), F->getAttributes(), ThunkType::Entry, in buildEntryThunk()
554 getThunkType(F->getFunctionType(), F->getAttributes(), ThunkType::GuestExit, in buildGuestExitThunk()
590 Function *Thunk = buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildGuestExitThunk()
644 Function *Thunk = buildExitThunk(CB->getFunctionType(), CB->getAttributes()); in lowerCall()
704 {F, buildExitThunk(F->getFunctionType(), F->getAttributes()), 4}); in runOnModule()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroutines.cpp372 Prototype->getFunctionType()->dump(); in buildFrom()
381 Prototype->getFunctionType()->dump(); in buildFrom()
400 Prototype->getFunctionType()->dump(); in buildFrom()
408 Prototype->getFunctionType()->dump(); in buildFrom()
459 Alloc->getFunctionType()->getParamType(0), in emitAlloc()
482 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc()
514 auto FT = F->getFunctionType(); in checkWFRetconPrototype()
532 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype()
550 auto FT = F->getFunctionType(); in checkWFAlloc()
565 auto FT = F->getFunctionType(); in checkWFDealloc()
[all …]
H A DCoroInternal.h195 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType()
207 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
222 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
/freebsd-14.2/contrib/llvm-project/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()
419 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall()
455 (F->getFunctionType(), in createFPFnStub()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp401 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
434 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote()
485 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall()
493 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall()
498 auto CalleeType = Callee->getFunctionType(); in promoteCall()
H A DLowerInvoke.cpp54 CallInst::Create(II->getFunctionType(), II->getCalledOperand(), in runImpl()
H A DFunctionComparator.cpp815 if (int Res = cmpTypes(L->getFunctionType(), R->getFunctionType())) in cmpInlineAsm()
827 assert(L->getFunctionType() != R->getFunctionType()); in cmpInlineAsm()
954 if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType())) in compareSignature()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h355 virtual FunctionType *getFunctionType(Module &M) const = 0;
404 FunctionType *getFunctionType(Module &M) const { in getFunctionType() function
405 return Impl->getFunctionType(M); in getFunctionType()
431 FunctionType *getFunctionType(Module &M) const override;
461 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp82 if (F && F->getFunctionType() == FT) in getOrCreateFunction()
112 M->getOrInsertFunction(FuncName, Intrinsic->getFunctionType()); in lowerIntrinsicToFunction()
161 FunctionType *FSHFuncTy = FSHIntrinsic->getFunctionType(); in lowerFunnelShifts()
271 FunctionType *UMulFuncTy = UMulIntrinsic->getFunctionType(); in lowerUMulWithOverflow()
344 FunctionType::get(RetType, ArgTypes, F->getFunctionType()->isVarArg()); in removeAggregateTypesFromSignature()
375 CI->mutateFunctionType(NewF->getFunctionType()); in removeAggregateTypesFromSignature()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp129 assert(F.getFunctionType()->isVarArg() && "Function isn't varargs!"); in deleteDeadVarargs()
165 FunctionType *FTy = F.getFunctionType(); in deleteDeadVarargs()
283 !F.getFunctionType()->isVarArg()) in removeDeadArgumentsFromCallers()
318 CB->getFunctionType() != F.getFunctionType()) in removeDeadArgumentsFromCallers()
452 if (ArgNo >= F->getFunctionType()->getNumParams()) in surveyUse()
567 CB->getFunctionType() != F.getFunctionType()) { in surveyFunction()
632 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in surveyFunction()
744 FunctionType *FTy = F->getFunctionType(); in removeDeadStuffFromFunction()
1130 if (F.getFunctionType()->isVarArg()) in run()
H A DArgumentPromotion.cpp117 FunctionType *FTy = F->getFunctionType(); in doPromotion()
739 CB->getFunctionType() != F->getFunctionType()) in promoteArguments()
763 unsigned NumArgsAfterPromote = F->getFunctionType()->getNumParams(); in promoteArguments()
H A DElimAvailExtern.cpp84 Function::Create(F.getFunctionType(), GlobalValue::ExternalLinkage, in convertToLocalCopy()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h78 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
101 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
121 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
141 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCUtil.h36 return !CB->getFunctionType()->getReturnType()->isVoidTy() && in hasAttachedCallOpBundle()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.cpp91 const size_t ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
H A DExternalFunctions.cpp113 FunctionType *FT = F->getFunctionType(); in lookupFunction()
206 FunctionType *FTy = F->getFunctionType(); in ffiInvoke()
283 return Fn(F->getFunctionType(), ArgVals); in callExternalFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInlineAsm.cpp39 cantFail(verify(getFunctionType(), constraints)); in InlineAsm()
58 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp35 assert(F->getFunctionType() == VprintfFuncType); in GetVprintfDeclaration()
55 if (F->getFunctionType() != VprintfFuncType) { in GetOpenMPVprintfDeclaration()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCGenScalarMASSEntries.cpp101 MASSEntryStr, Func.getFunctionType(), Func.getAttributes()); in createScalarMASSCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpLowering.cpp37 DXILB.getOverloadTy(DXILOp, F.getFunctionType(), /*NoOpCodeParam*/ true); in lowerIntrinsic()

12345678