[all-commits] [llvm/llvm-project] f6718f: [mlir] FlatAffineConstraint parsing for unit tests

Christian Ulmann via All-commits all-commits at lists.llvm.org
Mon Nov 22 13:35:52 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6718fc6d30219816a20235984e84db2e1f96fd8
      https://github.com/llvm/llvm-project/commit/f6718fc6d30219816a20235984e84db2e1f96fd8
  Author: Christian Ulmann <culmann at student.ethz.ch>
  Date:   2021-11-23 (Tue, 23 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Parser.h
    M mlir/lib/Parser/AffineParser.cpp
    A mlir/unittests/Analysis/AffineStructuresParser.cpp
    A mlir/unittests/Analysis/AffineStructuresParser.h
    A mlir/unittests/Analysis/AffineStructuresParserTest.cpp
    M mlir/unittests/Analysis/AffineStructuresTest.cpp
    M mlir/unittests/Analysis/CMakeLists.txt

  Log Message:
  -----------
  [mlir] FlatAffineConstraint parsing for unit tests

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.

Reviewed By: bondhugula, grosser

Differential Revision: https://reviews.llvm.org/D113275




More information about the All-commits mailing list