Add a rank op to MLIR. Example:
authorRasmus Munk Larsen <rmlarsen@google.com>
Wed, 29 May 2019 16:22:30 +0000 (09:22 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:06:51 +0000 (20:06 -0700)
commit861c55e1504b44602105db7c33972340ae341adc
treec366c814e08f5bc20a400e5d76aba094837fbeba
parent0eac031fac9a3c5e3e9813de7e254f9922fbad46
Add a rank op to MLIR. Example:

      %1 = rank %0 : index

--

PiperOrigin-RevId: 250505411
mlir/include/mlir/StandardOps/Ops.td
mlir/lib/StandardOps/Ops.cpp
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir
mlir/test/Transforms/constant-fold.mlir