LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Types.td
Go to the documentation of this file.
1//===-- Types.td -------------------------------------------*- tablegen -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2025 Veridise Inc.
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLZK_FELT_TYPES
11#define LLZK_FELT_TYPES
12
13include "llzk/Dialect/Felt/IR/Dialect.td"
14
15include "mlir/IR/AttrTypeBase.td"
16include "mlir/IR/BuiltinTypes.td"
17include "mlir/IR/BuiltinTypeInterfaces.td"
18include "mlir/Interfaces/MemorySlotInterfaces.td"
19
20def LLZK_FeltType : TypeDef<FeltDialect, "Felt"> {
21 let mnemonic = "type";
22 let summary = "finite field element";
23 let description = [{}];
24
25 let extraClassDeclaration = [{
26 static ::llzk::felt::FeltType get(::mlir::MLIRContext *context) {
27 return Base::get(context);
28 }
29 }];
30}
31
32#endif // LLZK_FELT_TYPES