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 - POD 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 2026 Project LLZK
6
// SPDX-License-Identifier: Apache-2.0
7
//
8
//===----------------------------------------------------------------------===//
9
10
#include "
llzk/Dialect/POD/IR/Dialect.h
"
11
12
#include "
llzk/Dialect/LLZK/IR/Versioning.h
"
13
#include "
llzk/Dialect/POD/IR/Attrs.h
"
14
#include "
llzk/Dialect/POD/IR/Ops.h
"
15
#include "
llzk/Dialect/POD/IR/Types.h
"
16
17
#include <mlir/IR/Builders.h>
18
#include <mlir/IR/DialectImplementation.h>
19
20
#include <llvm/ADT/TypeSwitch.h>
21
22
// TableGen'd implementation files
23
#include "
llzk/Dialect/POD/IR/Dialect.cpp.inc
"
24
25
#define GET_TYPEDEF_CLASSES
26
#include "
llzk/Dialect/POD/IR/Types.cpp.inc
"
27
28
// Need a complete declaration of storage classes for below
29
#define GET_ATTRDEF_CLASSES
30
#include "
llzk/Dialect/POD/IR/Attrs.cpp.inc
"
31
32
//===------------------------------------------------------------------===//
33
// ArrayDialect
34
//===------------------------------------------------------------------===//
35
36
auto
llzk::pod::PODDialect::initialize() ->
void
{
37
// clang-format off
38
addOperations<
39
#define GET_OP_LIST
40
#include "
llzk/Dialect/POD/IR/Ops.cpp.inc
"
41
>();
42
43
// Suppress false positive from `clang-tidy`
44
// NOLINTNEXTLINE(clang-analyzer-core.StackAddressEscape)
45
addTypes<
46
#define GET_TYPEDEF_LIST
47
#include "
llzk/Dialect/POD/IR/Types.cpp.inc
"
48
>();
49
50
// Suppress false positive from `clang-tidy`
51
// NOLINTNEXTLINE(clang-analyzer-core.StackAddressEscape)
52
addAttributes<
53
#define GET_ATTRDEF_LIST
54
#include "
llzk/Dialect/POD/IR/Attrs.cpp.inc
"
55
>();
56
57
// clang-format on
58
addInterfaces<LLZKDialectBytecodeInterface<PODDialect>>();
59
}
Attrs.cpp.inc
Attrs.h
Dialect.cpp.inc
Dialect.h
Ops.cpp.inc
Ops.h
Types.cpp.inc
Types.h
Versioning.h
lib
Dialect
POD
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.