My Project
TranslateClParser.h
Go to the documentation of this file.
1 //===- TranslateClParser.h - Translations command line parser ---*- C++ -*-===//
2 //
3 // Part of the MLIR Project, 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 file contains custom command line parser for translations.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_SUPPORT_TRANSLATE_CL_PARSER_H_
14 #define MLIR_SUPPORT_TRANSLATE_CL_PARSER_H_
15 
16 #include "mlir/Support/LLVM.h"
17 #include "mlir/Translation.h"
18 #include "llvm/Support/CommandLine.h"
19 #include <functional>
20 
21 namespace mlir {
22 
23 struct LogicalResult;
24 class MLIRContext;
25 
29 struct TranslationParser : public llvm::cl::parser<const TranslateFunction *> {
30  TranslationParser(llvm::cl::Option &opt);
31 
32  void printOptionInfo(const llvm::cl::Option &O,
33  size_t GlobalWidth) const override;
34 };
35 
36 } // namespace mlir
37 
38 #endif // MLIR_SUPPORT_TRANSLATE_CL_PARSER_H_
Definition: InferTypeOpInterface.cpp:20
TranslationParser(llvm::cl::Option &opt)
Definition: TranslateClParser.cpp:38
Definition: TranslateClParser.h:29
void printOptionInfo(const llvm::cl::Option &O, size_t GlobalWidth) const override
Definition: TranslateClParser.cpp:83