18#ifndef LLZK_C_DIALECT_FELT_H
19#define LLZK_C_DIALECT_FELT_H
41MLIR_CAPI_EXPORTED MlirAttribute
47MLIR_CAPI_EXPORTED MlirAttribute
51MLIR_CAPI_EXPORTED MlirAttribute
57MLIR_CAPI_EXPORTED MlirAttribute
65 MlirContext ctx, MlirStringRef str, MlirStringRef fieldName
70MLIR_CAPI_EXPORTED MlirAttribute
81 MlirContext ctx,
const uint64_t *parts, intptr_t nParts, MlirType type
93 MlirContext ctx,
const uint64_t *parts, intptr_t nParts, MlirStringRef fieldName
103 MlirContext ctx,
const uint64_t *parts, intptr_t nParts
113 MlirContext ctx, MlirIdentifier fieldName, MlirStringRef primeStr
123 MlirContext ctx, MlirIdentifier fieldName,
const uint64_t *parts, intptr_t nParts
MLIR_CAPI_EXPORTED MlirType llzkFelt_FeltTypeGetUnspecified(MlirContext ctx)
Gets the llzk::felt::FeltType without the field specified.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromStringInField(MlirContext ctx, MlirStringRef str, MlirStringRef fieldName)
Creates a llzk::felt::FeltConstAttr from a base-10 representation of a signed integer in the specifie...
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromPartsUnspecified(MlirContext ctx, const uint64_t *parts, intptr_t nParts)
Creates a llzk::felt::FeltConstAttr from 64-bit parts in LSB order.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromInt64InField(MlirContext ctx, int64_t value, MlirStringRef fieldName)
Creates a llzk::felt::FeltConstAttr from a signed 64-bit integer in the specified field.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromString(MlirContext ctx, MlirStringRef str, MlirType type)
Creates a llzk::felt::FeltConstAttr from a base-10 representation of a signed integer in the specifie...
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromStringUnspecified(MlirContext ctx, MlirStringRef str)
Creates a llzk::felt::FeltConstAttr from a base-10 representation of a signed integer in an unspecifi...
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromParts(MlirContext ctx, const uint64_t *parts, intptr_t nParts, MlirType type)
Creates a llzk::felt::FeltConstAttr from 64-bit parts in LSB order.
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Felt, llzk__felt)
Get reference to the LLZK felt dialect.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromPartsInField(MlirContext ctx, const uint64_t *parts, intptr_t nParts, MlirStringRef fieldName)
Creates a llzk::felt::FeltConstAttr from 64-bit parts in LSB order.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromInt64Unspecified(MlirContext ctx, int64_t value)
Creates a llzk::felt::FeltConstAttr from a signed 64-bit integer in an unspecified field.
MLIR_CAPI_EXPORTED MlirType llzkFelt_FeltTypeGetFromRef(MlirContext ctx, MlirStringRef fieldName)
Gets a llzk::felt::FeltType referring to an already defined field.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FieldSpecAttrGetFromParts(MlirContext ctx, MlirIdentifier fieldName, const uint64_t *parts, intptr_t nParts)
Creates a llzk::felt::FieldSpecAttr from 64-bit parts in LSB order.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FeltConstAttrGetFromInt64(MlirContext ctx, int64_t value, MlirType type)
Creates a llzk::felt::FeltConstAttr from a signed 64-bit integer in the specified field.
MLIR_CAPI_EXPORTED MlirAttribute llzkFelt_FieldSpecAttrGetFromString(MlirContext ctx, MlirIdentifier fieldName, MlirStringRef primeStr)
Creates a llzk::felt::FieldSpecAttr from a base-10 representation of the prime.