[mlir][openacc] Update acc.data verifier for dataOperands
authorValentin Clement <clementval@gmail.com>
Mon, 8 May 2023 16:26:34 +0000 (09:26 -0700)
committerValentin Clement <clementval@gmail.com>
Mon, 8 May 2023 16:27:46 +0000 (09:27 -0700)
commita7b50effcfefc6deb3d061edb7a1a9aaaf851535
tree0fdaa2d72834652b2d99011ce3df3663f1d0f2fc
parentba902efa499a092405c207d71a98af1e38853d7b
[mlir][openacc] Update acc.data verifier for dataOperands

Data operands associated with acc.data should comes
from acc data entry/exit operations or acc.getdeviceptr.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D149992
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
mlir/test/Dialect/OpenACC/invalid.mlir