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

Christian Ulmann via All-commits all-commits at lists.llvm.org
Sun Nov 14 10:39:51 PST 2021


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

  Changed paths:
    M mlir/include/mlir/Analysis/AffineStructures.h
    M mlir/include/mlir/Parser.h
    M mlir/lib/Analysis/AffineStructures.cpp
    M mlir/lib/Analysis/CMakeLists.txt
    M mlir/lib/Parser/AffineParser.cpp
    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

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




More information about the All-commits mailing list