Split out TranslateClParser and add new parse method that reuses SourceMgr.
authorJacques Pienaar <jpienaar@google.com>
Wed, 26 Jun 2019 18:12:40 +0000 (11:12 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 26 Jun 2019 18:14:45 +0000 (11:14 -0700)
commitd4cf54f2c1d40cdd66d88214a8f87660b21f2213
treebbf93d612b32aa9779a79a6f6d21281b805ffebd
parent630119f84f2415d87743b2557c21145721136c0b
Split out TranslateClParser and add new parse method that reuses SourceMgr.

Split out class to command line parser for translate methods into standalone
class. Similar to splitting up mlir-opt to reuse functionality with different
initialization.

PiperOrigin-RevId: 255225790
mlir/include/mlir/Parser.h
mlir/include/mlir/Support/TranslateClParser.h [new file with mode: 0644]
mlir/lib/Parser/Parser.cpp
mlir/lib/Support/CMakeLists.txt
mlir/lib/Support/TranslateClParser.cpp [new file with mode: 0644]
mlir/tools/mlir-translate/CMakeLists.txt
mlir/tools/mlir-translate/mlir-translate.cpp