This patch adds functionality to parse FlatAffineConstraints from a
StringRef with the intention to be used for unit tests. This should
make the construction of FlatAffineConstraints easier for testing
purposes.
The patch contains an example usage of the functionality in a unit test that
uses FlatAffineConstraints.
This is going to be a layering issue. The parser library can't depend on the Affine Analysis library, which is where FlatAffineConstraints resides. We'll have to define the parser for FlatAffineConstraints elsewhere. The MLIR parser is meant for just parsing IR AFAIK, and in any case, it can't depend on such analysis structures.