/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/ |
D | LLVMTypes.cpp | 68 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 …]
|
D | LLVMTypeSyntax.cpp | 40 .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/ |
D | MCJITCAPITest.cpp | 171 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/ |
D | MCJITCAPITest.cpp | 171 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/ |
D | OrcV2CBindingsReflectProcessSymbols.c | 62 LLVMFunctionType(LLVMInt32Type(), I32BinOpParamTypes, 2, 0); in createDemoModule() 69 LLVMFunctionType(LLVMInt32Type(), MulAddParamTypes, 3, 0); in createDemoModule()
|
/external/llvm-project/mlir/include/mlir/Dialect/LLVMIR/ |
D | LLVMTypes.h | 298 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/ |
D | TypeTranslation.cpp | 75 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/ |
D | lp_bld_coro.c | 171 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()
|
D | lp_bld_printf.c | 66 LLVMTypeRef printf_type = LLVMFunctionType(LLVMInt32TypeInContext(context), NULL, 0, 1); in lp_build_print_args()
|
D | lp_bld_const.c | 476 function_type = LLVMFunctionType(ret_type, arg_types, num_args, 0); in lp_build_const_func_pointer()
|
D | lp_bld_intr.c | 113 function_type = LLVMFunctionType(ret_type, arg_types, num_args, 0); in lp_declare_intrinsic()
|
/external/skqp/src/sksl/ |
D | SkSLJIT.cpp | 143 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/ |
D | tf_framework_legalize_to_llvm.cc | 132 return LLVM::LLVMFunctionType::get( in GetFuncType() 240 return LLVM::LLVMFunctionType::get(getVoidType(), in GetFuncType() 279 return LLVM::LLVMFunctionType::get( in GetFuncType()
|
D | tf_kernel_to_llvm_pass.cc | 202 auto function_type = LLVM::LLVMFunctionType::get( in matchAndRewrite()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_printf.c | 65 …LLVMValueRef func = LLVMAddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(… in add_printf_test()
|
D | lp_test_arit.c | 333 LLVMFunctionType(LLVMVoidTypeInContext(context), in build_unary_test_func()
|
D | lp_test_format.c | 108 LLVMFunctionType(LLVMVoidTypeInContext(context), in add_fetch_rgba_test()
|
D | lp_test_conv.c | 120 LLVMFunctionType(LLVMVoidTypeInContext(context), in add_conv_test()
|
D | lp_test_blend.c | 163 …func = LLVMAddFunction(module, "test", LLVMFunctionType(LLVMVoidTypeInContext(context), args, 5, 0… in add_blend_test()
|
/external/llvm/tools/llvm-c-test/ |
D | calc.c | 121 LLVMTypeRef Fty = LLVMFunctionType(I64ty, &I64Ptrty, 1, 0); in handle_line()
|
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/ |
D | OrcV2CBindingsBasicUsage.c | 39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
/external/llvm-project/llvm/tools/llvm-c-test/ |
D | calc.c | 121 LLVMTypeRef Fty = LLVMFunctionType(I64ty, &I64Ptrty, 1, 0); in handle_line()
|
D | debuginfo.c | 101 LLVMTypeRef FooFuncTy = LLVMFunctionType(LLVMInt64Type(), FooParamTys, 3, 0); in llvm_test_dibuilder()
|
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/ |
D | OrcV2CBindingsRemovableCode.c | 39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/ |
D | OrcV2CBindingsAddObjectFile.c | 34 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|