Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit d576f45

Browse files
committed
[MLIR][OpenMP] Added parseClauses
Code reorganized in OpenMPDialect.cpp to have all functions corresponding to an operation together. Added parseClauses function to avoid code duplication while parsing clauses in OpenMP operations. Also added printers and verifiers for clauses, which are being used for multiple operations. Reviewed By: kiranchandramohan, peixin Differential Revision: https://reviews.llvm.org/D110903
1 parent c6d7f24 commit d576f45

File tree

3 files changed

+516
-461
lines changed

3 files changed

+516
-461
lines changed

mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td

+1-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ def WsLoopOp : OpenMP_Op<"wsloop", [AttrSizedOperandSegments,
211211
Variadic<AnyType>:$linear_vars,
212212
Variadic<AnyType>:$linear_step_vars,
213213
Variadic<OpenMP_PointerLikeType>:$reduction_vars,
214-
OptionalAttr<TypedArrayAttrBase<SymbolRefAttr,
215-
"array of symbol references">>:$reductions,
214+
OptionalAttr<SymbolRefArrayAttr>:$reductions,
216215
OptionalAttr<ScheduleKind>:$schedule_val,
217216
Optional<AnyType>:$schedule_chunk_var,
218217
Confined<OptionalAttr<I64Attr>, [IntMinValue<0>]>:$collapse_val,

0 commit comments

Comments
 (0)