Skip to content

Commit b42cfee

Browse files
authored
[mlir][omp] Add omp.tile operation (#160292)
Add the `omp.tile` loop transformations for the OpenMP dialect. Used for lowering a standalone `!$omp tile` in Flang.
1 parent a5df0d8 commit b42cfee

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ void DefFormat::genLiteralParser(StringRef value, FmtContext &ctx,
403403
.Case("]", "RSquare")
404404
.Case("?", "Question")
405405
.Case("+", "Plus")
406+
.Case("-", "Minus")
406407
.Case("*", "Star")
407408
.Case("...", "Ellipsis")
408409
<< "()";

mlir/tools/mlir-tblgen/FormatGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ bool mlir::tblgen::isValidLiteral(StringRef value,
518518
// If there is only one character, this must either be punctuation or a
519519
// single character bare identifier.
520520
if (value.size() == 1) {
521-
StringRef bare = "_:,=<>()[]{}?+*";
521+
StringRef bare = "_:,=<>()[]{}?+-*";
522522
if (isalpha(front) || bare.contains(front))
523523
return true;
524524
if (emitError)

mlir/tools/mlir-tblgen/OpFormatGen.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ static void genLiteralParser(StringRef value, MethodBody &body) {
852852
.Case("]", "RSquare()")
853853
.Case("?", "Question()")
854854
.Case("+", "Plus()")
855+
.Case("-", "Minus()")
855856
.Case("*", "Star()")
856857
.Case("...", "Ellipsis()");
857858
}

0 commit comments

Comments
 (0)