llvm-project
9a8c0180 - [mlir][acc] add VariableInfo attribute to thread language specific information about privatized variables (#186368)

Commit
31 days ago
[mlir][acc] add VariableInfo attribute to thread language specific information about privatized variables (#186368) Add a new acc::VariableInfoAttr attribute that can be extended and implemented by language dialects to carry language specific information about variables that is not reflected into the MLIR type system and is needed in the implementation of the init/copy/destroy APIs. A new genPrivateVariableInfo API is added to the MappableTypeInterface to generate such attribute from an mlir::Value for the host variable. The use case and motivation is the Fortran OPTIONAL attribute. This patch adds a new fir::OpenACCFortranVariableInfoAtt that implements the acc::VariableInfoAttr to carry the OPTIONAL information around.
Author
Parents
Loading