OSDN Git Service

[MLIR][OpenMP] Attribute to include WsLoop upperbound
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 7 Jan 2021 15:51:55 +0000 (15:51 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 8 Jan 2021 14:42:18 +0000 (14:42 +0000)
commit268ff38a716157c362b8d463e2e5655f25972e42
tree8bd2ae5718be223ffb5a7fce8cd726af2668e396
parent4a582d766ae40c8f624140c70b7122091d3a9b35
[MLIR][OpenMP] Attribute to include WsLoop upperbound

This patch adds an attribute `inclusive` which if present causes
the upperbound to be included in the loop iteration interval.

Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D94235
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/openmp-llvm.mlir