| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 78 if (CB->getFunctionType() == F.getValueType()) in findUses() 122 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper() 123 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper() 127 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper() 130 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in createWrapper() 131 (F->getFunctionType()->isVarArg() != Ty->isVarArg()) || in createWrapper() 171 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper() 255 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule() 257 << *F.getFunctionType() << "\n"); in runOnModule() 271 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
|
| H A D | WebAssemblyAddMissingPrototypes.cpp | 80 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule() 108 FunctionType *DestType = CB->getFunctionType(); in runOnModule() 131 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
|
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 579 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper() 903 if (SetjmpF->getFunctionType() != SetjmpF2->getFunctionType()) in runOnModule() 906 SetjmpF = Function::Create(SetjmpF2->getFunctionType(), in runOnModule() 913 if (LongjmpF->getFunctionType() != LongjmpF2->getFunctionType()) in runOnModule() 917 LongjmpF = Function::Create(LongjmpF2->getFunctionType(), in runOnModule() 1010 FunctionType *SetjmpFTy = SetjmpF->getFunctionType(); in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SMEABIPass.cpp | 76 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 D | AArch64Arm64ECCallLowering.cpp | 505 getThunkType(F->getFunctionType(), F->getAttributes(), in buildEntryThunk() 608 getThunkType(F->getFunctionType(), F->getAttributes(), in buildGuestExitThunk() 645 Function *Thunk = buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildGuestExitThunk() 678 getThunkType(F->getFunctionType(), F->getAttributes(), in buildPatchableThunk() 700 buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildPatchableThunk() 752 Function *Thunk = buildExitThunk(CB->getFunctionType(), CB->getAttributes()); in lowerCall() 885 {O, buildExitThunk(F->getFunctionType(), F->getAttributes()), in runOnModule()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Attr.h | 35 return (D->getFunctionType() != nullptr) || llvm::isa<ObjCMethodDecl>(D); in isFuncOrMethodForAttrSubject() 56 if (const FunctionType *FnTy = D->getFunctionType()) in hasFunctionProto() 65 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodNumParams() 84 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodParamType() 99 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodResultType() 113 if (const FunctionType *FnTy = D->getFunctionType()) in isFunctionOrMethodVariadic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | Coroutines.cpp | 426 Shape.RetconLowering.ResumePrototype->getFunctionType()->dump(); in init() 435 Shape.RetconLowering.ResumePrototype->getFunctionType()->dump(); in init() 454 Shape.RetconLowering.ResumePrototype->getFunctionType()->dump(); in init() 462 Shape.RetconLowering.ResumePrototype->getFunctionType()->dump(); in init() 515 Alloc->getFunctionType()->getParamType(0), in emitAlloc() 538 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc() 570 auto FT = F->getFunctionType(); in checkWFRetconPrototype() 588 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype() 606 auto FT = F->getFunctionType(); in checkWFAlloc() 621 auto FT = F->getFunctionType(); in checkWFDealloc() [all …]
|
| H A D | CoroAnnotationElide.cpp | 75 auto *NewCI = CallInst::Create(NewCallee->getFunctionType(), NewCallee, in processCall() 80 NewCB = InvokeInst::Create(NewCallee->getFunctionType(), NewCallee, in processCall() 87 NewCB->setCalledFunction(NewCallee->getFunctionType(), NewCallee); in processCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | Mips16HardFloat.cpp | 111 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() 417 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall() 453 (F->getFunctionType(), in createFPFnStub()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 355 virtual FunctionType *getFunctionType(const Module &M) const = 0; 418 FunctionType *getFunctionType(const Module &M) const { in getFunctionType() function 419 return Impl->getFunctionType(M); in getFunctionType() 445 FunctionType *getFunctionType(const Module &M) const override; 475 FunctionType *getFunctionType(const Module &M) const override { in getFunctionType() function
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Function.cpp | 15 FunctionType *Function::getFunctionType() const { in getFunctionType() function in llvm::sandboxir::Function 17 Ctx.getType(cast<llvm::Function>(Val)->getFunctionType())); in getFunctionType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 125 assert(F.getFunctionType()->isVarArg() && "Function isn't varargs!"); in deleteDeadVarargs() 161 FunctionType *FTy = F.getFunctionType(); in deleteDeadVarargs() 278 !F.getFunctionType()->isVarArg()) in removeDeadArgumentsFromCallers() 313 CB->getFunctionType() != F.getFunctionType()) in removeDeadArgumentsFromCallers() 445 if (ArgNo >= F->getFunctionType()->getNumParams()) in surveyUse() 546 CB->getFunctionType() != F.getFunctionType()) { in surveyFunction() 608 if (F.getFunctionType()->isVarArg()) { in surveyFunction() 735 FunctionType *FTy = F->getFunctionType(); in removeDeadStuffFromFunction() 1114 if (F.getFunctionType()->isVarArg()) in run()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 78 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/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 415 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() 448 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote() 499 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall() 507 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall() 512 auto CalleeType = Callee->getFunctionType(); in promoteCall()
|
| H A D | LowerInvoke.cpp | 54 CallInst::Create(II->getFunctionType(), II->getCalledOperand(), in runImpl()
|
| H A D | FunctionComparator.cpp | 849 if (int Res = cmpTypes(L->getFunctionType(), R->getFunctionType())) in cmpInlineAsm() 861 assert(L->getFunctionType() != R->getFunctionType()); in cmpInlineAsm() 988 if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType())) in compareSignature()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/ |
| H A D | CoroShape.h | 201 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType() 212 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes() 226 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 80 if (F && F->getFunctionType() == FT) in getOrCreateFunction() 110 M->getOrInsertFunction(FuncName, Intrinsic->getFunctionType()); in lowerIntrinsicToFunction() 283 FunctionType *FSHFuncTy = FSHIntrinsic->getFunctionType(); in lowerFunnelShifts() 461 FunctionType::get(RetType, ArgTypes, F->getFunctionType()->isVarArg()); in removeAggregateTypesFromSignature() 492 CI->mutateFunctionType(NewF->getFunctionType()); in removeAggregateTypesFromSignature()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | GlobalMergeFunctions.cpp | 92 if (F->getFunctionType()->isVarArg()) in isEligibleFunction() 193 FunctionType *OrigTy = MergedFunc->getFunctionType(); in createMergedFunction() 252 ToFunc->getFunctionType()->getNumParams()); in createThunk() 260 FunctionType *ToFuncTy = ToFunc->getFunctionType(); in createThunk()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenCXX.cpp | 25 cir::FuncType funcType = getTypes().getFunctionType(fnInfo); in codegenCXXStructor()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ObjCARCUtil.h | 36 return !CB->getFunctionType()->getReturnType()->isVoidTy() && in hasAttachedCallOpBundle()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Interpreter.cpp | 91 const size_t ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | InlineAsm.cpp | 39 cantFail(verify(getFunctionType(), constraints)); in InlineAsm() 59 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
|
| H A D | Intrinsics.cpp | 1100 return getIntrinsicSignature(F->getIntrinsicID(), F->getFunctionType(), in getIntrinsicSignature() 1112 Intrinsic::getName(ID, ArgTys, F->getParent(), F->getFunctionType()); in remangleIntrinsicFunction() 1119 if (ExistingF->getFunctionType() == F->getFunctionType()) in remangleIntrinsicFunction() 1132 assert(NewDecl->getFunctionType() == F->getFunctionType() && in remangleIntrinsicFunction()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | Miscompilation.cpp | 393 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()
|