Add ::printAsTextualPipeline to Pass and OpPassManager.
authorMLIR Team <no-reply@google.com>
Wed, 9 Oct 2019 20:48:38 +0000 (13:48 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 9 Oct 2019 20:49:17 +0000 (13:49 -0700)
commitae6946ec11e0953461ae35077d082d59ab3573cf
tree783350bc9bca96e7ed188e41a92735a974ec2823
parent35bb732032aca1c57ffe2dfb47d6d05e651b24e2
Add ::printAsTextualPipeline to Pass and OpPassManager.

Allow printing out pipelines in a format that is as close as possible to the
textual pass pipeline format. Individual passes can override the print function
in order to format any options that may have been used to construct that pass.

PiperOrigin-RevId: 273813627
mlir/g3doc/WritingAPass.md
mlir/include/mlir/Pass/Pass.h
mlir/include/mlir/Pass/PassManager.h
mlir/lib/Pass/Pass.cpp
mlir/test/Pass/pipeline-options-parsing.mlir
mlir/test/lib/Pass/TestPassManager.cpp