18#ifndef LLZK_C_DIALECT_FUNCTION_H
19#define LLZK_C_DIALECT_FUNCTION_H
24#include <mlir-c/Support.h>
46 Function, FuncDefOp, WithAttrsAndArgAttrs, MlirStringRef name, MlirType type, intptr_t nAttrs,
47 MlirNamedAttribute
const *attrs, intptr_t nArgAttrs, MlirAttribute
const *argAttrs
52 Function, FuncDefOp, WithAttrs, MlirStringRef name, MlirType type, intptr_t nAttrs,
53 MlirNamedAttribute
const *attrs
59 Function, FuncDefOp, WithArgAttrs, MlirStringRef name, MlirType type, intptr_t nArgAttrs,
60 MlirAttribute
const *argAttrs
65 Function, FuncDefOp, WithoutAttrs, MlirStringRef name, MlirType type
70MLIR_CAPI_EXPORTED MlirAttribute
77MLIR_CAPI_EXPORTED
void
83MLIR_CAPI_EXPORTED
void
88MLIR_CAPI_EXPORTED MlirAttribute
95MLIR_CAPI_EXPORTED
void
101MLIR_CAPI_EXPORTED
void
110 Function, CallOp, intptr_t numResults, MlirType
const *results, MlirAttribute name,
111 intptr_t numOperands, MlirValue
const *operands
116 Function, CallOp, ToCallee, MlirOperation callee, intptr_t numOperands,
117 MlirValue
const *operands
122 Function, CallOp, WithMapOperands, intptr_t numResults, MlirType
const *results,
124 MlirValue
const *argOperands
129 Function, CallOp, ToCalleeWithMapOperands, MlirOperation callee,
135 Function, CallOp, WithTemplateParams, intptr_t numResults, MlirType
const *results,
136 MlirAttribute name, intptr_t numTemplateParams, MlirAttribute
const *templateParams,
137 intptr_t numArgOperands, MlirValue
const *argOperands
142 Function, CallOp, ToCalleeWithTemplateParams, MlirOperation callee, intptr_t numTemplateParams,
143 MlirAttribute
const *templateParams, intptr_t numArgOperands, MlirValue
const *argOperands
MLIR_CAPI_EXPORTED void llzkFunction_FuncDefOpSetArgName(MlirOperation op, unsigned index, MlirStringRef name)
Sets the function.arg_name attribute for the argument at the given index from a string value.
MLIR_CAPI_EXPORTED void llzkFunction_FuncDefOpSetResNameAttr(MlirOperation op, unsigned index, MlirAttribute attr)
Sets the function.res_name attribute for the result at the given index.
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Function, llzk__function)
Get reference to the LLZK function dialect.
MLIR_CAPI_EXPORTED void llzkFunction_FuncDefOpSetResName(MlirOperation op, unsigned index, MlirStringRef name)
Sets the function.res_name attribute for the result at the given index from a string value.
MLIR_CAPI_EXPORTED MlirAttribute llzkFunction_FuncDefOpGetResNameAttr(MlirOperation op, unsigned index)
Returns the function.res_name StringAttr for the result at the given index, or null if the result has...
MLIR_CAPI_EXPORTED MlirAttribute llzkFunction_FuncDefOpGetArgNameAttr(MlirOperation op, unsigned index)
Returns the function.arg_name StringAttr for the argument at the given index, or null if the argument...
MLIR_CAPI_EXPORTED void llzkFunction_FuncDefOpSetArgNameAttr(MlirOperation op, unsigned index, MlirAttribute attr)
Sets the function.arg_name attribute for the argument at the given index.
#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...