Change the asmprinter to use pretty syntax for dialect types when it can,
authorChris Lattner <clattner@google.com>
Sat, 6 Apr 2019 06:56:49 +0000 (23:56 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 8 Apr 2019 01:21:13 +0000 (18:21 -0700)
commit72441fcbf20dd90f2bece2d99cada6cf708588fd
tree14dc7b627efb7feae40500249940df29aea5f196
parent3f93d93367c15082d11fe4573af80cc3c4f3da11
Change the asmprinter to use pretty syntax for dialect types when it can,
    making the IR dumps much nicer.

    This is part 2/3 of the path to making dialect types more nice.  Part 3/3 will
    slightly generalize the set of characters allowed in pretty types and make it
    more principled.

--

PiperOrigin-RevId: 242249955
35 files changed:
mlir/examples/Linalg/Linalg1/Conversion.cpp
mlir/examples/Linalg/Linalg1/Example.cpp
mlir/examples/Linalg/Linalg1/lib/RangeOp.cpp
mlir/examples/Linalg/Linalg2/Example.cpp
mlir/examples/Linalg/Linalg3/Conversion.cpp
mlir/examples/Linalg/Linalg3/Example.cpp
mlir/examples/Linalg/Linalg4/Example.cpp
mlir/examples/toy/Ch2/mlir/MLIRGen.cpp
mlir/examples/toy/Ch3/include/toy/Dialect.h
mlir/examples/toy/Ch3/mlir/MLIRGen.cpp
mlir/examples/toy/Ch4/include/toy/Dialect.h
mlir/examples/toy/Ch4/mlir/MLIRGen.cpp
mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp
mlir/g3doc/Dialects/LLVM.md
mlir/g3doc/LangRef.md
mlir/g3doc/Tutorials/Toy/Ch-2.md
mlir/g3doc/Tutorials/Toy/Ch-3.md
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/Examples/Toy/Ch2/codegen.toy
mlir/test/Examples/Toy/Ch2/invalid.mlir
mlir/test/Examples/Toy/Ch3/codegen.toy
mlir/test/Examples/Toy/Ch3/invalid.mlir
mlir/test/Examples/Toy/Ch3/scalar.toy
mlir/test/Examples/Toy/Ch4/codegen.toy
mlir/test/Examples/Toy/Ch4/invalid.mlir
mlir/test/Examples/Toy/Ch4/scalar.toy
mlir/test/IR/parser.mlir
mlir/test/LLVMIR/convert-funcs.mlir
mlir/test/LLVMIR/convert-memref-ops.mlir
mlir/test/LLVMIR/convert-to-llvmir.mlir
mlir/test/LLVMIR/invalid.mlir
mlir/test/LLVMIR/roundtrip.mlir
mlir/test/Target/llvmir.mlir