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 - String 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
14
15#include <mlir/IR/DialectImplementation.h>
16
17#include <llvm/ADT/TypeSwitch.h>
18
19// TableGen'd implementation files
21
22#define GET_TYPEDEF_CLASSES
24
25//===------------------------------------------------------------------===//
26// StringDialect
27//===------------------------------------------------------------------===//
28
29auto llzk::string::StringDialect::initialize() -> void {
30 // clang-format off
31 addOperations<
32 #define GET_OP_LIST
34 >();
35
36 addTypes<
37 #define GET_TYPEDEF_LIST
39 >();
40 // clang-format on
41 addInterfaces<LLZKDialectBytecodeInterface<StringDialect>>();
42}