projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ebd6df
)
Support parsing MLIR source from stdin.
author
MLIR Team
<no-reply@google.com>
Thu, 27 Jun 2019 02:56:42 +0000
(19:56 -0700)
committer
A. Unique TensorFlower
<gardener@tensorflow.org>
Thu, 27 Jun 2019 02:57:04 +0000
(19:57 -0700)
PiperOrigin-RevId:
255316118
mlir/lib/Parser/Parser.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Parser/Parser.cpp
b/mlir/lib/Parser/Parser.cpp
index
a384145
..
d244308
100644
(file)
--- a/
mlir/lib/Parser/Parser.cpp
+++ b/
mlir/lib/Parser/Parser.cpp
@@
-4166,7
+4166,7
@@
Module *mlir::parseSourceFile(StringRef filename, llvm::SourceMgr &sourceMgr,
"only main buffer parsed at the moment");
return nullptr;
}
- auto file_or_err = llvm::MemoryBuffer::getFile(filename);
+ auto file_or_err = llvm::MemoryBuffer::getFile
OrSTDIN
(filename);
if (std::error_code error = file_or_err.getError()) {
emitError(mlir::UnknownLoc::get(context),
"could not open input file " + filename);