[all-commits] [llvm/llvm-project] 6f9afa: [MLIR] Move Presburger Math from FlatAffineConstra...

Kunwar Shaanjeet Singh Grover via All-commits all-commits at lists.llvm.org
Thu Dec 9 03:13:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f9afad6d37be5125f061c9b43ebe4312441d3a0
      https://github.com/llvm/llvm-project/commit/6f9afad6d37be5125f061c9b43ebe4312441d3a0
  Author: Groverkss <groverkss at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M mlir/include/mlir/Analysis/AffineStructures.h
    A mlir/include/mlir/Analysis/Presburger/IntegerPolyhedron.h
    M mlir/lib/Analysis/AffineStructures.cpp
    M mlir/lib/Analysis/Presburger/CMakeLists.txt
    A mlir/lib/Analysis/Presburger/IntegerPolyhedron.cpp
    M mlir/unittests/Analysis/AffineStructuresTest.cpp
    M mlir/unittests/Analysis/Presburger/CMakeLists.txt
    A mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp

  Log Message:
  -----------
  [MLIR] Move Presburger Math from FlatAffineConstraints to Presburger/IntegerPolyhedron

This patch factors out math functionality that is a subset of Presburger arithmetic and moves it from FlatAffineConstraints to Presburger/IntegerPolyhedron. This patch only moves some parts of the functionality planned to be moved, with subsequent patches moving more functionality. There are three main reasons for this:

1. This split makes the Presburger Library easier and more flexible to use
    across MLIR, by not depending on IR.
2. This split allows the Presburger library to be developed independently from
    Affine Analysis, with Affine Analysis using this library.
3. With more functionality being upstreamed to the Presburger Library, the
    mlir/Analysis directory will be cluttered with Presburger library components
    since they depend on math functionality from FlatAffineConstraints. Moving this
    functionality to the Presburger directory allows keeping the new functionality
    in the Presburger directory.

This patch is part of an ongoing effort to make the Presburger Library easier to use. The motivation for this effort is the feedback received at the LLVM conference from Mehdi and others.

Reviewed By: bondhugula

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




More information about the All-commits mailing list