Introduce custom format for the LLVM IR Dialect
authorAlex Zinenko <zinenko@google.com>
Tue, 2 Apr 2019 22:33:54 +0000 (15:33 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 2 Apr 2019 23:31:58 +0000 (16:31 -0700)
commit736bef73868a69f08b1212260c1afff3e6737674
tree8b62b100116e793c0b47f0322affe208638267a7
parent04f766c2ed1d4bf2b065112917733517ced6cb05
Introduce custom format for the LLVM IR Dialect

    Historically, the LLVM IR dialect has been using the generic form of MLIR
    operation syntax.  It is verbose and often redundant.  Introduce the custom
    printing and parsing for all existing operations in the LLVM IR dialect.
    Update the relevant documentation and tests.

--

PiperOrigin-RevId: 241617393
12 files changed:
mlir/g3doc/ConversionToLLVMDialect.md
mlir/g3doc/Dialects/LLVM.md
mlir/include/mlir/IR/OpImplementation.h
mlir/include/mlir/LLVMIR/LLVMOps.td
mlir/lib/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Parser/Parser.cpp
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