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:
7f37a80
)
[mlir] Print types to the OpAsmPrinter instead of the raw_ostream.
author
River Riddle
<riddleriver@gmail.com>
Tue, 4 Feb 2020 20:17:14 +0000
(12:17 -0800)
committer
River Riddle
<riddleriver@gmail.com>
Tue, 4 Feb 2020 20:17:14 +0000
(12:17 -0800)
This allows for reusing the internal state of the printer, which is more
efficient and also allows for using type aliases
mlir/include/mlir/IR/OpImplementation.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/OpImplementation.h
b/mlir/include/mlir/IR/OpImplementation.h
index
7bf4bfe
..
c3bd683
100644
(file)
--- a/
mlir/include/mlir/IR/OpImplementation.h
+++ b/
mlir/include/mlir/IR/OpImplementation.h
@@
-123,7
+123,7
@@
public:
void printFunctionalType(InputRangeT &&inputs, ResultRangeT &&results) {
auto &os = getStream();
os << "(";
- interleaveComma(inputs,
o
s);
+ interleaveComma(inputs,
*thi
s);
os << ")";
printArrowTypeList(results);
}