18#ifndef LLZK_C_DIALECT_FUNCTION_H
19#define LLZK_C_DIALECT_FUNCTION_H
24#include <mlir-c/Support.h>
46 MlirLocation loc, MlirStringRef name, MlirType type, intptr_t nAttrs,
47 MlirNamedAttribute
const *attrs, intptr_t nArgAttrs, MlirAttribute
const *argAttrs
51static inline MlirOperation llzkFunction_FuncDefOpCreateWithAttrs(
52 MlirLocation loc, MlirStringRef name, MlirType type, intptr_t nAttrs,
53 MlirNamedAttribute
const *attrs
56 loc, name, type, nAttrs, attrs, 0, NULL
62static inline MlirOperation llzkFunction_FuncDefOpCreateWithArgAttrs(
63 MlirLocation loc, MlirStringRef name, MlirType type, intptr_t nArgAttrs,
64 MlirAttribute
const *argAttrs
67 loc, name, type, 0, NULL, nArgAttrs, argAttrs
72static inline MlirOperation
73llzkFunction_FuncDefOpCreateWithoutAttrs(MlirLocation loc, MlirStringRef name, MlirType type) {
74 return llzkFunction_FuncDefOpCreateWithAttrs(loc, name, type, 0, NULL);
83 Function, CallOp, intptr_t numResults, MlirType
const *results, MlirAttribute name,
84 intptr_t numOperands, MlirValue
const *operands
89 Function, CallOp, ToCallee, MlirOperation callee, intptr_t numOperands,
90 MlirValue
const *operands
95 Function, CallOp, WithMapOperands, intptr_t numResults, MlirType
const *results,
97 MlirValue
const *argOperands
102 Function, CallOp, ToCalleeWithMapOperands, MlirOperation callee,
MLIR_CAPI_EXPORTED MlirOperation llzkFunction_FuncDefOpCreateWithAttrsAndArgAttrs(MlirLocation loc, MlirStringRef name, MlirType type, intptr_t nAttrs, MlirNamedAttribute const *attrs, intptr_t nArgAttrs, MlirAttribute const *argAttrs)
Creates a FuncDefOp with the given attributes and argument attributes.
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Function, llzk__function)
Get reference to the LLZK function dialect.
#define LLZK_DECLARE_SUFFIX_OP_BUILD_METHOD(dialect, op, suffix,...)
#define LLZK_DECLARE_OP_BUILD_METHOD(dialect, op,...)
Encapsulates the arguments related to affine maps that are common in operation constructors that supp...