Home
last modified time | relevance | path

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

12345678910>>...12

/netbsd-src/external/apache2/llvm/dist/libcxx/benchmarks/
H A Dfunction.bench.cpp20 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DDerivedTypes.h102 class FunctionType : public Type {
103 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs);
106 FunctionType(const FunctionType &) = delete;
107 FunctionType &operator=(const FunctionType &) = delete;
110 static FunctionType *get(Type *Result,
114 static FunctionType *get(Type *Result, bool isVarArg);
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()
[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
72 std::string getName(ID Id, ArrayRef<Type *> Tys, Module *M, FunctionType *FT);
75 FunctionType *getType(LLVMContext &Context, ID id,
227 matchIntrinsicSignature(FunctionType *FTy, ArrayRef<IITDescriptor> &Infos,
H A DFunction.h124 Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace,
137 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
144 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
153 static Function *Create(FunctionType *Ty, LinkageTypes Linkage,
161 static Function *createWithDefaultAttr(FunctionType *Ty, LinkageTypes Linkage,
175 FunctionType *getFunctionType() const { in getFunctionType()
176 return cast<FunctionType>(getValueType()); in getFunctionType()
H A DModule.h45 class FunctionType; variable
203 DenseMap<std::pair<Intrinsic::ID, const FunctionType *>, unsigned>
345 const FunctionType *Proto);
362 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T,
365 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T);
379 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
394 FunctionType *Invalid, ArgsTy... Args) = delete;
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCUDANV.cpp76 llvm::FunctionType *getRegisterGlobalsFnTy() const;
77 llvm::FunctionType *getCallbackFnTy() const;
78 llvm::FunctionType *getRegisterLinkedBinaryFnTy() const;
111 llvm::Function *makeDummyFunction(llvm::FunctionType *FnTy) { in makeDummyFunction()
224 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn()
232 llvm::FunctionType::get(IntTy, CharPtrTy, false), "hipLaunchByPtr"); in getLaunchFn()
236 llvm::FunctionType::get(IntTy, CharPtrTy, false), "cudaLaunch"); in getLaunchFn()
240 llvm::FunctionType *CGNVCUDARuntime::getRegisterGlobalsFnTy() const { in getRegisterGlobalsFnTy()
241 return llvm::FunctionType::get(VoidTy, VoidPtrPtrTy, false); in getRegisterGlobalsFnTy()
244 llvm::FunctionType *CGNVCUDARuntime::getCallbackFnTy() const { in getCallbackFnTy()
[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()
278 llvm::FunctionType::get(CGM.VoidTy, false), in registerGlobalDtorWithAtExit()
282 llvm::FunctionType *atexitTy = in registerGlobalDtorWithAtExit()
283 llvm::FunctionType::get(IntTy, dtorStub->getType(), false); in registerGlobalDtorWithAtExit()
305 llvm::FunctionType::get(CGM.VoidTy, false), in unregisterGlobalDtorWithUnAtExit()
309 llvm::FunctionType *unatexitTy = in unregisterGlobalDtorWithUnAtExit()
310 llvm::FunctionType::get(IntTy, {dtorStub->getType()}, /*isVarArg=*/false); in unregisterGlobalDtorWithUnAtExit()
372 llvm::FunctionType *FTy, const Twine &Name, const CGFunctionInfo &FI, in CreateGlobalInitOrCleanUpFunction()
475 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc()
589 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc()
[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.cpp633 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( in EmitLoadOfMemberFunctionPointer()
1284 llvm::FunctionType *FTy = in emitRethrow()
1285 llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in emitRethrow()
1298 llvm::FunctionType *FTy = in getAllocateExceptionFn()
1299 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*isVarArg=*/false); in getAllocateExceptionFn()
1309 llvm::FunctionType *FTy = in getThrowFn()
1310 llvm::FunctionType::get(CGM.VoidTy, Args, /*isVarArg=*/false); in getThrowFn()
1361 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); in getItaniumDynamicCastFn()
1374 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); in getBadCastFn()
1432 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); in getBadTypeidFn()
[all …]
/netbsd-src/external/apache2/llvm/dist/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 DWebAssemblyLowerEmscriptenEHSjLj.cpp322 static std::string getSignature(FunctionType *FTy) { in getSignature()
338 static Function *getEmscriptenFunction(FunctionType *Ty, const Twine &Name, in getEmscriptenFunction()
390 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch()
479 FunctionType *CalleeFTy = CI->getFunctionType(); in getInvokeWrapper()
490 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper()
708 FunctionType::get(IRB.getInt32Ty(), false), "getTempRet0", &M); in runOnModule()
710 FunctionType::get(IRB.getVoidTy(), IRB.getInt32Ty(), false), in runOnModule()
720 FunctionType *ResumeFTy = in runOnModule()
721 FunctionType::get(IRB.getVoidTy(), IRB.getInt8PtrTy(), false); in runOnModule()
725 FunctionType *EHTypeIDTy = in runOnModule()
[all …]
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 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp62 typedef GenericValue (*ExFunc)(FunctionType *, ArrayRef<GenericValue>);
104 FunctionType *FT = F->getFunctionType(); in lookupFunction()
194 FunctionType *FTy = F->getFunctionType(); in ffiInvoke()
310 static GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit()
320 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_exit()
326 static GenericValue lle_X_abort(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_abort()
335 static GenericValue lle_X_sprintf(FunctionType *FT, in lle_X_sprintf()
417 static GenericValue lle_X_printf(FunctionType *FT, in lle_X_printf()
429 static GenericValue lle_X_sscanf(FunctionType *FT, in lle_X_sscanf()
444 static GenericValue lle_X_scanf(FunctionType *FT, ArrayRef<GenericValue> args) { in lle_X_scanf()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp301 if (isa<FunctionType>(GA.getValueType())) in isIn()
319 TransformedFunction(FunctionType *OriginalType, FunctionType *TransformedType, in TransformedFunction()
333 FunctionType *OriginalType;
336 FunctionType *TransformedType;
446 FunctionType *DFSanUnionFnTy;
447 FunctionType *DFSanUnionLoadFnTy;
448 FunctionType *DFSanLoadLabelAndOriginFnTy;
449 FunctionType *DFSanUnimplementedFnTy;
450 FunctionType *DFSanSetLabelFnTy;
451 FunctionType *DFSanNonzeroLabelFnTy;
[all …]
H A DGCOVProfiling.cpp128 Function *createInternalFunction(FunctionType *FTy, StringRef Name);
711 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); in AddFlushBeforeForkAndExec()
737 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec()
1027 Function *GCOVProfiler::createInternalFunction(FunctionType *FTy, in createInternalFunction()
1046 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor()
1053 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor()
1055 FTy = FunctionType::get(Builder.getVoidTy(), {PFTy, PFTy}, false); in emitGlobalConstructor()
1072 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getStartFileFunc()
1086 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitFunctionFunc()
1101 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitArcsFunc()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DType.cpp301 FunctionType::FunctionType(Type *Result, ArrayRef<Type*> Params, in FunctionType() function in FunctionType
321 FunctionType *FunctionType::get(Type *ReturnType, in get()
325 FunctionType *FT; in get()
335 FT = (FunctionType *)pImpl->Alloc.Allocate( in get()
336 sizeof(FunctionType) + sizeof(Type *) * (Params.size() + 1), in get()
337 alignof(FunctionType)); in get()
338 new (FT) FunctionType(ReturnType, Params, isVarArg); in get()
347 FunctionType *FunctionType::get(Type *Result, bool isVarArg) { in get()
351 bool FunctionType::isValidReturnType(Type *RetTy) { in isValidReturnType()
356 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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h38 class FunctionType; variable
88 FunctionType::ExtInfo info,
103 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM,
/netbsd-src/external/apache2/llvm/dist/llvm/examples/ModuleMaker/
H A DModuleMaker.cpp38 FunctionType *FT = in main()
39 FunctionType::get(Type::getInt32Ty(Context), /*not vararg*/false); in main()

12345678910>>...12