Restructure the parser to support nested name scopes. This allows for regions at...
authorRiver Riddle <riverriddle@google.com>
Mon, 3 Jun 2019 16:43:22 +0000 (09:43 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 4 Jun 2019 02:26:20 +0000 (19:26 -0700)
commitc263ae91040c5e776a6a3d5ba2320dc2a3c46646
tree9f3d471874c6f42e1490d55e1d8d871922870e44
parent252de8eca01a54ccac3f9b3aa6b7e104315f6f86
Restructure the parser to support nested name scopes. This allows for regions at the same level of nesting to have values with the same SSA name. This is a necessary step for representing functions as operations.

The following is now valid IR:
  foo.op ... {
    %val = ...
  }, {
    %val = ...
  }

PiperOrigin-RevId: 251249875
mlir/lib/Parser/Parser.cpp
mlir/test/IR/invalid.mlir
mlir/test/IR/parser.mlir