[mlir][openacc] Add firstprivate representation
authorValentin Clement <clementval@gmail.com>
Wed, 17 May 2023 18:11:42 +0000 (11:11 -0700)
committerValentin Clement <clementval@gmail.com>
Wed, 17 May 2023 18:18:30 +0000 (11:18 -0700)
commit8497dfdf5f35cc9c2f0e74762b34873eb3b1022d
tree8c85238b5ce69a332a0a7c167629badeca6d65b4
parent0457f506fddf47cfe842b398c7f522057cef8163
[mlir][openacc] Add firstprivate representation

Add a representation for firstprivate clause modeled on the
private representation added in D150622.
The firstprivate recipe operation has an additional mandatory
region representing a sequences of operations needed to copy
the initial value to the created private copy.

Depends on D150622

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D150729
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
mlir/test/Dialect/OpenACC/invalid.mlir