llvm-project
a6b58e00 - [mlir][acc] Add ignore-default-none option to ACCImplicitData (#202442)

Commit
27 days ago
[mlir][acc] Add ignore-default-none option to ACCImplicitData (#202442) ACCImplicitData currently skips implicit data mapping when a visible default(none) clause is present, per the OpenACC rule that no implicit data attributes apply in that case. That default is reasonable when a frontend already verifies default(none) and ensures all user variables have an explicit data clause. Without that checking, generating implicit mappings would risk silently mapping user variables that should have been explicit under default(none). There are still cases where implicit mapping is needed even with default(none): - The frontend reports default(none) violations as warnings and compilation continues, so some user variables may reach this pass without explicit data clauses and still need implicit mapping. - Compiler-generated temps or interior pointers may be live-in to the region and still require implicit mapping even when all user variables are already explicitly mapped. In those cases, skipping implicit data entirely is too conservative. Add an ignore-default-none pass option (default: false) to generate implicit data mappings even when default(none) is present.
Parents
Loading