diff --git a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td --- a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td +++ b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td @@ -783,6 +783,27 @@ let assemblyFormat = "attr-dict"; } +//===----------------------------------------------------------------------===// +// 2.11.9.1 tile construct +//===----------------------------------------------------------------------===// + +def TileOp : OpenMP_Op<"tile"> { + let summary = "tile construct"; + let description = [{ + The tile construct tiles the outer n loops of the associated loop nest, + where n is the number of items in the sizes clause, which consists of + items s1, . . . , sn. + }]; + + let arguments = (ins Variadic:$tilesize); + + let regions = (region AnyRegion:$region); + + let assemblyFormat = [{ ( `size` `(` $tilesize^ `:` type($tilesize )`)` )? + $region attr-dict + }]; +} + //===----------------------------------------------------------------------===// // 2.13.7 flush Construct //===----------------------------------------------------------------------===// @@ -797,7 +818,7 @@ let arguments = (ins Variadic:$varList); - let assemblyFormat = [{ ( `(` $varList^ `:` type($varList) `)` )? attr-dict}]; + let assemblyFormat = [{( `(` $varList^ `:` type($varList) `)` )? attr-dict}]; let extraClassDeclaration = [{ /// The number of variable operands. unsigned getNumVariableOperands() { @@ -809,6 +830,7 @@ } }]; } + //===----------------------------------------------------------------------===// // 2.14.5 target construct //===----------------------------------------------------------------------===// @@ -851,7 +873,6 @@ }]; } - //===----------------------------------------------------------------------===// // 2.16 master Construct //===----------------------------------------------------------------------===//