[Mlir-commits] [mlir] 4ca510b - [MLIR] Remove dependency on IR for Simplex

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jan 3 03:00:46 PST 2022


Author: Groverkss
Date: 2022-01-03T16:23:11+05:30
New Revision: 4ca510b1d1ea826a357ae75c36618d52016200c7

URL: https://github.com/llvm/llvm-project/commit/4ca510b1d1ea826a357ae75c36618d52016200c7
DIFF: https://github.com/llvm/llvm-project/commit/4ca510b1d1ea826a357ae75c36618d52016200c7.diff

LOG: [MLIR] Remove dependency on IR for Simplex

This patch removes unnecessary dependency on IR for Simplex. This patch allows
users to use Presburger library without depending on MLIRIR.

Reviewed By: ftynse

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

Added: 
    

Modified: 
    mlir/include/mlir/Analysis/Presburger/Simplex.h
    mlir/lib/Analysis/Presburger/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Analysis/Presburger/Simplex.h b/mlir/include/mlir/Analysis/Presburger/Simplex.h
index 87486a481d305..2773a6319079c 100644
--- a/mlir/include/mlir/Analysis/Presburger/Simplex.h
+++ b/mlir/include/mlir/Analysis/Presburger/Simplex.h
@@ -17,7 +17,6 @@
 #include "mlir/Analysis/Presburger/Fraction.h"
 #include "mlir/Analysis/Presburger/IntegerPolyhedron.h"
 #include "mlir/Analysis/Presburger/Matrix.h"
-#include "mlir/IR/Location.h"
 #include "mlir/Support/LogicalResult.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/Optional.h"

diff  --git a/mlir/lib/Analysis/Presburger/CMakeLists.txt b/mlir/lib/Analysis/Presburger/CMakeLists.txt
index d3187278db2f5..a40ae6e53ccb0 100644
--- a/mlir/lib/Analysis/Presburger/CMakeLists.txt
+++ b/mlir/lib/Analysis/Presburger/CMakeLists.txt
@@ -5,10 +5,6 @@ add_mlir_library(MLIRPresburger
   Simplex.cpp
   Utils.cpp
 
-  DEPENDS
-  MLIRBuiltinLocationAttributesIncGen
-
   LINK_LIBS PUBLIC
-  MLIRIR
   MLIRSupport
   )


        


More information about the Mlir-commits mailing list