[PATCH] D78067: [llvm][STLExtras] Move the algorithm `interleave*` methods from MLIR to LLVM
Chris Lattner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 17:57:37 PDT 2020
lattner accepted this revision.
lattner added a comment.
This revision is now accepted and ready to land.
Awesome work!
================
Comment at: flang/include/flang/Optimizer/Dialect/FIROps.td:251
// print the LEN parameters to a derived type in parens
- p << '(';
- p.printOperands(getLenParams());
- p << " : ";
- mlir::interleaveComma(getLenParams(), p.getStream(),
- [&](const auto &opnd) {
- p.printType(opnd.getType());
- });
- p << ')';
+ p << '(' << getLenParams() << " : " << getLenParams().getTypes() << ')';
}
----------------
How does this work?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78067/new/
https://reviews.llvm.org/D78067
More information about the llvm-commits
mailing list