LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
r1cs-opt.cpp
Go to the documentation of this file.
1//===-- r1cs-opt.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
10#include "r1cs/Dialect/IR/Dialect.h"
11#include "r1cs/InitAllDialects.h"
12
13#include <mlir/IR/DialectRegistry.h>
14#include <mlir/IR/MLIRContext.h>
15#include <mlir/InitAllDialects.h>
16#include <mlir/InitAllPasses.h>
17#include <mlir/Tools/mlir-opt/MlirOptMain.h>
18
19#include <llvm/Support/PrettyStackTrace.h>
20#include <llvm/Support/Signals.h>
21
22#include "tools/config.h"
23
24int main(int argc, char **argv) {
25 llvm::sys::PrintStackTraceOnErrorSignal(llvm::StringRef());
26 llvm::setBugReportMsg("PLEASE submit a bug report to " BUG_REPORT_URL
27 " and include the crash backtrace, relevant LLZK files,"
28 " and associated run script(s).\n");
29
30 mlir::DialectRegistry registry;
31 r1cs::registerAllDialects(registry);
32
33 return mlir::asMainReturnCode(mlir::MlirOptMain(argc, argv, "R1CS Optimizer\n", registry));
34}
#define BUG_REPORT_URL
Definition config.h:14
int main(int argc, char **argv)
Definition r1cs-opt.cpp:24