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