Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[mlir] Remove the unused source file."
This reverts commit e488ce2. Reverted to fix a compilation issue on gcc8.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
mlir/unittests/Dialect/Affine/Analysis/AffineStructuresParser.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |