| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 78 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 D | WebAssemblyAddMissingPrototypes.cpp | 81 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 D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 575 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper() 898 if (SetjmpF->getFunctionType() != SetjmpF2->getFunctionType()) in runOnModule() 901 SetjmpF = Function::Create(SetjmpF2->getFunctionType(), in runOnModule() 908 if (LongjmpF->getFunctionType() != LongjmpF2->getFunctionType()) in runOnModule() 912 LongjmpF = Function::Create(LongjmpF2->getFunctionType(), in runOnModule() 1005 FunctionType *SetjmpFTy = SetjmpF->getFunctionType(); in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SMEABIPass.cpp | 75 Builder.CreateCall(WriteIntr->getFunctionType(), WriteIntr, in emitTPIDR2Save() 118 auto *TPIDR2 = Builder.CreateCall(TPIDR2Intr->getFunctionType(), TPIDR2Intr, in updateNewStateFunctions() 132 Builder.CreateCall(EnableZAIntr->getFunctionType(), EnableZAIntr); in updateNewStateFunctions() 138 Builder.CreateCall(ZeroIntr->getFunctionType(), ZeroIntr, in updateNewStateFunctions() 145 Builder.CreateCall(ClearZT0Intr->getFunctionType(), ClearZT0Intr, in updateNewStateFunctions() 158 Builder.CreateCall(DisableZAIntr->getFunctionType(), DisableZAIntr); in updateNewStateFunctions()
|
| H A D | AArch64Arm64ECCallLowering.cpp | 511 getThunkType(F->getFunctionType(), F->getAttributes(), in buildEntryThunk() 615 getThunkType(F->getFunctionType(), F->getAttributes(), in buildGuestExitThunk() 652 Function *Thunk = buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildGuestExitThunk() 689 getThunkType(F->getFunctionType(), F->getAttributes(), in buildPatchableThunk() 711 buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildPatchableThunk() 766 Function *Thunk = buildExitThunk(CB->getFunctionType(), CB->getAttributes()); in lowerCall() 874 {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 | 379 Prototype->getFunctionType()->dump(); in buildFrom() 388 Prototype->getFunctionType()->dump(); in buildFrom() 407 Prototype->getFunctionType()->dump(); in buildFrom() 415 Prototype->getFunctionType()->dump(); in buildFrom() 466 Alloc->getFunctionType()->getParamType(0), in emitAlloc() 489 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc() 521 auto FT = F->getFunctionType(); in checkWFRetconPrototype() 539 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype() 557 auto FT = F->getFunctionType(); in checkWFAlloc() 572 auto FT = F->getFunctionType(); in checkWFDealloc() [all …]
|
| H A D | CoroInternal.h | 198 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType() 210 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes() 225 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | Mips16HardFloat.cpp | 112 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/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 355 virtual FunctionType *getFunctionType(Module &M) const = 0; 404 FunctionType *getFunctionType(Module &M) const { 405 return Impl->getFunctionType(M); 431 FunctionType *getFunctionType(Module &M) const override; 461 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } 393 FunctionType *getFunctionType(Module &M) const { getFunctionType() function 448 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } getFunctionType() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 413 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() 446 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote() 497 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall() 505 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall() 510 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 | 835 if (int Res = cmpTypes(L->getFunctionType(), R->getFunctionType())) in cmpInlineAsm() 847 assert(L->getFunctionType() != R->getFunctionType()); in cmpInlineAsm() 974 if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType())) in compareSignature()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 129 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() 450 if (ArgNo >= F->getFunctionType()->getNumParams()) in surveyUse() 565 CB->getFunctionType() != F.getFunctionType()) { in surveyFunction() 630 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in surveyFunction() 742 FunctionType *FTy = F->getFunctionType(); in removeDeadStuffFromFunction() 1129 if (F.getFunctionType()->isVarArg()) in run()
|
| H A D | ExpandVariadics.cpp | 407 FunctionType *FTy = CB->getFunctionType(); in runOnModule() 462 expandCall(M, Builder, CB, VariadicWrapper->getFunctionType(), in runOnFunction() 506 FunctionType *FTy = F.getFunctionType(); in replaceAllUsesWithNewDeclaration() 540 FunctionType *FTy = F.getFunctionType(); in deriveFixedArityReplacement() 646 FunctionType *FuncType = CB->getFunctionType(); in expandCall()
|
| H A D | ArgumentPromotion.cpp | 118 FunctionType *FTy = F->getFunctionType(); in doPromotion() 796 CB->getFunctionType() != F->getFunctionType()) in promoteArguments() 820 unsigned NumArgsAfterPromote = F->getFunctionType()->getNumParams(); in promoteArguments()
|
| H A D | ElimAvailExtern.cpp | 84 Function::Create(F.getFunctionType(), GlobalValue::ExternalLinkage, in convertToLocalCopy()
|
| /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/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 85 if (F && F->getFunctionType() == FT) in getOrCreateFunction() 115 M->getOrInsertFunction(FuncName, Intrinsic->getFunctionType()); in lowerIntrinsicToFunction() 290 FunctionType *FSHFuncTy = FSHIntrinsic->getFunctionType(); in lowerFunnelShifts() 415 FunctionType *UMulFuncTy = UMulIntrinsic->getFunctionType(); in lowerUMulWithOverflow() 505 FunctionType::get(RetType, ArgTypes, F->getFunctionType()->isVarArg()); in removeAggregateTypesFromSignature() 536 CI->mutateFunctionType(NewF->getFunctionType()); in removeAggregateTypesFromSignature()
|
| /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() 899 Resolver, PointerType::getUnqual(F->getFunctionType()), in CleanupAndPrepareModules()
|
| /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()
|
| H A D | ExternalFunctions.cpp | 113 FunctionType *FT = F->getFunctionType(); in lookupFunction() 206 FunctionType *FTy = F->getFunctionType(); in ffiInvoke() 283 return Fn(F->getFunctionType(), ArgVals); in callExternalFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | InlineAsm.cpp | 39 cantFail(verify(getFunctionType(), constraints)); in InlineAsm() 58 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGGPUBuiltin.cpp | 35 assert(F->getFunctionType() == VprintfFuncType); in GetVprintfDeclaration() 55 if (F->getFunctionType() != VprintfFuncType) { in GetOpenMPVprintfDeclaration()
|