bolt/deps/llvm-18.1.8/mlir/examples/minimal-opt/mlir-minimal-opt.cpp
2025-02-14 19:21:04 +01:00

18 lines
813 B
C++

//===- mlir-minimal-opt.cpp -------------------------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "mlir/Tools/mlir-opt/MlirOptMain.h"
/// This test includes the minimal amount of components for mlir-opt, that is
/// the CoreIR, the printer/parser, the bytecode reader/writer, the
/// passmanagement infrastructure and all the instrumentation.
int main(int argc, char **argv) {
mlir::DialectRegistry registry;
return mlir::asMainReturnCode(mlir::MlirOptMain(
argc, argv, "Minimal Standalone optimizer driver\n", registry));
}