diff --git a/src/mlir/libMLIR_h.jl b/src/mlir/libMLIR_h.jl index 5f5c0feeb..c6cb6373a 100644 --- a/src/mlir/libMLIR_h.jl +++ b/src/mlir/libMLIR_h.jl @@ -7156,6 +7156,24 @@ function mlirLLVMFunctionTypeGet(resultType, nArgumentTypes, argumentTypes, isVa )::MlirType end +""" + mlirLLVMFunctionTypeGetNumInputs(type) + +Returns the number of input types. +""" +function mlirLLVMFunctionTypeGetNumInputs(type) + @ccall mlir_c.mlirLLVMFunctionTypeGetNumInputs(type::MlirType)::intptr_t +end + +""" + mlirLLVMFunctionTypeGetInput(type, pos) + +Returns the pos-th input type. +""" +function mlirLLVMFunctionTypeGetInput(type, pos) + @ccall mlir_c.mlirLLVMFunctionTypeGetInput(type::MlirType, pos::intptr_t)::MlirType +end + """ mlirTypeIsALLVMStructType(type)