| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 18 class FunctionType; variable 355 virtual FunctionType *getFunctionType(const Module &M) const = 0; 371 explicit AMDGPULibFunc(EFuncId Id, FunctionType *FT, bool SignedInts); 374 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT); 409 bool isCompatibleSignature(const Module &M, const FunctionType *FuncTy) const; 418 FunctionType *getFunctionType(const Module &M) const { in getFunctionType() 440 explicit AMDGPUMangledLibFunc(EFuncId id, FunctionType *FT, 445 FunctionType *getFunctionType(const Module &M) const override; 465 FunctionType *FuncTy; 469 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *FT) { in AMDGPUUnmangledLibFunc() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 109 static Function *createWrapper(Function *F, FunctionType *Ty) { in createWrapper() 122 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper() 123 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper() 221 static bool shouldFixMainFunction(FunctionType *FuncTy, FunctionType *MainTy) { in shouldFixMainFunction() 253 FunctionType *MainTy = FunctionType::get(Type::getInt32Ty(C), MainArgTys, in runOnModule() 266 DenseMap<std::pair<Function *, FunctionType *>, Function *> Wrappers; in runOnModule() 271 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
|
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 426 static std::string getSignature(FunctionType *FTy) { in getSignature() 442 static Function *getFunction(FunctionType *Ty, const Twine &Name, Module *M) { in getFunction() 498 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch() 579 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper() 591 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper() 932 GetTempRet0F = getFunction(FunctionType::get(IRB.getInt32Ty(), false), in runOnModule() 935 getFunction(FunctionType::get(IRB.getVoidTy(), IRB.getInt32Ty(), false), in runOnModule() 945 FunctionType *ResumeFTy = in runOnModule() 946 FunctionType::get(IRB.getVoidTy(), IRB.getPtrTy(), false); in runOnModule() 951 FunctionType *EHTypeIDTy = in runOnModule() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Intrinsics.h | 27 class FunctionType; variable 70 FunctionType *FT = nullptr); 78 LLVM_ABI FunctionType *getType(LLVMContext &Context, ID id, 91 LLVM_ABI AttributeList getAttributes(LLVMContext &C, ID id, FunctionType *FT); 121 FunctionType *FT = nullptr); 257 matchIntrinsicSignature(FunctionType *FTy, ArrayRef<IITDescriptor> &Infos, 273 LLVM_ABI bool getIntrinsicSignature(Intrinsic::ID, FunctionType *FT,
|
| H A D | VFABIDemangler.h | 101 static VFShape getScalarShape(const FunctionType *FTy) { in getScalarShape() 109 static VFShape get(const FunctionType *FTy, ElementCount EC, in get() 185 const FunctionType *FTy); 209 LLVM_ABI FunctionType *createFunctionType(const VFInfo &Info, 210 const FunctionType *ScalarFTy);
|
| H A D | DerivedTypes.h | 105 class FunctionType : public Type { 106 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs); 109 FunctionType(const FunctionType &) = delete; 110 FunctionType &operator=(const FunctionType &) = delete; 113 LLVM_ABI static FunctionType *get(Type *Result, ArrayRef<Type *> Params, 117 LLVM_ABI static FunctionType *get(Type *Result, bool isVarArg); 151 static_assert(alignof(FunctionType) >= alignof(Type *), 155 return cast<FunctionType>(this)->isVarArg(); in isFunctionVarArg() 159 return cast<FunctionType>(this)->getParamType(i); in getFunctionParamType() 163 return cast<FunctionType>(this)->getNumParams(); in getFunctionNumParams() [all …]
|
| H A D | InlineAsm.h | 31 class FunctionType; variable 47 FunctionType *FTy; 53 InlineAsm(FunctionType *Ty, const std::string &AsmString, 67 LLVM_ABI static InlineAsm *get(FunctionType *Ty, StringRef AsmString, 86 LLVM_ABI FunctionType *getFunctionType() const; 94 LLVM_ABI static Error verify(FunctionType *Ty, StringRef Constraints);
|
| /freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | CodeGenABITypes.h | 36 class FunctionType; variable 80 ArrayRef<CanQualType> argTypes, FunctionType::ExtInfo info, 86 FunctionType::ExtInfo info, 94 FunctionType::ExtInfo info, RequiredArgs args) { in arrangeFreeFunctionCall() 110 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM, 127 QualType FunctionType);
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | ExternalFunctions.cpp | 61 typedef GenericValue (*ExFunc)(FunctionType *, ArrayRef<GenericValue>); 113 FunctionType *FT = F->getFunctionType(); in lookupFunction() 206 FunctionType *FTy = F->getFunctionType(); in ffiInvoke() 324 static GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit() 334 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_exit() 340 static GenericValue lle_X_abort(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_abort() 355 static GenericValue lle_X_sprintf(FunctionType *FT, in lle_X_sprintf() 440 static GenericValue lle_X_printf(FunctionType *FT, in lle_X_printf() 452 static GenericValue lle_X_sscanf(FunctionType *FT, in lle_X_sscanf() 467 static GenericValue lle_X_scanf(FunctionType *FT, ArrayRef<GenericValue> args) { in lle_X_scanf() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
| H A D | OffloadWrapper.cpp | 192 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createUnregisterFunction() 199 auto *UnRegFuncTy = FunctionType::get(Type::getVoidTy(C), getBinDescPtrTy(M), in createUnregisterFunction() 215 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFunction() 221 auto *RegFuncTy = FunctionType::get(Type::getVoidTy(C), getBinDescPtrTy(M), in createRegisterFunction() 226 auto *AtExitTy = FunctionType::get( in createRegisterFunction() 342 auto *RegFuncTy = FunctionType::get( in createRegisterGlobalsFunction() 351 auto *RegVarTy = FunctionType::get( in createRegisterGlobalsFunction() 360 FunctionType *RegManagedVarTy = in createRegisterGlobalsFunction() 361 FunctionType::get(Type::getVoidTy(C), in createRegisterGlobalsFunction() 370 FunctionType *RegSurfaceTy = in createRegisterGlobalsFunction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 57 FunctionType *StatReportTy = FunctionType::get(B.getVoidTy(), PtrTy, false); in create() 92 auto F = Function::Create(FunctionType::get(VoidTy, false), in finish() 97 FunctionType *StatInitTy = FunctionType::get(VoidTy, Int8PtrTy, false); in finish()
|
| H A D | LowerGlobalDtors.cpp | 134 FunctionType *AtExitFuncTy = in runImpl() 135 FunctionType::get(Type::getVoidTy(C), AtExitFuncArgs, in runImpl() 140 FunctionType::get(Type::getInt32Ty(C), in runImpl() 187 FunctionType *VoidVoid = FunctionType::get(Type::getVoidTy(C), in runImpl()
|
| H A D | DeclareRuntimeLibcalls.cpp | 30 FunctionType *FuncTy = in run() 31 FunctionType::get(Type::getVoidTy(Ctx), {}, /*IsVarArgs=*/true); in run()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenTypes.h | 23 class FunctionType; variable 149 llvm::FunctionType *GetFunctionType(const CGFunctionInfo &Info); 151 llvm::FunctionType *GetFunctionType(GlobalDecl GD); 156 bool isFuncTypeConvertible(const FunctionType *FT); 212 const FunctionType *Ty, 252 const FunctionType *type); 284 FunctionType::ExtInfo info,
|
| H A D | CGDeclCXX.cpp | 240 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false); in createAtExitStub() 289 FunctionType::ExtInfo(), {}, RequiredArgs::All); in createTLSAtExitStub() 292 llvm::FunctionType *StubTy = in createTLSAtExitStub() 293 llvm::FunctionType::get(CGM.IntTy, {CGM.IntTy}, true); in createTLSAtExitStub() 352 llvm::FunctionType *atexitTy = in registerGlobalDtorWithAtExit() 353 llvm::FunctionType::get(IntTy, dtorStub->getType(), false); in registerGlobalDtorWithAtExit() 376 llvm::FunctionType *unatexitTy = in unregisterGlobalDtorWithUnAtExit() 377 llvm::FunctionType::get(IntTy, {dtorStub->getType()}, /*isVarArg=*/false); in unregisterGlobalDtorWithUnAtExit() 439 llvm::FunctionType *FTy, const Twine &Name, const CGFunctionInfo &FI, in CreateGlobalInitOrCleanUpFunction() 551 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc() [all …]
|
| H A D | CGCUDANV.cpp | 83 llvm::FunctionType *getRegisterGlobalsFnTy() const; 84 llvm::FunctionType *getCallbackFnTy() const; 85 llvm::FunctionType *getRegisterLinkedBinaryFnTy() const; 125 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { in makeDummyFunction() 247 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn() 255 llvm::FunctionType::get(IntTy, PtrTy, false), "hipLaunchByPtr"); in getLaunchFn() 258 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, PtrTy, false), in getLaunchFn() 262 llvm::FunctionType *CGNVCUDARuntime::getRegisterGlobalsFnTy() const { in getRegisterGlobalsFnTy() 263 return llvm::FunctionType::get(VoidTy, PtrTy, false); in getRegisterGlobalsFnTy() 266 llvm::FunctionType *CGNVCUDARuntime::getCallbackFnTy() const { in getCallbackFnTy() [all …]
|
| H A D | CodeGenABITypes.cpp | 62 FunctionType::ExtInfo info, in arrangeCXXMethodCall() 72 FunctionType::ExtInfo info, in arrangeFreeFunctionCall() 103 llvm::FunctionType * 108 if (auto FT = dyn_cast<llvm::FunctionType>(T)) in convertFreeFunctionType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64Arm64ECCallLowering.cpp | 67 Function *buildExitThunk(FunctionType *FnTy, AttributeList Attrs); 79 FunctionType *GuardFnType = nullptr; 80 FunctionType *DispatchFnType = nullptr; 90 void getThunkType(FunctionType *FT, AttributeList AttrList, 92 FunctionType *&Arm64Ty, FunctionType *&X64Ty, 94 void getThunkRetType(FunctionType *FT, AttributeList AttrList, 100 void getThunkArgTypes(FunctionType *FT, AttributeList AttrList, 113 FunctionType *FT, AttributeList AttrList, Arm64ECThunkType TT, in getThunkType() 114 raw_ostream &Out, FunctionType *&Arm64Ty, FunctionType *&X64Ty, in getThunkType() 139 Arm64Ty = FunctionType::get(Arm64RetTy, Arm64ArgTypes, false); in getThunkType() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Attr.h | 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/Frontend/Atomic/ |
| H A D | Atomic.cpp | 43 FunctionType *FnType = FunctionType::get(ResultType, ArgTys, false); in EmitAtomicLibcall() 138 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in EmitAtomicLoadLibcall() 177 FunctionType *FnType = FunctionType::get(Type::getVoidTy(Ctx), ArgTys, false); in EmitAtomicStoreLibcall()
|
| /freebsd/contrib/llvm-project/lldb/source/Core/ |
| H A D | DemangledNameInfo.cpp | 119 printLeftImpl(static_cast<const FunctionType &>(N)); in printLeft() 138 printRightImpl(static_cast<const FunctionType &>(N)); in printRight() 148 void TrackingOutputBuffer::printLeftImpl(const FunctionType &N) { in printLeftImpl() 153 void TrackingOutputBuffer::printRightImpl(const FunctionType &N) { in printRightImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | GCOVProfiling.cpp | 122 Function *createInternalFunction(FunctionType *FTy, StringRef Name, 637 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); in AddFlushBeforeForkAndExec() 665 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec() 973 Function *GCOVProfiler::createInternalFunction(FunctionType *FTy, in createInternalFunction() 995 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor() 1002 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor() 1004 FTy = FunctionType::get(Builder.getVoidTy(), {PFTy, PFTy}, false); in emitGlobalConstructor() 1055 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getStartFileFunc() 1066 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitFunctionFunc() 1076 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitArcsFunc() [all …]
|
| H A D | DataFlowSanitizer.cpp | 341 if (isa<FunctionType>(GA.getValueType())) in isIn() 359 TransformedFunction(FunctionType *OriginalType, FunctionType *TransformedType, in TransformedFunction() 373 FunctionType *OriginalType; 376 FunctionType *TransformedType; 465 FunctionType *DFSanUnionLoadFnTy; 466 FunctionType *DFSanLoadLabelAndOriginFnTy; 467 FunctionType *DFSanUnimplementedFnTy; 468 FunctionType *DFSanWrapperExternWeakNullFnTy; 469 FunctionType *DFSanSetLabelFnTy; 470 FunctionType *DFSanNonzeroLabelFnTy; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaARM.cpp | 551 FunctionType::SME_PStateSMEnabledMask) in getArmStreamingFnType() 554 FunctionType::SME_PStateSMCompatibleMask) in getArmStreamingFnType() 1213 FunctionType::ArmStateValue CurrentState, StringRef StateName) { in checkNewAttrMutualExclusion() 1215 [&](FunctionType::ArmStateValue IncompatibleState, in checkNewAttrMutualExclusion() 1227 CheckForIncompatibleAttr(FunctionType::ARM_In, "__arm_in"); in checkNewAttrMutualExclusion() 1228 CheckForIncompatibleAttr(FunctionType::ARM_Out, "__arm_out"); in checkNewAttrMutualExclusion() 1229 CheckForIncompatibleAttr(FunctionType::ARM_InOut, "__arm_inout"); in checkNewAttrMutualExclusion() 1230 CheckForIncompatibleAttr(FunctionType::ARM_Preserves, "__arm_preserves"); in checkNewAttrMutualExclusion() 1270 FunctionType::ArmStateValue ZAState = in handleNewAttr() 1271 FunctionType::getArmZAState(FPT->getAArch64SMEAttributes()); in handleNewAttr() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | ExtractGV.cpp | 117 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { in run() 138 auto *FuncType = dyn_cast<FunctionType>(IF.getValueType()); in run()
|