From: Mehdi Amini Date: Fri, 10 May 2019 21:05:34 +0000 (-0700) Subject: Remove unused method `parseIntegerSetInline` and `parseAffineMapInline` in Parser... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32ae5dd16caab4735588aefa2d15d931a918a2f0;p=platform%2Fupstream%2Fllvm.git Remove unused method `parseIntegerSetInline` and `parseAffineMapInline` in Parser (NFC) Fix GCC warning. -- PiperOrigin-RevId: 247672318 --- diff --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp index abd7bd2..59ff337 100644 --- a/mlir/lib/Parser/Parser.cpp +++ b/mlir/lib/Parser/Parser.cpp @@ -1667,9 +1667,7 @@ class AffineParser : public Parser { public: explicit AffineParser(ParserState &state) : Parser(state) {} - AffineMap parseAffineMapInline(); AffineMap parseAffineMapRange(unsigned numDims, unsigned numSymbols); - IntegerSet parseIntegerSetInline(); ParseResult parseAffineMapOrIntegerSetInline(AffineMap &map, IntegerSet &set); IntegerSet parseIntegerSetConstraints(unsigned numDims, unsigned numSymbols); @@ -2076,52 +2074,6 @@ AffineParser::parseDimAndOptionalSymbolIdList(unsigned &numDims, return parseSymbolIdList(numSymbols); } -/// Parses an affine map definition inline. -/// -/// affine-map ::= dim-and-symbol-id-lists `->` multi-dim-affine-expr -/// (`size` `(` dim-size (`,` dim-size)* `)`)? -/// dim-size ::= affine-expr | `min` `(` affine-expr ( `,` affine-expr)+ `)` -/// -/// multi-dim-affine-expr ::= `(` affine-expr (`,` affine-expr)* `) -/// -AffineMap AffineParser::parseAffineMapInline() { - unsigned numDims = 0, numSymbols = 0; - - // List of dimensional and optional symbol identifiers. - if (parseDimAndOptionalSymbolIdList(numDims, numSymbols)) { - return AffineMap(); - } - - if (parseToken(Token::arrow, "expected '->' or '['")) { - return AffineMap(); - } - - // Parse the affine map. - return parseAffineMapRange(numDims, numSymbols); -} - -/// Parses an integer set definition inline. -/// -/// integer-set ::= dim-and-symbol-id-lists `:` affine-constraint-conjunction -/// affine-constraint-conjunction ::= /*empty*/ -/// | affine-constraint (`,` -/// affine-constraint)* -/// -IntegerSet AffineParser::parseIntegerSetInline() { - unsigned numDims = 0, numSymbols = 0; - - // List of dimensional and optional symbol identifiers. - if (parseDimAndOptionalSymbolIdList(numDims, numSymbols)) { - return IntegerSet(); - } - - if (parseToken(Token::colon, "expected ':' or '['")) { - return IntegerSet(); - } - - return parseIntegerSetConstraints(numDims, numSymbols); -} - /// Parses an ambiguous affine map or integer set definition inline. ParseResult AffineParser::parseAffineMapOrIntegerSetInline(AffineMap &map, IntegerSet &set) {