LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
SharedImpl.cpp
Go to the documentation of this file.
1//===-- SharedImpl.cpp ------------------------------------------*- 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
22
23#include "SharedImpl.h"
24
25mlir::ConversionTarget llzk::polymorphic::detail::newBaseTarget(mlir::MLIRContext *ctx) {
26 mlir::ConversionTarget target(*ctx);
27 target.addLegalDialect<
32 llzk::string::StringDialect, mlir::arith::ArithDialect, mlir::scf::SCFDialect>();
33 target.addLegalOp<mlir::ModuleOp>();
34 return target;
35}
Common private implementation for poly dialect passes.
mlir::ConversionTarget newBaseTarget(mlir::MLIRContext *ctx)
Return a new ConversionTarget allowing all LLZK-required dialects.