llvm-project
bafb2cbe - [clang][OpenMP] declare_target/local clause variable can't be in map clause (#190470)

Commit
15 days ago
[clang][OpenMP] declare_target/local clause variable can't be in map clause (#190470) In OpenMP 6.0, the 'local' clause was added to the declare_target directive. Variables listed in the 'local' clause are considered to be device-local. In addition, a new map clause restriction was added: A device-local variable must not appear as a list item in a map clause. See OpenMP 6.0 specification section 7.9.6, map Clause, Restrictions, p. 386. Testing: - New error messages test for device-local variables defined in declare_target local clauses (device-local) used in map clauses. - ninja check-openmp
Author
Parents
Loading