[Mlir-commits] [mlir] a53b56e - Revert "[mlir] Remove the unused source file."

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Sep 15 10:43:01 PDT 2022


Author: Groverkss
Date: 2022-09-15T18:42:47+01:00
New Revision: a53b56e4c4de09c1d21d44af79a8a73089521ee9

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

LOG: Revert "[mlir] Remove the unused source file."

This reverts commit e488ce29ec5ead2d518c183890215313c9d1b1f0.

Reverted to fix a compilation issue on gcc8.

Added: 
    mlir/unittests/Dialect/Affine/Analysis/AffineStructuresParser.cpp

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/mlir/unittests/Dialect/Affine/Analysis/AffineStructuresParser.cpp b/mlir/unittests/Dialect/Affine/Analysis/AffineStructuresParser.cpp
new file mode 100644
index 0000000000000..4bd15e49824a3
--- /dev/null
+++ b/mlir/unittests/Dialect/Affine/Analysis/AffineStructuresParser.cpp
@@ -0,0 +1,25 @@
+//===- AffineStructuresParser.cpp - Parser for AffineStructures -*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "./AffineStructuresParser.h"
+#include "mlir/AsmParser/AsmParser.h"
+#include "mlir/IR/IntegerSet.h"
+
+using namespace mlir;
+using namespace presburger;
+
+FailureOr<IntegerPolyhedron>
+mlir::parseIntegerSetToFAC(llvm::StringRef str, MLIRContext *context,
+                           bool printDiagnosticInfo) {
+  IntegerSet set = parseIntegerSet(str, context, printDiagnosticInfo);
+
+  if (!set)
+    return failure();
+
+  return FlatAffineValueConstraints(set);
+}


        


More information about the Mlir-commits mailing list