LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Dialect.cpp
Go to the documentation of this file.
1//===-- Dialect.cpp - Felt dialect implementation ---------------*- C++ -*-===//
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
16
17#include <mlir/IR/DialectImplementation.h>
18
19#include <llvm/ADT/TypeSwitch.h>
20
21// TableGen'd implementation files
23
24#define GET_TYPEDEF_CLASSES
26#define GET_ATTRDEF_CLASSES
28
29//===------------------------------------------------------------------===//
30// FeltDialect
31//===------------------------------------------------------------------===//
32
33auto llzk::felt::FeltDialect::initialize() -> void {
34 // clang-format off
35 addOperations<
36 #define GET_OP_LIST
38 >();
39
40 addTypes<
41 #define GET_TYPEDEF_LIST
43 >();
44
45 addAttributes<
46 #define GET_ATTRDEF_LIST
48 >();
49 // clang-format on
50 addInterfaces<LLZKDialectBytecodeInterface<FeltDialect>>();
51}