Home
last modified time | relevance | path

Searched refs:LLVMFunctionType (Results 1 – 25 of 48) sorted by relevance

12

/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DLLVMTypes.cpp68 LLVMPointerType, LLVMFunctionType>()) && in getPrimitiveSizeInBits()
119 return cast<LLVMFunctionType>().getParamType(argIdx); in getFunctionParamType()
123 return cast<LLVMFunctionType>().getNumParams(); in getFunctionNumParams()
127 return cast<LLVMFunctionType>().getReturnType(); in getFunctionResultType()
130 bool LLVMType::isFunctionTy() { return isa<LLVMFunctionType>(); } in isFunctionTy()
133 return cast<LLVMFunctionType>().isVarArg(); in isFunctionVarArg()
205 return LLVMFunctionType::get(result, params, isVarArg); in getFunctionTy()
263 LLVMFunctionType, LLVMTokenType, LLVMScalableVectorType>(); in isValidElementType()
292 bool LLVMFunctionType::isValidArgumentType(LLVMType type) { in isValidArgumentType()
293 return !type.isa<LLVMVoidType, LLVMFunctionType>(); in isValidArgumentType()
[all …]
DLLVMTypeSyntax.cpp40 .Case<LLVMFunctionType>([&](Type) { return "func"; }) in getTypeKeyword()
107 static void printFunctionType(llvm::raw_ostream &os, LLVMFunctionType funcType, in printFunctionType()
170 if (auto funcType = type.dyn_cast<LLVMFunctionType>()) in printTypeImpl()
196 static LLVMFunctionType parseFunctionType(DialectAsmParser &parser, in parseFunctionType()
202 return LLVMFunctionType(); in parseFunctionType()
207 return LLVMFunctionType::getChecked(loc, returnType, {}, in parseFunctionType()
209 return LLVMFunctionType(); in parseFunctionType()
217 return LLVMFunctionType(); in parseFunctionType()
218 return LLVMFunctionType::getChecked(loc, returnType, argTypes, in parseFunctionType()
224 return LLVMFunctionType(); in parseFunctionType()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITCAPITest.cpp171 LLVMFunctionType(LLVMInt32Type(), nullptr,0, 0)); in buildSimpleFunction()
193 LLVMFunctionType(LLVMVoidType(), stackmapParamTypes, 2, 1)); in buildFunctionThatUsesStackmap()
197 LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0)); in buildFunctionThatUsesStackmap()
226 LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0)); in buildModuleWithCodeAndData()
245 Module, "setGlobal", LLVMFunctionType(LLVMVoidType(), ParamTypes, 1, 0)); in buildModuleWithCodeAndData()
480 LLVMTypeRef FunctionType = LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0); in TEST_F()
/external/llvm-project/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITCAPITest.cpp171 LLVMFunctionType(LLVMInt32Type(), nullptr,0, 0)); in buildSimpleFunction()
193 LLVMFunctionType(LLVMVoidType(), stackmapParamTypes, 2, 1)); in buildFunctionThatUsesStackmap()
197 LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0)); in buildFunctionThatUsesStackmap()
226 LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0)); in buildModuleWithCodeAndData()
245 Module, "setGlobal", LLVMFunctionType(LLVMVoidType(), ParamTypes, 1, 0)); in buildModuleWithCodeAndData()
479 LLVMTypeRef FunctionType = LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0); in TEST_F()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsReflectProcessSymbols/
DOrcV2CBindingsReflectProcessSymbols.c62 LLVMFunctionType(LLVMInt32Type(), I32BinOpParamTypes, 2, 0); in createDemoModule()
69 LLVMFunctionType(LLVMInt32Type(), MulAddParamTypes, 3, 0); in createDemoModule()
/external/llvm-project/mlir/include/mlir/Dialect/LLVMIR/
DLLVMTypes.h298 class LLVMFunctionType
299 : public Type::TypeBase<LLVMFunctionType, LLVMType,
316 static LLVMFunctionType get(LLVMType result, ArrayRef<LLVMType> arguments,
318 static LLVMFunctionType getChecked(Location loc, LLVMType result,
/external/llvm-project/mlir/lib/Target/LLVMIR/
DTypeTranslation.cpp75 LLVM::LLVMFunctionType, LLVM::LLVMPointerType, in translateType()
96 llvm::Type *translate(LLVM::LLVMFunctionType type) { in translate()
250 return LLVM::LLVMFunctionType::get(translateType(type->getReturnType()), in translate()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_coro.c171 LLVMTypeRef malloc_type = LLVMFunctionType(mem_ptr_type, &int32_type, 1, 0); in lp_build_coro_declare_malloc_hooks()
173 …LLVMTypeRef free_type = LLVMFunctionType(LLVMVoidTypeInContext(gallivm->context), &mem_ptr_type, 1… in lp_build_coro_declare_malloc_hooks()
Dlp_bld_printf.c66 LLVMTypeRef printf_type = LLVMFunctionType(LLVMInt32TypeInContext(context), NULL, 0, 1); in lp_build_print_args()
Dlp_bld_const.c476 function_type = LLVMFunctionType(ret_type, arg_types, num_args, 0); in lp_build_const_func_pointer()
Dlp_bld_intr.c113 function_type = LLVMFunctionType(ret_type, arg_types, num_args, 0); in lp_declare_intrinsic()
/external/skqp/src/sksl/
DSkSLJIT.cpp143 fFunctions[&f] = LLVMAddFunction(fModule, realName, LLVMFunctionType(returnType, in addBuiltinFunction()
161 fFunctions[f] = LLVMAddFunction(fModule, realName, LLVMFunctionType( in addBuiltinFunction()
1733 LLVMTypeRef stageFuncType = LLVMFunctionType(returnType, parameterTypes, 12, false); in compileStageFunction()
1774 LLVMFunctionType(returnType, parameterTypes.data(), in compileFunction()
1811 LLVMFunctionType(fInt1Type, fold2Params, 1, false)); in createModule()
1813 LLVMFunctionType(fInt1Type, fold2Params, 1, false)); in createModule()
1816 LLVMFunctionType(fInt1Type, fold3Params, 1, false)); in createModule()
1818 LLVMFunctionType(fInt1Type, fold3Params, 1, false)); in createModule()
1821 LLVMFunctionType(fInt1Type, fold4Params, 1, false)); in createModule()
1823 LLVMFunctionType(fInt1Type, fold4Params, 1, false)); in createModule()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dtf_framework_legalize_to_llvm.cc132 return LLVM::LLVMFunctionType::get( in GetFuncType()
240 return LLVM::LLVMFunctionType::get(getVoidType(), in GetFuncType()
279 return LLVM::LLVMFunctionType::get( in GetFuncType()
Dtf_kernel_to_llvm_pass.cc202 auto function_type = LLVM::LLVMFunctionType::get( in matchAndRewrite()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_printf.c65 …LLVMValueRef func = LLVMAddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(… in add_printf_test()
Dlp_test_arit.c333 LLVMFunctionType(LLVMVoidTypeInContext(context), in build_unary_test_func()
Dlp_test_format.c108 LLVMFunctionType(LLVMVoidTypeInContext(context), in add_fetch_rgba_test()
Dlp_test_conv.c120 LLVMFunctionType(LLVMVoidTypeInContext(context), in add_conv_test()
Dlp_test_blend.c163 …func = LLVMAddFunction(module, "test", LLVMFunctionType(LLVMVoidTypeInContext(context), args, 5, 0… in add_blend_test()
/external/llvm/tools/llvm-c-test/
Dcalc.c121 LLVMTypeRef Fty = LLVMFunctionType(I64ty, &I64Ptrty, 1, 0); in handle_line()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
DOrcV2CBindingsBasicUsage.c39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/external/llvm-project/llvm/tools/llvm-c-test/
Dcalc.c121 LLVMTypeRef Fty = LLVMFunctionType(I64ty, &I64Ptrty, 1, 0); in handle_line()
Ddebuginfo.c101 LLVMTypeRef FooFuncTy = LLVMFunctionType(LLVMInt64Type(), FooParamTys, 3, 0); in llvm_test_dibuilder()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
DOrcV2CBindingsRemovableCode.c39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/
DOrcV2CBindingsAddObjectFile.c34 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()

12