[llvm-branch-commits] [flang] [flang][OpenMP] Convert DataSharingProcessor to omp::Clause (PR #81629)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Feb 20 08:06:23 PST 2024
================
@@ -1384,30 +1386,28 @@ void DataSharingProcessor::copyLastPrivateSymbol(
}
void DataSharingProcessor::collectOmpObjectListSymbol(
- const Fortran::parser::OmpObjectList &ompObjectList,
+ const omp::ObjectList &objects,
llvm::SetVector<const Fortran::semantics::Symbol *> &symbolSet) {
- for (const Fortran::parser::OmpObject &ompObject : ompObjectList.v) {
- Fortran::semantics::Symbol *sym = getOmpObjectSymbol(ompObject);
+ for (const omp::Object &object : objects) {
+ Fortran::semantics::Symbol *sym = object.sym;
----------------
skatrak wrote:
Nit: I think `object.sym` can be passed directly to the call below now that this becomes a trivial statement.
https://github.com/llvm/llvm-project/pull/81629
More information about the llvm-branch-commits
mailing list