Home
last modified time | relevance | path

Searched refs:FunctionType (Results 1 – 25 of 254) sorted by relevance

1234567891011

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h102 class FunctionType : public Type {
106 FunctionType(const FunctionType &) = delete;
107 FunctionType &operator=(const FunctionType &) = delete;
110 static FunctionType *get(Type *Result,
145 static_assert(alignof(FunctionType) >= alignof(Type *),
149 return cast<FunctionType>(this)->isVarArg(); in isFunctionVarArg()
153 return cast<FunctionType>(this)->getParamType(i); in getFunctionParamType()
157 return cast<FunctionType>(this)->getNumParams(); in getFunctionNumParams()
172 FunctionCallee(FunctionType *FnTy, Value *Callee) in FunctionCallee()
181 FunctionType *getFunctionType() { return FnTy; } in getFunctionType()
[all …]
H A DInlineAsm.h27 class FunctionType; variable
43 FunctionType *FTy;
49 InlineAsm(FunctionType *Ty, const std::string &AsmString,
63 static InlineAsm *get(FunctionType *Ty, StringRef AsmString,
81 FunctionType *getFunctionType() const;
90 static bool Verify(FunctionType *Ty, StringRef Constraints);
H A DIntrinsics.h27 class FunctionType; variable
69 FunctionType *FT = nullptr);
77 FunctionType *getType(LLVMContext &Context, ID id,
229 matchIntrinsicSignature(FunctionType *FTy, ArrayRef<IITDescriptor> &Infos,
H A DFunction.h125 Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace,
138 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
145 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
154 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
162 static Function *createWithDefaultAttr(FunctionType *Ty, LinkageTypes Linkage,
176 FunctionType *getFunctionType() const { in getFunctionType()
177 return cast<FunctionType>(getValueType()); in getFunctionType()
H A DModule.h45 class FunctionType; variable
203 DenseMap<std::pair<Intrinsic::ID, const FunctionType *>, unsigned>
348 const FunctionType *Proto);
365 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T,
368 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T);
382 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
397 FunctionType *Invalid, ArgsTy... Args) = delete;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp117 static Function *createWrapper(Function *F, FunctionType *Ty) { in createWrapper()
129 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper()
130 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper()
227 static bool shouldFixMainFunction(FunctionType *FuncTy, FunctionType *MainTy) { in shouldFixMainFunction()
261 FunctionType *MainTy = FunctionType::get(Type::getInt32Ty(C), MainArgTys, in runOnModule()
277 DenseMap<std::pair<Function *, FunctionType *>, Function *> Wrappers; in runOnModule()
283 auto *Ty = dyn_cast<FunctionType>(PTy->getElementType()); in runOnModule()
H A DWebAssemblyLowerGlobalDtors.cpp119 FunctionType *AtExitFuncTy = in runOnModule()
120 FunctionType::get(Type::getVoidTy(C), AtExitFuncArgs, in runOnModule()
125 FunctionType::get(Type::getInt32Ty(C), in runOnModule()
162 FunctionType *VoidVoid = FunctionType::get(Type::getVoidTy(C), in runOnModule()
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp332 static std::string getSignature(FunctionType *FTy) { in getSignature()
400 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch()
489 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper()
500 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper()
721 FunctionType::get(IRB.getVoidTy(), IRB.getInt32Ty(), false), in runOnModule()
731 FunctionType *ResumeFTy = in runOnModule()
736 FunctionType *EHTypeIDTy = in runOnModule()
744 FunctionType *FTy = FunctionType::get( in runOnModule()
750 FunctionType *SetjmpFTy = SetjmpF->getFunctionType(); in runOnModule()
751 FTy = FunctionType::get(Type::getInt32PtrTy(C), in runOnModule()
[all …]
H A DWebAssemblyAddMissingPrototypes.cpp91 FunctionType *NewType = nullptr; in runOnModule()
96 if (auto *DestType = dyn_cast<FunctionType>( in runOnModule()
122 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp62 typedef GenericValue (*ExFunc)(FunctionType *, ArrayRef<GenericValue>);
104 FunctionType *FT = F->getFunctionType(); in lookupFunction()
196 FunctionType *FTy = F->getFunctionType(); in ffiInvoke()
312 static GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit()
322 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_exit()
337 static GenericValue lle_X_sprintf(FunctionType *FT, in lle_X_sprintf()
419 static GenericValue lle_X_printf(FunctionType *FT, in lle_X_printf()
431 static GenericValue lle_X_sscanf(FunctionType *FT, in lle_X_sscanf()
461 static GenericValue lle_X_fprintf(FunctionType *FT, in lle_X_fprintf()
474 static GenericValue lle_X_memset(FunctionType *FT, in lle_X_memset()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp57 FunctionType *StatReportTy = in create()
58 FunctionType::get(B.getVoidTy(), Int8PtrTy, false); in create()
94 auto F = Function::Create(FunctionType::get(VoidTy, false), in finish()
99 FunctionType *StatInitTy = FunctionType::get(VoidTy, Int8PtrTy, false); in finish()
H A DModuleUtils.cpp28 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray()
120 FunctionType::get(Type::getVoidTy(M.getContext()), InitArgTypes, false), in declareSanitizerInitFunction()
126 FunctionType::get(Type::getVoidTy(M.getContext()), false), in createSanitizerCtor()
150 VersionCheckName, FunctionType::get(IRB.getVoidTy(), {}, false), in createSanitizerCtorAndInitFunctions()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp76 llvm::FunctionType *getRegisterGlobalsFnTy() const;
77 llvm::FunctionType *getCallbackFnTy() const;
78 llvm::FunctionType *getRegisterLinkedBinaryFnTy() const;
231 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn()
260 return llvm::FunctionType::get(VoidTy, Params, false); in getRegisterLinkedBinaryFnTy()
370 llvm::FunctionType::get(IntTy, in emitDeviceStubBodyNew()
400 llvm::FunctionType *FTy = dyn_cast<llvm::FunctionType>(Ty); in emitDeviceStubBodyNew()
570 llvm::FunctionType::get( in makeRegisterGlobalsFn()
577 llvm::FunctionType::get( in makeRegisterGlobalsFn()
714 llvm::FunctionType::get(VoidTy, VoidPtrTy, false), in makeModuleCtorFunction()
[all …]
H A DCodeGenTypes.h23 class FunctionType; variable
140 llvm::FunctionType *GetFunctionType(const CGFunctionInfo &Info);
142 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
147 bool isFuncTypeConvertible(const FunctionType *FT);
203 const FunctionType *Ty,
236 const FunctionType *type);
270 FunctionType::ExtInfo info,
H A DCGDeclCXX.cpp234 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false); in createAtExitStub()
281 llvm::FunctionType *StubTy = in createTLSAtExitStub()
282 llvm::FunctionType::get(CGM.IntTy, {CGM.IntTy}, true); in createTLSAtExitStub()
330 llvm::FunctionType::get(CGM.VoidTy, false), in registerGlobalDtorWithAtExit()
334 llvm::FunctionType *atexitTy = in registerGlobalDtorWithAtExit()
357 llvm::FunctionType::get(CGM.VoidTy, false), in unregisterGlobalDtorWithUnAtExit()
361 llvm::FunctionType *unatexitTy = in unregisterGlobalDtorWithUnAtExit()
527 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc()
643 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc()
716 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalCleanUpFunc()
[all …]
H A DCodeGenABITypes.cpp66 FunctionType::ExtInfo info, in arrangeFreeFunctionCall()
97 llvm::FunctionType *
102 if (auto FT = dyn_cast<llvm::FunctionType>(T)) in convertFreeFunctionType()
H A DItaniumCXXABI.cpp1293 llvm::FunctionType *FTy = in emitRethrow()
1307 llvm::FunctionType *FTy = in getAllocateExceptionFn()
1370 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); in getItaniumDynamicCastFn()
1383 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); in getBadCastFn()
1441 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); in getBadTypeidFn()
2623 llvm::FunctionType *FTy = llvm::FunctionType::get(CGM.VoidTy, false); in createGlobalInitOrCleanupFn()
2646 llvm::FunctionType *dtorFuncTy = llvm::FunctionType::get(CGF.VoidTy, false); in unregisterGlobalDtorsWithUnAtExit()
2924 llvm::FunctionType *InitFnTy = llvm::FunctionType::get(CGM.VoidTy, false); in EmitThreadLocalInitFuncs()
4398 llvm::FunctionType *FTy = llvm::FunctionType::get( in getBeginCatchFn()
4414 llvm::FunctionType *FTy = llvm::FunctionType::get( in getGetExceptionPtrFn()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h17 class FunctionType; variable
348 virtual FunctionType *getFunctionType(Module &M) const = 0;
365 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT);
392 FunctionType *getFunctionType(Module &M) const { in getFunctionType()
417 FunctionType *getFunctionType(Module &M) const override;
437 FunctionType *FuncTy;
441 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *FT) { in AMDGPUUnmangledLibFunc()
447 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType()
456 void setFunctionType(FunctionType *FT) { FuncTy = FT; } in setFunctionType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp308 TransformedFunction(FunctionType *OriginalType, FunctionType *TransformedType, in TransformedFunction()
322 FunctionType *OriginalType;
325 FunctionType *TransformedType;
430 FunctionType *DFSanSetLabelFnTy;
472 FunctionType *getArgsFunctionType(FunctionType *T);
473 FunctionType *getTrampolineFunctionType(FunctionType *T);
790 FunctionType *DataFlowSanitizer::getArgsFunctionType(FunctionType *T) { in getArgsFunctionType()
801 FunctionType *DataFlowSanitizer::getTrampolineFunctionType(FunctionType *T) { in getTrampolineFunctionType()
830 FunctionType *FT; in getCustomFunctionType()
1501 FunctionType *NewFT = in runImpl()
[all …]
H A DGCOVProfiling.cpp711 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); in AddFlushBeforeForkAndExec()
737 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec()
1048 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor()
1055 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor()
1074 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getStartFileFunc()
1088 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitFunctionFunc()
1103 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitArcsFunc()
1111 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in getSummaryInfoFunc()
1116 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in getEndFileFunc()
1122 FunctionType *WriteoutFTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in insertCounterWriteout()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp307 FunctionType::FunctionType(Type *Result, ArrayRef<Type*> Params, in FunctionType() function in FunctionType
327 FunctionType *FunctionType::get(Type *ReturnType, in get()
331 FunctionType *FT; in get()
341 FT = (FunctionType *)pImpl->Alloc.Allocate( in get()
342 sizeof(FunctionType) + sizeof(Type *) * (Params.size() + 1), in get()
343 alignof(FunctionType)); in get()
344 new (FT) FunctionType(ReturnType, Params, isVarArg); in get()
353 FunctionType *FunctionType::get(Type *Result, bool isVarArg) { in get()
357 bool FunctionType::isValidReturnType(Type *RetTy) { in isValidReturnType()
362 bool FunctionType::isValidArgumentType(Type *ArgTy) { in isValidArgumentType()
H A DInlineAsm.cpp30 InlineAsm::InlineAsm(FunctionType *FTy, const std::string &asmString, in InlineAsm()
42 InlineAsm *InlineAsm::get(FunctionType *FTy, StringRef AsmString, in get()
57 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType()
254 bool InlineAsm::Verify(FunctionType *Ty, StringRef ConstStr) { in Verify()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h38 class FunctionType; variable
88 FunctionType::ExtInfo info,
103 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h64 FunctionType *const ResumeFnType;
150 FunctionType *AsyncFuncTy;
205 FunctionType *getResumeFunctionType() const { in getResumeFunctionType()
209 return cast<FunctionType>(FnPtrTy->getPointerElementType()); in getResumeFunctionType()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp80 llvm::FunctionType *cloneToStructRetFnTy(llvm::CallInst *call_inst) { in cloneToStructRetFnTy()
93 llvm::FunctionType *orig_type = orig->getFunctionType(); in cloneToStructRetFnTy()
121 return llvm::FunctionType::get(return_type_ptr_type, params, in cloneToStructRetFnTy()
156 llvm::FunctionType *new_func_type = cloneToStructRetFnTy(call_inst); in fixupX86StructRetCalls()

1234567891011