Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp109 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()
251 FunctionType *MainTy = FunctionType::get(Type::getInt32Ty(C), MainArgTys, in runOnModule()
264 DenseMap<std::pair<Function *, FunctionType *>, Function *> Wrappers; in runOnModule()
269 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp427 static std::string getSignature(FunctionType *FTy) { in getSignature()
443 static Function *getEmscriptenFunction(FunctionType *Ty, const Twine &Name, in getEmscriptenFunction()
495 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch()
575 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper()
586 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper()
928 FunctionType::get(IRB.getInt32Ty(), false), "getTempRet0", &M); in runOnModule()
930 FunctionType::get(IRB.getVoidTy(), IRB.getInt32Ty(), false), in runOnModule()
940 FunctionType *ResumeFTy = in runOnModule()
941 FunctionType::get(IRB.getVoidTy(), IRB.getPtrTy(), false); in runOnModule()
946 FunctionType *EHTypeIDTy = in runOnModule()
[all …]
H A DWebAssemblyAddMissingPrototypes.cpp105 FunctionType *NewType = nullptr; in runOnModule()
109 FunctionType *DestType = CB->getFunctionType(); in runOnModule()
132 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp239 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false); in createAtExitStub()
288 FunctionType::ExtInfo(), {}, RequiredArgs::All); in createTLSAtExitStub()
291 llvm::FunctionType *StubTy = in createTLSAtExitStub()
292 llvm::FunctionType::get(CGM.IntTy, {CGM.IntTy}, true); in createTLSAtExitStub()
350 llvm::FunctionType::get(CGM.VoidTy, false), in registerGlobalDtorWithAtExit()
354 llvm::FunctionType *atexitTy = in registerGlobalDtorWithAtExit()
355 llvm::FunctionType::get(IntTy, dtorStub->getType(), false); in registerGlobalDtorWithAtExit()
377 llvm::FunctionType::get(CGM.VoidTy, false), in unregisterGlobalDtorWithUnAtExit()
381 llvm::FunctionType *unatexitTy = in unregisterGlobalDtorWithUnAtExit()
382 llvm::FunctionType::get(IntTy, {dtorStub->getType()}, /*isVarArg=*/false); in unregisterGlobalDtorWithUnAtExit()
[all …]
H A DCodeGenTypes.h23 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,
245 const FunctionType *type);
277 FunctionType::ExtInfo info,
H A DCGCUDANV.cpp78 llvm::FunctionType *getRegisterGlobalsFnTy() const;
79 llvm::FunctionType *getCallbackFnTy() const;
80 llvm::FunctionType *getRegisterLinkedBinaryFnTy() const;
120 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { in makeDummyFunction()
236 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn()
244 llvm::FunctionType::get(IntTy, PtrTy, false), "hipLaunchByPtr"); in getLaunchFn()
247 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, PtrTy, false), in getLaunchFn()
251 llvm::FunctionType *CGNVCUDARuntime::getRegisterGlobalsFnTy() const { in getRegisterGlobalsFnTy()
252 return llvm::FunctionType::get(VoidTy, PtrTy, false); in getRegisterGlobalsFnTy()
255 llvm::FunctionType *CGNVCUDARuntime::getCallbackFnTy() const { in getCallbackFnTy()
[all …]
H A DCodeGenABITypes.cpp66 FunctionType::ExtInfo info, in arrangeFreeFunctionCall()
96 llvm::FunctionType *
101 if (auto FT = dyn_cast<llvm::FunctionType>(T)) in convertFreeFunctionType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h103 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);
149 static_assert(alignof(FunctionType) >= alignof(Type *),
153 return cast<FunctionType>(this)->isVarArg(); in isFunctionVarArg()
157 return cast<FunctionType>(this)->getParamType(i); in getFunctionParamType()
161 return cast<FunctionType>(this)->getNumParams(); in getFunctionNumParams()
[all …]
H A DIntrinsics.h26 class FunctionType; variable
68 FunctionType *FT = nullptr);
76 FunctionType *getType(LLVMContext &Context, ID id,
229 matchIntrinsicSignature(FunctionType *FTy, ArrayRef<IITDescriptor> &Infos,
244 bool getIntrinsicSignature(Intrinsic::ID, FunctionType *FT,
H A DInlineAsm.h30 class FunctionType;
46 FunctionType *FTy;
52 InlineAsm(FunctionType *Ty, const std::string &AsmString,
66 static InlineAsm *get(FunctionType *Ty, StringRef AsmString,
84 FunctionType *getFunctionType() const;
92 static Error verify(FunctionType *Ty, StringRef Constraints);
29 class FunctionType; global() variable
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp61 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 DOffloadWrapper.cpp192 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()
339 auto *RegFuncTy = FunctionType::get( in createRegisterGlobalsFunction()
348 auto *RegVarTy = FunctionType::get( in createRegisterGlobalsFunction()
357 FunctionType *RegSurfaceTy = in createRegisterGlobalsFunction()
358 FunctionType::get(Type::getVoidTy(C), in createRegisterGlobalsFunction()
366 FunctionType *RegTextureTy = FunctionType::get( in createRegisterGlobalsFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h18 class FunctionType; variable
355 virtual FunctionType *getFunctionType(Module &M) const = 0;
371 explicit AMDGPULibFunc(EFuncId Id, FunctionType *FT, bool SignedInts);
374 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT); in getId()
395 bool isCompatibleSignature(const FunctionType *FuncTy) const; in getFunctionType()
404 FunctionType *getFunctionType(Module &M) const {
426 explicit AMDGPUMangledLibFunc(EFuncId id, FunctionType *FT,
431 FunctionType *getFunctionType(Module &M) const override;
451 FunctionType *FuncTy;
455 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *F
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp57 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 DLowerGlobalDtors.cpp134 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp70 Function *buildExitThunk(FunctionType *FnTy, AttributeList Attrs);
82 FunctionType *GuardFnType = nullptr;
84 FunctionType *DispatchFnType = nullptr;
95 void getThunkType(FunctionType *FT, AttributeList AttrList,
97 FunctionType *&Arm64Ty, FunctionType *&X64Ty,
99 void getThunkRetType(FunctionType *FT, AttributeList AttrList,
105 void getThunkArgTypes(FunctionType *FT, AttributeList AttrList,
118 FunctionType *FT, AttributeList AttrList, Arm64ECThunkType TT, in getThunkType()
119 raw_ostream &Out, FunctionType *&Arm64Ty, FunctionType *&X64Ty, in getThunkType()
144 Arm64Ty = FunctionType::get(Arm64RetTy, Arm64ArgTypes, false); in getThunkType()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h36 class FunctionType; variable
81 FunctionType::ExtInfo info,
96 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM,
113 QualType FunctionType);
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DAttr.h56 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/Instrumentation/
H A DGCOVProfiling.cpp122 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()
990 Function *GCOVProfiler::createInternalFunction(FunctionType *FTy, in createInternalFunction()
1012 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor()
1019 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor()
1021 FTy = FunctionType in emitGlobalConstructor()
[all...]
H A DDataFlowSanitizer.cpp341 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/llvm/lib/IR/
H A DType.cpp308 FunctionType::FunctionType(Type *Result, ArrayRef<Type*> Params, in FunctionType() function in FunctionType
328 FunctionType *FunctionType::get(Type *ReturnType, in get()
332 FunctionType *FT; in get()
342 FT = (FunctionType *)pImpl->Alloc.Allocate( in get()
343 sizeof(FunctionType) + sizeof(Type *) * (Params.size() + 1), in get()
344 alignof(FunctionType)); in get()
345 new (FT) FunctionType(ReturnType, Params, isVarArg); in get()
354 FunctionType *FunctionType::get(Type *Result, bool isVarArg) { in get()
358 bool FunctionType::isValidReturnType(Type *RetTy) { in isValidReturnType()
363 bool FunctionType::isValidArgumentType(Type *ArgTy) { in isValidArgumentType()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.h153 return FunctionType::get(F->getReturnType(), ArgTys, F->isVarArg()); in reconstructFunctionType()
217 inline Type *toTypedFunPointer(FunctionType *FTy) { in toTypedFunPointer()
232 return FunctionType::get(RetTy, ParamTys, FTy->isVarArg()); in toTypedFunPointer()
236 if (auto FTy = dyn_cast<FunctionType>(Ty)) in unifyPtrType()
237 return toTypedFunPointer(const_cast<FunctionType *>(FTy)); in unifyPtrType()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaARM.cpp553 FunctionType::SME_PStateSMEnabledMask) in getArmStreamingFnType()
556 FunctionType::SME_PStateSMCompatibleMask) in getArmStreamingFnType()
637 return (T && FunctionType::getArmZAState(T->getAArch64SMEAttributes()) != in hasArmZAState()
638 FunctionType::ARM_None) || in hasArmZAState()
644 return (T && FunctionType::getArmZT0State(T->getAArch64SMEAttributes()) != in hasArmZT0State()
645 FunctionType::ARM_None) || in hasArmZT0State()
1221 FunctionType::ArmStateValue CurrentState, StringRef StateName) { in checkNewAttrMutualExclusion()
1223 [&](FunctionType::ArmStateValue IncompatibleState, in checkNewAttrMutualExclusion()
1235 CheckForIncompatibleAttr(FunctionType::ARM_In, "__arm_in"); in checkNewAttrMutualExclusion()
1236 CheckForIncompatibleAttr(FunctionType::ARM_Out, "__arm_out"); in checkNewAttrMutualExclusion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp118 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { in run()
139 auto *FuncType = dyn_cast<FunctionType>(IF.getValueType()); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpBuilder.h24 class FunctionType; variable
39 Type *getOverloadTy(dxil::OpCode OpCode, FunctionType *FT);

12345678910>>...12