Change syntax of regions in the generic form of operations
authorAlex Zinenko <zinenko@google.com>
Mon, 6 May 2019 08:40:13 +0000 (01:40 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 May 2019 15:29:48 +0000 (08:29 -0700)
commitd3380a504fed2f521becb2ccbab81e70e53ceb65
treeb371c3628a793b8ad9fc131ee4215eac60d3830e
parente2e89f5c834954e646eba69f56d58617d2ca5b02
Change syntax of regions in the generic form of operations

    The generic form of operations currently supports optional regions to be
    located after the operation type.  As we are going to add a type to each
    region in a leading position in the region syntax, similarly to functions, it
    becomes ambiguous to have regions immediately after the operation type.  Put
    regions between operands the optional list of successors in the generic
    operation syntax and wrap them in parentheses.  The effect on the exisitng IR
    syntax is minimal since only three operations (`affine.for`, `affine.if` and
    `gpu.kernel`) currently use regions.

--

PiperOrigin-RevId: 246787087
mlir/bindings/python/test/test_py2and3.py
mlir/g3doc/LangRef.md
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/AffineOps/ops.mlir
mlir/test/GPU/invalid.mlir
mlir/test/GPU/ops.mlir
mlir/test/IR/invalid.mlir
mlir/test/IR/parser.mlir
mlir/test/Transforms/cse.mlir