[MLIR][OpenMP] Add a constraint to the Threadprivate Op
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 22 Jul 2022 13:03:59 +0000 (13:03 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 22 Jul 2022 13:12:24 +0000 (13:12 +0000)
commit06dbcf7b2bbe5beb3174c33cced029a2fac87168
treea7c4018ef4e9955ce504fddd16228c425740fbbc
parent4ee9f3d59e62b4152fb50cad90d4c3bd9b5f63bc
[MLIR][OpenMP] Add a constraint to the Threadprivate Op

Add a constraint to ensure that the operand and result of the
threadprivate operation are the same.

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D128609
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/test/Dialect/OpenMP/invalid.mlir