Support file-to-file translation in mlir-translate
authorLei Zhang <antiagainst@google.com>
Tue, 17 Sep 2019 20:03:48 +0000 (13:03 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 17 Sep 2019 20:04:34 +0000 (13:04 -0700)
commitb991e8b1e40cca25a6ed1b52ffe4a71a39cb72fb
treecbe78bc5bfec1aae01dccfbd9b996cf569ff58b5
parentb00a522b801015f0c3d3ac7c3db1eddafca603cb
Support file-to-file translation in mlir-translate

Existing translations are either from MLIR or to MLIR. To support
cases like round-tripping some external format via MLIR, one must
chain two mlir-translate invocations together using pipes. This
can be problematic to support -split-input-file in mlir-translate
given that it won't work across pipes.

Motivated by the above, this CL adds another translation category
that allows file to file. This gives users more freedom.

PiperOrigin-RevId: 269636438
mlir/include/mlir/Translation.h
mlir/lib/Support/TranslateClParser.cpp
mlir/lib/Translation/Translation.cpp