llvm-project/mlir/test/Dialect/Affine
Chris Lattner 5dedf911de [AsmParser] Rework logic around "region argument parsing"
The asm parser had a notional distinction between parsing an
operand (like "%foo" or "%4#3") and parsing a region argument
(which isn't supposed to allow a result number like #3).

Unfortunately the implementation has two problems:

1) It didn't actually check for the result number and reject
   it.  parseRegionArgument and parseOperand were identical.
2) It had a lot of machinery built up around it that paralleled
   operand parsing.  This also was functionally identical, but
   also had some subtle differences (e.g. the parseOptional
   stuff had a different result type).

I thought about just removing all of this, but decided that the
missing error checking was important, so I reimplemented it with
a `allowResultNumber` flag on parseOperand.  This keeps the
codepaths unified and adds the missing error checks.

Differential Revision: https://reviews.llvm.org/D124470
2022-04-28 11:12:44 -07:00
..
SuperVectorize [mlir] Modify SuperVectorize to generate select op->combiner op 2022-04-21 17:09:13 -07:00
affine-data-copy.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
affine-loop-invariant-code-motion.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
affine-loop-normalize.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
canonicalize.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
constant-fold.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
dma-generate.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
dma.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
inlining.mlir [mlir][NFC] Update remaining textual references of un-namespaced `func` operations 2022-04-20 22:17:31 -07:00
invalid.mlir [AsmParser] Rework logic around "region argument parsing" 2022-04-28 11:12:44 -07:00
load-store-invalid.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
load-store.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
loop-coalescing.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
loop-permute.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
loop-tiling-parametric.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
loop-tiling-validity.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
loop-tiling.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
loop-unswitch.mlir [mlir][NFC] Update remaining textual references of un-namespaced `func` operations 2022-04-20 22:17:31 -07:00
memref-stride-calculation.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
ops.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
parallelize.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
scalrep.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
simplify-structures.mlir [mlir][NFC] Update remaining textual references of un-namespaced `func` operations 2022-04-20 22:17:31 -07:00
slicing-utils.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
unroll-jam.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00
unroll.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Affine/ tests 2022-04-20 22:17:27 -07:00