LLZK 2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Dialect.cpp
Go to the documentation of this file.
1//===-- Dialect.cpp - Dialect method implementations ------------*- 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
11
12#include "llzk/Config/Config.h"
19
20#include <mlir/Bytecode/BytecodeImplementation.h>
21#include <mlir/IR/DialectImplementation.h>
22#include <mlir/Support/LLVM.h>
23
24#include <llvm/ADT/TypeSwitch.h>
25
26// TableGen'd implementation files
28
29// Need a complete declaration of storage classes for below
30#define GET_ATTRDEF_CLASSES
32
33//===------------------------------------------------------------------===//
34// LLZKDialect
35//===------------------------------------------------------------------===//
36
37auto llzk::LLZKDialect::initialize() -> void {
38 // clang-format off
39 addAttributes<
40 #define GET_ATTRDEF_LIST
42 >();
43
44 addOperations<
45 #define GET_OP_LIST
47 >();
48 // clang-format on
49 addInterfaces<LLZKDialectBytecodeInterface<LLZKDialect>>();
50}