| /openbsd-src/gnu/llvm/libcxx/benchmarks/ |
| H A D | function.bench.cpp | 20 enum class FunctionType { enum 31 struct AllFunctionTypes : EnumValuesAsTuple<AllFunctionTypes, FunctionType, 8> { 84 inline Function MakeFunction(FunctionType type, bool opaque = false) { in MakeFunction() 86 case FunctionType::Null: in MakeFunction() 88 case FunctionType::FunctionPointer: in MakeFunction() 90 case FunctionType::MemberFunctionPointer: in MakeFunction() 92 case FunctionType::MemberPointer: in MakeFunction() 94 case FunctionType::SmallTrivialFunctor: in MakeFunction() 96 case FunctionType::SmallNonTrivialFunctor: in MakeFunction() 98 case FunctionType::LargeTrivialFunctor: in MakeFunction() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGDeclCXX.cpp | 238 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false); in createAtExitStub() 282 {getContext().IntTy}, FunctionType::ExtInfo(), {}, RequiredArgs::All); in createTLSAtExitStub() 285 llvm::FunctionType *StubTy = in createTLSAtExitStub() 286 llvm::FunctionType::get(CGM.IntTy, {CGM.IntTy}, true); in createTLSAtExitStub() 334 llvm::FunctionType::get(CGM.VoidTy, false), in registerGlobalDtorWithAtExit() 338 llvm::FunctionType *atexitTy = in registerGlobalDtorWithAtExit() 339 llvm::FunctionType::get(IntTy, dtorStub->getType(), false); in registerGlobalDtorWithAtExit() 361 llvm::FunctionType::get(CGM.VoidTy, false), in unregisterGlobalDtorWithUnAtExit() 365 llvm::FunctionType *unatexitTy = in unregisterGlobalDtorWithUnAtExit() 366 llvm::FunctionType::get(IntTy, {dtorStub->getType()}, /*isVarArg=*/false); in unregisterGlobalDtorWithUnAtExit() [all …]
|
| H A D | CodeGenTypes.h | 23 class FunctionType; variable 137 llvm::FunctionType *GetFunctionType(const CGFunctionInfo &Info); 139 llvm::FunctionType *GetFunctionType(GlobalDecl GD); 144 bool isFuncTypeConvertible(const FunctionType *FT); 200 const FunctionType *Ty, 233 const FunctionType *type); 267 FunctionType::ExtInfo info,
|
| H A D | CGCUDANV.cpp | 78 llvm::FunctionType *getRegisterGlobalsFnTy() const; 79 llvm::FunctionType *getCallbackFnTy() const; 80 llvm::FunctionType *getRegisterLinkedBinaryFnTy() const; 122 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { in makeDummyFunction() 246 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn() 254 llvm::FunctionType::get(IntTy, CharPtrTy, false), "hipLaunchByPtr"); in getLaunchFn() 258 llvm::FunctionType::get(IntTy, CharPtrTy, false), "cudaLaunch"); in getLaunchFn() 261 llvm::FunctionType *CGNVCUDARuntime::getRegisterGlobalsFnTy() const { in getRegisterGlobalsFnTy() 262 return llvm::FunctionType::get(VoidTy, VoidPtrPtrTy, false); in getRegisterGlobalsFnTy() 265 llvm::FunctionType *CGNVCUDARuntime::getCallbackFnTy() const { in getCallbackFnTy() [all …]
|
| H A D | CodeGenABITypes.cpp | 66 FunctionType::ExtInfo info, in arrangeFreeFunctionCall() 97 llvm::FunctionType * 102 if (auto FT = dyn_cast<llvm::FunctionType>(T)) in convertFreeFunctionType()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 103 class FunctionType : public Type { 104 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs); 107 FunctionType(const FunctionType &) = delete; 108 FunctionType &operator=(const FunctionType &) = delete; 111 static FunctionType *get(Type *Result, 115 static FunctionType *get(Type *Result, bool isVarArg); 146 static_assert(alignof(FunctionType) >= alignof(Type *), 150 return cast<FunctionType>(this)->isVarArg(); in isFunctionVarArg() 154 return cast<FunctionType>(this)->getParamType(i); in getFunctionParamType() 158 return cast<FunctionType>(this)->getNumParams(); in getFunctionNumParams() [all …]
|
| H A D | InlineAsm.h | 29 class FunctionType; variable 45 FunctionType *FTy; 51 InlineAsm(FunctionType *Ty, const std::string &AsmString, 65 static InlineAsm *get(FunctionType *Ty, StringRef AsmString, 83 FunctionType *getFunctionType() const; 91 static Error verify(FunctionType *Ty, StringRef Constraints);
|
| H A D | Intrinsics.h | 26 class FunctionType; variable 68 FunctionType *FT = nullptr); 76 FunctionType *getType(LLVMContext &Context, ID id, 227 matchIntrinsicSignature(FunctionType *FTy, ArrayRef<IITDescriptor> &Infos,
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 109 static Function *createWrapper(Function *F, FunctionType *Ty) { in createWrapper() 121 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper() 122 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper() 219 static bool shouldFixMainFunction(FunctionType *FuncTy, FunctionType *MainTy) { in shouldFixMainFunction() 252 FunctionType *MainTy = FunctionType::get(Type::getInt32Ty(C), MainArgTys, in runOnModule() 267 DenseMap<std::pair<Function *, FunctionType *>, Function *> Wrappers; in runOnModule() 272 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
|
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 432 static std::string getSignature(FunctionType *FTy) { in getSignature() 448 static Function *getEmscriptenFunction(FunctionType *Ty, const Twine &Name, in getEmscriptenFunction() 500 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch() 580 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper() 591 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper() 935 FunctionType::get(IRB.getInt32Ty(), false), "getTempRet0", &M); in runOnModule() 937 FunctionType::get(IRB.getVoidTy(), IRB.getInt32Ty(), false), in runOnModule() 947 FunctionType *ResumeFTy = in runOnModule() 948 FunctionType::get(IRB.getVoidTy(), IRB.getInt8PtrTy(), false); in runOnModule() 953 FunctionType *EHTypeIDTy = in runOnModule() [all …]
|
| H A D | WebAssemblyAddMissingPrototypes.cpp | 105 FunctionType *NewType = nullptr; in runOnModule() 109 FunctionType *DestType = CB->getFunctionType(); in runOnModule() 132 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
|
| /openbsd-src/gnu/llvm/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() 349 static GenericValue lle_X_sprintf(FunctionType *FT, in lle_X_sprintf() 431 static GenericValue lle_X_printf(FunctionType *FT, in lle_X_printf() 443 static GenericValue lle_X_sscanf(FunctionType *FT, in lle_X_sscanf() 458 static GenericValue lle_X_scanf(FunctionType *FT, ArrayRef<GenericValue> args) { in lle_X_scanf() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 56 FunctionType *StatReportTy = in create() 57 FunctionType::get(B.getVoidTy(), Int8PtrTy, false); in create() 93 auto F = Function::Create(FunctionType::get(VoidTy, false), in finish() 98 FunctionType *StatInitTy = FunctionType::get(VoidTy, Int8PtrTy, false); in finish()
|
| H A D | LowerGlobalDtors.cpp | 133 FunctionType *AtExitFuncTy = in runImpl() 134 FunctionType::get(Type::getVoidTy(C), AtExitFuncArgs, in runImpl() 139 FunctionType::get(Type::getInt32Ty(C), in runImpl() 175 FunctionType *VoidVoid = FunctionType::get(Type::getVoidTy(C), in runImpl()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 18 class FunctionType; variable 349 virtual FunctionType *getFunctionType(Module &M) const = 0; 366 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT); 393 FunctionType *getFunctionType(Module &M) const { in getFunctionType() 418 FunctionType *getFunctionType(Module &M) const override; 438 FunctionType *FuncTy; 442 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *FT) { in AMDGPUUnmangledLibFunc() 448 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() 457 void setFunctionType(FunctionType *FT) { FuncTy = FT; } in setFunctionType()
|
| /openbsd-src/gnu/llvm/clang/tools/clang-linker-wrapper/ |
| H A D | OffloadWrapper.cpp | 229 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFunction() 235 auto *RegFuncTy = FunctionType::get(Type::getVoidTy(C), getBinDescPtrTy(M), in createRegisterFunction() 256 auto *FuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createUnregisterFunction() 262 auto *UnRegFuncTy = FunctionType::get(Type::getVoidTy(C), getBinDescPtrTy(M), in createUnregisterFunction() 371 auto *RegFuncTy = FunctionType::get( in createRegisterGlobalsFunction() 382 auto *RegVarTy = FunctionType::get( in createRegisterGlobalsFunction() 407 auto *RegGlobalsTy = FunctionType::get(Type::getVoidTy(C), in createRegisterGlobalsFunction() 521 auto *CtorFuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFatbinFunction() 527 auto *DtorFuncTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg*/ false); in createRegisterFatbinFunction() 534 auto *RegFatTy = FunctionType::get(Type::getInt8PtrTy(C)->getPointerTo(), in createRegisterFatbinFunction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | GCOVProfiling.cpp | 122 Function *createInternalFunction(FunctionType *FTy, StringRef Name, 659 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); in AddFlushBeforeForkAndExec() 687 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec() 982 Function *GCOVProfiler::createInternalFunction(FunctionType *FTy, in createInternalFunction() 1004 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor() 1011 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor() 1013 FTy = FunctionType::get(Builder.getVoidTy(), {PFTy, PFTy}, false); in emitGlobalConstructor() 1030 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getStartFileFunc() 1041 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitFunctionFunc() 1051 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitArcsFunc() [all …]
|
| H A D | DataFlowSanitizer.cpp | 333 if (isa<FunctionType>(GA.getValueType())) in isIn() 351 TransformedFunction(FunctionType *OriginalType, FunctionType *TransformedType, in TransformedFunction() 365 FunctionType *OriginalType; 368 FunctionType *TransformedType; 457 FunctionType *DFSanUnionLoadFnTy; 458 FunctionType *DFSanLoadLabelAndOriginFnTy; 459 FunctionType *DFSanUnimplementedFnTy; 460 FunctionType *DFSanWrapperExternWeakNullFnTy; 461 FunctionType *DFSanSetLabelFnTy; 462 FunctionType *DFSanNonzeroLabelFnTy; [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/CodeGen/ |
| H A D | CodeGenABITypes.h | 36 class FunctionType; variable 80 FunctionType::ExtInfo info, 95 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM,
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Type.cpp | 343 FunctionType::FunctionType(Type *Result, ArrayRef<Type*> Params, in FunctionType() function in FunctionType 363 FunctionType *FunctionType::get(Type *ReturnType, in get() 367 FunctionType *FT; in get() 377 FT = (FunctionType *)pImpl->Alloc.Allocate( in get() 378 sizeof(FunctionType) + sizeof(Type *) * (Params.size() + 1), in get() 379 alignof(FunctionType)); in get() 380 new (FT) FunctionType(ReturnType, Params, isVarArg); in get() 389 FunctionType *FunctionType::get(Type *Result, bool isVarArg) { in get() 393 bool FunctionType::isValidReturnType(Type *RetTy) { in isValidReturnType() 398 bool FunctionType::isValidArgumentType(Type *ArgTy) { in isValidArgumentType()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/ |
| H A D | DXILOpBuilder.h | 24 class FunctionType; variable 34 Type *getOverloadTy(dxil::OpCode OpCode, FunctionType *FT,
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/ |
| H A D | RenderScriptx86ABIFixups.cpp | 75 static llvm::FunctionType *cloneToStructRetFnTy(llvm::CallInst *call_inst) { in cloneToStructRetFnTy() 87 llvm::FunctionType *orig_type = orig->getFunctionType(); in cloneToStructRetFnTy() 115 return llvm::FunctionType::get(return_type_ptr_type, params, in cloneToStructRetFnTy() 150 llvm::FunctionType *new_func_type = cloneToStructRetFnTy(call_inst); in fixupX86StructRetCalls()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInternal.h | 39 FunctionType *const ResumeFnType; 127 FunctionType *AsyncFuncTy; 182 FunctionType *getResumeFunctionType() const { in getResumeFunctionType() 185 return FunctionType::get(Type::getVoidTy(FrameTy->getContext()), in getResumeFunctionType()
|
| /openbsd-src/gnu/llvm/llvm/examples/ModuleMaker/ |
| H A D | ModuleMaker.cpp | 38 FunctionType *FT = in main() 39 FunctionType::get(Type::getInt32Ty(Context), /*not vararg*/false); in main()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 84 FunctionType *NewFTy = in processFunctionSignature() 85 FunctionType::get(RetType, ArgTypes, F->getFunctionType()->isVarArg()); in processFunctionSignature() 134 FunctionType *FT = FunctionType::get(RetTy, ArgTypes, false); in getOrCreateFunction() 213 FunctionType *FSHFuncTy = FSHIntrinsic->getFunctionType(); in lowerFunnelShifts() 295 FunctionType *UMulFuncTy = UMulIntrinsic->getFunctionType(); in lowerUMulWithOverflow()
|