Skip to content

Commit

Permalink
Revert "[mlir] Remove the unused source file."
Browse files Browse the repository at this point in the history
This reverts commit e488ce2.

Reverted to fix a compilation issue on gcc8.
  • Loading branch information
Groverkss committed Sep 15, 2022
1 parent 3986c86 commit a53b56e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 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);
}

0 comments on commit a53b56e

Please sign in to comment.