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
10
#include "
llzk/Dialect/Function/IR/Dialect.h
"
11
12
#include "
llzk/Dialect/Function/IR/Attrs.h
"
13
#include "
llzk/Dialect/Function/IR/Ops.h
"
14
#include "
llzk/Dialect/LLZK/IR/Versioning.h
"
15
16
#include <mlir/IR/DialectImplementation.h>
17
18
#include <llvm/ADT/TypeSwitch.h>
19
20
// TableGen'd implementation files
21
#include "
llzk/Dialect/Function/IR/Dialect.cpp.inc
"
22
23
// Need a complete declaration of storage classes for below
24
#define GET_ATTRDEF_CLASSES
25
#include "
llzk/Dialect/Function/IR/Attrs.cpp.inc
"
26
27
//===------------------------------------------------------------------===//
28
// LLZK FunctionDialect
29
//===------------------------------------------------------------------===//
30
31
auto
llzk::function::FunctionDialect::initialize() ->
void
{
32
// clang-format off
33
addOperations<
34
#define GET_OP_LIST
35
#include "
llzk/Dialect/Function/IR/Ops.cpp.inc
"
36
>();
37
38
addAttributes<
39
#define GET_ATTRDEF_LIST
40
#include "
llzk/Dialect/Function/IR/Attrs.cpp.inc
"
41
>();
42
// clang-format on
43
addInterfaces<LLZKDialectBytecodeInterface<FunctionDialect>>();
44
}
Attrs.cpp.inc
Attrs.h
Dialect.cpp.inc
Dialect.h
Ops.cpp.inc
Ops.h
Versioning.h
lib
Dialect
Function
IR
Dialect.cpp
Generated by
1.14.0
Copyright 2025 Veridise Inc. under the Apache License v2.0. Copyright 2026 Project LLZK under the Apache License v2.0.