Home
last modified time | relevance | path

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

12345678910>>...25

/llvm-project/libcxx/benchmarks/
H A Dfunction.bench.cpp
/llvm-project/libc/benchmarks/automemcpy/lib/
H A DCodeGen.cpp
/llvm-project/flang/lib/Optimizer/Builder/
H A DLowLevelIntrinsics.cpp29 mlir::FunctionType::get(builder.getContext(), args, std::nullopt); in getLlvmMemcpy()
39 mlir::FunctionType::get(builder.getContext(), args, std::nullopt); in getLlvmMemmove()
49 mlir::FunctionType::get(builder.getContext(), args, std::nullopt); in getLlvmMemset()
57 auto reallocTy = mlir::FunctionType::get(builder.getContext(), args, {ptrTy}); in getRealloc()
65 mlir::FunctionType::get(builder.getContext(), std::nullopt, {int32Ty}); in getLlvmGetRounding()
74 mlir::FunctionType::get(builder.getContext(), {int32Ty}, std::nullopt); in getLlvmSetRounding()
82 auto funcTy = mlir::FunctionType::get(builder.getContext(), in getLlvmStackSave()
91 auto funcTy = mlir::FunctionType::get(builder.getContext(), {ptrTy}, {ptrTy}); in getLlvmStackRestore()
99 mlir::FunctionType::get(builder.getContext(), {int32Ty}, {int32Ty}); in getLlvmInitTrampoline()
108 mlir::FunctionType
[all...]
/llvm-project/mlir/lib/Conversion/AsyncToLLVM/
H A DAsyncToLLVM.cpp87 static FunctionType addOrDropRefFunctionType(MLIRContext *ctx) { in addOrDropRefFunctionType()
90 return FunctionType::get(ctx, {ref, count}, {}); in addOrDropRefFunctionType()
93 static FunctionType createTokenFunctionType(MLIRContext *ctx) { in createTokenFunctionType()
94 return FunctionType::get(ctx, {}, {TokenType::get(ctx)}); in createTokenFunctionType()
97 static FunctionType createValueFunctionType(MLIRContext *ctx) { in createValueFunctionType()
100 return FunctionType::get(ctx, {i64}, {value}); in createValueFunctionType()
103 static FunctionType createGroupFunctionType(MLIRContext *ctx) { in createGroupFunctionType()
105 return FunctionType::get(ctx, {i64}, {GroupType::get(ctx)}); in createGroupFunctionType()
108 static FunctionType getValueStorageFunctionType(MLIRContext *ctx) { in getValueStorageFunctionType()
110 return FunctionType in getValueStorageFunctionType()
[all...]
/llvm-project/llvm/unittests/IR/
H A DVerifierTest.cpp29 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); in TEST()
52 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); in TEST()
100 FunctionType *FTy = FunctionType::get(Type::getInt32Ty(C), /*isVarArg=*/false); in TEST()
122 FunctionType *FTy = in TEST()
123 FunctionType::get(Type::getFloatTy(C), /*isVarArg=*/false); in TEST()
153 FunctionType *FTy = FunctionType in TEST()
[all...]
H A DVFABIDemanglerTest.cpp27 /// and a scalar FunctionType, which are used by tests to check that:
30 /// of arguments in the scalar function passed as FunctionType string.
49 ScalarFTy = dyn_cast<FunctionType>(Ty); in reset()
60 FunctionType *ScalarFTy = nullptr;
76 /// \p ScalarFTyStr FunctionType string to get the signature of the scalar
96 FunctionType *getFunctionType() { in getFunctionType()
103 FunctionType *FTyMaskVLen2_i32 = FunctionType::get(
111 FunctionType *FTyNoMaskVLen2_i32 = FunctionType
[all...]
/llvm-project/polly/lib/CodeGen/
H A DLoopGeneratorsGOMP.cpp33 Type *Params[] = {PointerType::getUnqual(FunctionType::get( in createCallSpawnThreads()
41 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallSpawnThreads()
64 FunctionType *FT = in prepareSubFnDefinition()
65 FunctionType::get(Builder.getVoidTy(), {Builder.getPtrTy()}, false); in prepareSubFnDefinition()
187 FunctionType *Ty = FunctionType::get(Builder.getInt8Ty(), Params, false); in createCallGetWorkItem()
208 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), false); in createCallJoinThreads()
225 FunctionType *T in createCallCleanupThread()
[all...]
H A DLoopGeneratorsKMP.cpp33 KMPCMicroTy = FunctionType::get(Builder.getVoidTy(), MicroParams, true); in createCallSpawnThreads()
42 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, true); in createCallSpawnThreads()
80 FunctionType *FT = FunctionType::get(Builder.getVoidTy(), Arguments, false); in prepareSubFnDefinition()
319 FunctionType *Ty = FunctionType::get(Builder.getInt32Ty(), Params, false); in createCallGlobalThreadNum()
339 FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); in createCallPushNumThreads()
372 FunctionType *T in createCallStaticInit()
[all...]
H A DRuntimeDebugBuilder.cpp36 FunctionType *Ty = FunctionType::get( in getVPrintF()
124 FunctionType *Ty = FunctionType::get(Builder.getInt32Ty(), true); in getPrintF()
149 FunctionType *Ty = in createFlush()
150 FunctionType::get(Builder.getInt32Ty(), Builder.getPtrTy(), false); in createFlush()
/llvm-project/libc/benchmarks/automemcpy/unittests/
H A DCodeGenTest.cpp
H A DResultAnalyzerTest.cpp
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.h18 class FunctionType; variable
355 virtual FunctionType *getFunctionType(const Module &M) const = 0;
371 explicit AMDGPULibFunc(EFuncId Id, FunctionType *FT, bool SignedInts);
374 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT);
409 bool isCompatibleSignature(const Module &M, const FunctionType *FuncTy) const;
418 FunctionType *getFunctionType(const Module &M) const {
440 explicit AMDGPUMangledLibFunc(EFuncId id, FunctionType *FT,
445 FunctionType *getFunctionType(const Module &M) const override;
465 FunctionType *FuncTy;
469 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *F in mangle()
[all...]
/llvm-project/flang/lib/Optimizer/Builder/Runtime/
H A DTemporaryStack.cpp20 mlir::FunctionType funcType = func.getFunctionType(); in genCreateValueStack()
33 mlir::FunctionType funcType = func.getFunctionType(); in genPushValue()
44 mlir::FunctionType funcType = func.getFunctionType(); in genValueAt()
55 mlir::FunctionType funcType = func.getFunctionType(); in genDestroyValueStack()
65 mlir::FunctionType funcType = func.getFunctionType(); in genCreateDescriptorStack()
80 mlir::FunctionType funcType = func.getFunctionType(); in genPushDescriptor()
92 mlir::FunctionType funcType = func.getFunctionType(); in genDescriptorAt()
104 mlir::FunctionType funcType = func.getFunctionType(); in genDestroyDescriptorStack()
H A DNumeric.cpp31 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
42 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
54 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
65 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
77 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
88 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
99 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
110 return mlir::FunctionType::get(ctx, {ty}, {ty}); in getTypeModel()
123 return mlir::FunctionType::get(ctx, {fltTy, fltTy, strTy, intTy}, in getTypeModel()
137 return mlir::FunctionType in getTypeModel()
[all...]
/llvm-project/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/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 *unatexitT in unregisterGlobalDtorWithUnAtExit()
1112 GenerateCXXGlobalCleanUpFunc(llvm::Function * Fn,ArrayRef<std::tuple<llvm::FunctionType *,llvm::WeakTrackingVH,llvm::Constant * >> DtorsOrStermFinalizers) GenerateCXXGlobalCleanUpFunc() argument
[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,
/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp109 static Function *createWrapper(Function *F, FunctionType *Ty) { in createWrapper()
122 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper()
123 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper()
221 static bool shouldFixMainFunction(FunctionType *FuncTy, FunctionType *MainTy) { in shouldFixMainFunction()
253 FunctionType *MainTy = FunctionType::get(Type::getInt32Ty(C), MainArgTys, in runOnModule()
266 DenseMap<std::pair<Function *, FunctionType *>, Function *> Wrappers; in runOnModule()
271 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h105 class FunctionType : public Type {
106 FunctionType(Type *Result, ArrayRef<Type*> Params, bool IsVarArgs);
109 FunctionType(const FunctionType &) = delete;
110 FunctionType &operator=(const FunctionType &) = delete;
112 /// This static method is the primary way of constructing a FunctionType.
113 static FunctionType *get(Type *Result,
116 /// Create a FunctionType taking no parameters.
117 static FunctionType *ge
[all...]
H A DVFABIDemangler.h100 static VFShape getScalarShape(const FunctionType *FTy) { in getScalarShape()
108 static VFShape get(const FunctionType *FTy, ElementCount EC, in get()
178 /// \param FTy -> FunctionType of the scalar function which we're trying to find
184 const FunctionType *FTy);
200 /// Constructs a FunctionType by applying vector function information to the
206 /// \returns a pointer to a newly created vector FunctionType
207 FunctionType *createFunctionType(const VFInfo &Info,
208 const FunctionType *ScalarFTy);
/llvm-project/mlir/lib/Dialect/Func/IR/
H A DFuncOps.cpp99 FunctionType CallOp::getCalleeType() { in getCalleeType()
100 return FunctionType::get(getContext(), getOperandTypes(), getResultTypes()); in getCalleeType()
154 return llvm::isa<FlatSymbolRefAttr>(value) && llvm::isa<FunctionType>(type); in isBuildableWith()
161 FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, in create()
168 FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, in create()
173 FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, in create()
182 FunctionType type, ArrayRef<NamedAttribute> attrs, in build()
249 FunctionType oldType = getFunctionType(); in clone()
261 newFunc.setType(FunctionType::get(oldType.getContext(), newInputs, in clone()
/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 …]
/llvm-project/llvm/unittests/Analysis/
H A DSparsePropagation.cpp257 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
259 Function *G = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
293 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
295 Function *G = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
334 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
336 Function *G = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
376 Function::Create(FunctionType::get(Builder.getInt64Ty(), in TEST_F()
416 Function::Create(FunctionType::get(Builder.getInt64Ty(), in TEST_F()
459 Function *F = Function::Create(FunctionType::get(Builder.getVoidTy(), false), in TEST_F()
462 FunctionType in TEST_F()
[all...]
/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()
342 auto *RegFuncTy = FunctionType::get( in createRegisterGlobalsFunction()
351 auto *RegVarTy = FunctionType::get( in createRegisterGlobalsFunction()
360 FunctionType *RegManagedVarTy = in createRegisterGlobalsFunction()
361 FunctionType::get(Type::getVoidTy(C), in createRegisterGlobalsFunction()
370 FunctionType *RegSurfaceT in createRegisterGlobalsFunction()
[all...]
/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()

12345678910>>...25