From 9ca3a326001fc4ec8e7e41aafecfb1a458a2f750 Mon Sep 17 00:00:00 2001 From: "enzyme-ci-bot[bot]" <78882869+enzyme-ci-bot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:40:23 +0000 Subject: [PATCH] Regenerate MLIR Bindings --- src/mlir/libMLIR_h.jl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/mlir/libMLIR_h.jl b/src/mlir/libMLIR_h.jl index 5f5c0feeb1..c6cb6373af 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)