Home
last modified time | relevance | path

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

12345678910>>...23

/llvm-project-15.0.7/libcxx/benchmarks/
H A Dfunction.bench.cpp20 enum class FunctionType { enum
86 case FunctionType::Null: in MakeFunction()
92 case FunctionType::MemberPointer: in MakeFunction()
112 MakeFunction(FunctionType()); in run()
122 template <class FunctionType>
136 template <class FunctionType>
170 template <class FunctionType>
183 template <class FunctionType>
194 static bool skip() { return FunctionType() == ::FunctionType::Null; } in skip()
199 template <class FunctionType>
[all …]
/llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/
H A DCodeGen.cpp140 case FunctionType::MEMCPY: in getCtx()
149 case FunctionType::MEMCMP: in getCtx()
158 case FunctionType::MEMSET: in getCtx()
167 case FunctionType::BZERO: in getCtx()
379 case FunctionType::BCMP: in operator <<()
383 case FunctionType::BZERO: in operator <<()
456 FunctionType ForType;
460 FunctionType ForType;
475 case FunctionType::BCMP: in operator <<()
489 case FunctionType::BCMP: in operator <<()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/AsyncToLLVM/
H A DAsyncToLLVM.cpp84 return FunctionType::get(ctx, {ref, count}, {}); in addOrDropRefFunctionType()
88 return FunctionType::get(ctx, {}, {TokenType::get(ctx)}); in createTokenFunctionType()
94 return FunctionType::get(ctx, {i64}, {value}); in createValueFunctionType()
105 return FunctionType::get(ctx, {value}, {storage}); in getValueStorageFunctionType()
109 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in emplaceTokenFunctionType()
114 return FunctionType::get(ctx, {value}, {}); in emplaceValueFunctionType()
123 return FunctionType::get(ctx, {value}, {}); in setValueErrorFunctionType()
134 return FunctionType::get(ctx, {value}, {i1}); in isValueErrorFunctionType()
148 return FunctionType::get(ctx, {value}, {}); in awaitValueFunctionType()
158 return FunctionType::get(ctx, {hdl, resume}, {}); in executeFunctionType()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DVerifierTest.cpp28 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); in TEST()
51 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); in TEST()
99 FunctionType *FTy = FunctionType::get(Type::getInt32Ty(C), /*isVarArg=*/false); in TEST()
117 FunctionType *FTy = FunctionType::get(Type::getInt32Ty(C), /*isVarArg=*/false); in TEST()
188 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); in TEST()
224 auto *F = Function::Create(FunctionType::get(Type::getVoidTy(C), false), in TEST()
259 FunctionType *FTy1 = in TEST()
260 FunctionType::get(Type::getVoidTy(C1), /*isVarArg=*/false); in TEST()
265 FunctionType *FTy2 = in TEST()
266 FunctionType::get(Type::getVoidTy(C2), /*isVarArg=*/false); in TEST()
H A DFunctionTest.cpp20 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
50 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
126 Function::Create(llvm::FunctionType::get(llvm::Type::getVoidTy(C), false), in TEST()
143 FunctionType *FuncType(FunctionType::get(VoidType, false)); in TEST()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DLoopGeneratorsGOMP.cpp32 Type *Params[] = {PointerType::getUnqual(FunctionType::get( in createCallSpawnThreads()
40 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallSpawnThreads()
63 FunctionType *FT = in prepareSubFnDefinition()
64 FunctionType::get(Builder.getVoidTy(), {Builder.getInt8PtrTy()}, false); in prepareSubFnDefinition()
184 FunctionType *Ty = FunctionType::get(Builder.getInt8Ty(), Params, false); in createCallGetWorkItem()
205 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), false); in createCallJoinThreads()
222 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), false); in createCallCleanupThread()
H A DLoopGeneratorsKMP.cpp33 KMPCMicroTy = FunctionType::get(Builder.getVoidTy(), MicroParams, true); in createCallSpawnThreads()
45 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, true); in createCallSpawnThreads()
86 FunctionType *FT = FunctionType::get(Builder.getVoidTy(), Arguments, false); in prepareSubFnDefinition()
329 FunctionType *Ty = FunctionType::get(Builder.getInt32Ty(), Params, false); in createCallGlobalThreadNum()
352 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallPushNumThreads()
387 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallStaticInit()
418 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallStaticFini()
450 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallDispatchInit()
491 FunctionType *Ty = FunctionType::get(Builder.getInt32Ty(), Params, false); in createCallDispatchNext()
H A DRuntimeDebugBuilder.cpp27 FunctionType *Ty = FunctionType::get( in getVPrintF()
48 FunctionType *Ty = FunctionType::get( in getAddressSpaceCast()
251 FunctionType *Ty = FunctionType::get(Builder.getInt32Ty(), true); in getPrintF()
276 FunctionType *Ty = in createFlush()
277 FunctionType::get(Builder.getInt32Ty(), Builder.getInt8PtrTy(), false); in createFlush()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DLowLevelIntrinsics.cpp29 mlir::FunctionType::get(builder.getContext(), args, llvm::None); in getLlvmMemcpy()
39 mlir::FunctionType::get(builder.getContext(), args, llvm::None); in getLlvmMemmove()
49 mlir::FunctionType::get(builder.getContext(), args, llvm::None); in getLlvmMemset()
57 auto reallocTy = mlir::FunctionType::get(builder.getContext(), args, {ptrTy}); in getRealloc()
65 mlir::FunctionType::get(builder.getContext(), llvm::None, {ptrTy}); in getLlvmStackSave()
74 mlir::FunctionType::get(builder.getContext(), {ptrTy}, llvm::None); in getLlvmStackRestore()
82 auto funcTy = mlir::FunctionType::get(builder.getContext(), in getLlvmInitTrampoline()
91 auto funcTy = mlir::FunctionType::get(builder.getContext(), {ptrTy}, {ptrTy}); in getLlvmAdjustTrampoline()
/llvm-project-15.0.7/libc/benchmarks/automemcpy/unittests/
H A DCodeGenTest.cpp28 {FunctionType::MEMCPY, llvm::None, llvm::None, llvm::None, llvm::None, in TEST()
30 {FunctionType::MEMCPY, Contiguous{{0, 4}}, Overlap{{4, 256}}, in TEST()
33 {FunctionType::MEMCMP, Contiguous{{0, 2}}, Overlap{{2, 64}}, llvm::None, in TEST()
36 {FunctionType::MEMSET, Contiguous{{0, 2}}, Overlap{{2, 256}}, llvm::None, in TEST()
39 {FunctionType::MEMSET, Contiguous{{0, 2}}, Overlap{{2, 256}}, llvm::None, in TEST()
42 {FunctionType::BZERO, Contiguous{{0, 4}}, Overlap{{4, 128}}, llvm::None, in TEST()
H A DResultAnalyzerTest.cpp23 static constexpr FunctionId Foo1 = {"memcpy1", FunctionType::MEMCPY}; in TEST()
43 static constexpr FunctionId Foo1 = {"memcpy1", FunctionType::MEMCPY}; in TEST()
63 static constexpr FunctionId Foo1 = {"memcpy1", FunctionType::MEMCPY}; in TEST()
65 static constexpr FunctionId Foo2 = {"memcpy2", FunctionType::MEMCPY}; in TEST()
81 static constexpr FunctionId Foo1 = {"memcpy1", FunctionType::MEMCPY}; in TEST()
82 static constexpr FunctionId Foo2 = {"memcpy2", FunctionType::MEMCPY}; in TEST()
83 static constexpr FunctionId Foo3 = {"memcpy3", FunctionType::MEMCPY}; in TEST()
115 static constexpr FunctionId Foo1 = {"memcpy1", FunctionType::MEMCPY}; in TEST()
116 static constexpr FunctionId Foo2 = {"memcpy2", FunctionType::MEMCPY}; in TEST()
117 static constexpr FunctionId Foo3 = {"memcpy3", FunctionType::MEMCPY}; in TEST()
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/
H A DMCJITTest.cpp102 startFunction(M.get(), FunctionType::get(Builder.getInt32Ty(), {}, false), in TEST_F()
168 M.get(), FunctionType::get(Builder.getInt32Ty(), {}, false), "Inner"); in TEST_F()
176 FunctionType::get(Builder.getInt32Ty(), {}, false), in TEST_F()
200 M.get(), FunctionType::get(Builder.getVoidTy(), {}, false), "_exit"); in TEST_F()
215 M.get(), FunctionType::get(Builder.getInt32Ty(), {}, false), in TEST_F()
217 startFunction(M.get(), FunctionType::get(Builder.getInt32Ty(), {}, false), in TEST_F()
253 FunctionType *Int32VoidFnTy = in TEST_F()
254 FunctionType::get(Builder.getInt32Ty(), {}, false); in TEST_F()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDeclCXX.cpp237 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false); in createAtExitStub()
284 llvm::FunctionType *StubTy = in createTLSAtExitStub()
337 llvm::FunctionType *atexitTy = in registerGlobalDtorWithAtExit()
364 llvm::FunctionType *unatexitTy = in unregisterGlobalDtorWithUnAtExit()
530 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc()
655 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXModuleInitFunc()
694 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXModuleInitFunc()
784 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc()
802 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc()
898 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalCleanUpFunc()
[all …]
H A DCodeGenTypes.h23 class FunctionType; variable
136 llvm::FunctionType *GetFunctionType(const CGFunctionInfo &Info);
138 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
143 bool isFuncTypeConvertible(const FunctionType *FT);
199 const FunctionType *Ty,
232 const FunctionType *type);
266 FunctionType::ExtInfo info,
H A DCGCUDANV.cpp76 llvm::FunctionType *getRegisterGlobalsFnTy() const;
77 llvm::FunctionType *getCallbackFnTy() const;
78 llvm::FunctionType *getRegisterLinkedBinaryFnTy() const;
233 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn()
377 llvm::FunctionType::get(IntTy, in emitDeviceStubBodyNew()
407 llvm::FunctionType *FTy = cast<llvm::FunctionType>(Ty); in emitDeviceStubBodyNew()
577 llvm::FunctionType::get( in makeRegisterGlobalsFn()
584 llvm::FunctionType::get( in makeRegisterGlobalsFn()
721 llvm::FunctionType::get(VoidTy, false), in makeModuleCtorFunction()
918 llvm::FunctionType *AtExitTy = in makeModuleCtorFunction()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDerivedTypes.h103 class FunctionType : public Type {
107 FunctionType(const FunctionType &) = delete;
108 FunctionType &operator=(const FunctionType &) = delete;
111 static FunctionType *get(Type *Result,
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()
173 FunctionCallee(FunctionType *FnTy, Value *Callee) in FunctionCallee()
182 FunctionType *getFunctionType() { return FnTy; } in getFunctionType()
[all …]
/llvm-project-15.0.7/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()
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()
/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp56 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()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h18 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()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/IR/
H A DFuncOps.cpp161 FunctionType CallOp::getCalleeType() { in getCalleeType()
162 return FunctionType::get(getContext(), getOperandTypes(), getResultTypes()); in getCalleeType()
216 return value.isa<FlatSymbolRefAttr>() && type.isa<FunctionType>(); in isBuildableWith()
223 FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, in create()
230 FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, in create()
235 FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, in create()
244 FunctionType type, ArrayRef<NamedAttribute> attrs, in build()
307 FunctionType oldType = getFunctionType(); in clone()
319 newFunc.setType(FunctionType::get(oldType.getContext(), newInputs, in clone()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DSparsePropagation.cpp255 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
257 Function *G = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
291 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
293 Function *G = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
332 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
334 Function *G = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
374 Function::Create(FunctionType::get(Builder.getInt64Ty(), in TEST_F()
414 Function::Create(FunctionType::get(Builder.getInt64Ty(), in TEST_F()
457 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
460 FunctionType::get(Builder.getVoidTy(), in TEST_F()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/
H A DNumeric.cpp32 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
43 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
55 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
66 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
77 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
88 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
123 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
134 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
146 return mlir::FunctionType::get(ctx, {fltTy, intTy}, {fltTy}); in getTypeModel()
193 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DValueMapperTest.cpp175 FunctionType *FTy = in TEST()
176 FunctionType::get(Type::getVoidTy(C), Type::getInt8Ty(C), false); in TEST()
234 FunctionType *FTy = in TEST()
235 FunctionType::get(Type::getVoidTy(C), Type::getInt8Ty(C), false); in TEST()
269 FunctionType *FTy = in TEST()
270 FunctionType::get(Type::getVoidTy(C), Type::getInt8Ty(C), false); in TEST()
288 FunctionType *FTy = in TEST()
289 FunctionType::get(Type::getVoidTy(C), Type::getInt8Ty(C), false); in TEST()
330 FunctionType *FTy = in TEST()
331 FunctionType::get(Type::getVoidTy(C), Type::getInt8Ty(C), false); in TEST()
[all …]
/llvm-project-15.0.7/llvm/unittests/Target/DirectX/
H A DPointerTypeAnalysisTests.cpp57 Type *FnTy = FunctionType::get(Type::getInt64Ty(Context), {I8Ptr}, false); in TEST()
79 Type *FnTy = FunctionType::get(Type::getInt32Ty(Context), {I32Ptr}, false); in TEST()
101 Type *FnTy = FunctionType::get(Type::getInt32Ty(Context), {I32Ptr}, false); in TEST()
124 Type *FnTy = FunctionType::get(I64Ptr, {I64Ptr}, false); in TEST()
150 Type *FnTy = FunctionType::get(Type::getInt64Ty(Context), {I64PtrPtr}, false); in TEST()
179 Type *FnTy = FunctionType::get(Type::getInt64Ty(Context), {I8Ptr}, false); in TEST()

12345678910>>...23