1 //===- standalone-translate.cpp ---------------------------------*- C++ -*-===//
2 //
3 // This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This is a command line utility that translates a file from/to MLIR using one
10 // of the registered translations.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "mlir/InitAllTranslations.h"
15 #include "mlir/Support/LogicalResult.h"
16 #include "mlir/Translation.h"
17 
18 #include "Standalone/StandaloneDialect.h"
19 
main(int argc,char ** argv)20 int main(int argc, char **argv) {
21   mlir::registerAllTranslations();
22 
23   // TODO: Register standalone translations here.
24 
25   return failed(
26       mlir::mlirTranslateMain(argc, argv, "MLIR Translation Testing Tool"));
27 }
28