Skip to content

Commit a53b56e

Browse files
committed
Revert "[mlir] Remove the unused source file."
This reverts commit e488ce2. Reverted to fix a compilation issue on gcc8.
1 parent 3986c86 commit a53b56e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//===- AffineStructuresParser.cpp - Parser for AffineStructures -*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#include "./AffineStructuresParser.h"
10+
#include "mlir/AsmParser/AsmParser.h"
11+
#include "mlir/IR/IntegerSet.h"
12+
13+
using namespace mlir;
14+
using namespace presburger;
15+
16+
FailureOr<IntegerPolyhedron>
17+
mlir::parseIntegerSetToFAC(llvm::StringRef str, MLIRContext *context,
18+
bool printDiagnosticInfo) {
19+
IntegerSet set = parseIntegerSet(str, context, printDiagnosticInfo);
20+
21+
if (!set)
22+
return failure();
23+
24+
return FlatAffineValueConstraints(set);
25+
}

0 commit comments

Comments
 (0)