commit | 4c2403a2c7c8cd0a172dbcccefa9e4ee5df92ffa | [log] [tgz] |
---|---|---|
author | Jacques Pienaar <jpienaar@google.com> | Sat Oct 03 15:17:38 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 29 19:21:18 2020 -0700 |
tree | 6ed8a5f331c224d7173022009acb6cb81c271c07 | |
parent | 42734cb3d46e716d5bce08a0afc669b669865377 [diff] |
Add indented raw_ostream class Class simplifies keeping track of the indentation while emitting. For every new line the current indentation is simply prefixed (if not at start of line, then it just emits as normal). Add a simple Region helper that makes it easy to have the C++ scope match the emitted scope. Use this in op doc generator and rewrite generator. This reverts revert commit be185b6a7355fdfeb1c31df2e1272366fe58b01f addresses shared lib failure by fixing up cmake files. Differential Revision: https://reviews.llvm.org/D84107 GitOrigin-RevId: 9b851527d53345c4a5d56a909dfa1ca7f59a0c11
See https://mlir.llvm.org/ for more information.