-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flang][Lower] Convert OMP Map and related functions to evaluate::Expr #81626
Commits on Feb 22, 2024
-
[flang][OpenMP] Implement flexible OpenMP clause representation
Introduce a set of generic classes (templates) that represent OpenMP clauses in a language-agnostic manner. OpenMP clauses can contain expressions and data objects and the exact representation of each depends on the source language of the compiled program. To deal with this, the templates depend on two type parameters: - IdType: type that represent object's identity (in a way that satisfied OpenMP requirements), and - ExprType: type that can represent numeric values, as well as data references (e.g. x.y[1].z[2]). In addition to that, implement code instantiating these templates from flang's AST. This patch only introduces the new classes, they are not yet used anywhere.
Configuration menu - View commit details
-
Copy full SHA for e16585a - Browse repository at this point
Copy the full SHA e16585aView commit details
Commits on Feb 23, 2024
-
[flang][OpenMP] Convert unique clauses in ClauseProcessor
Temporarily rename old clause list to `clauses2`, old clause iterator to `ClauseIterator2`. Change `findUniqueClause` to iterate over `omp::Clause` objects, modify all handlers to operate on 'omp::clause::xyz` equivalents.
Configuration menu - View commit details
-
Copy full SHA for fafbd98 - Browse repository at this point
Copy the full SHA fafbd98View commit details -
[flang][OpenMP] Convert repeatable clauses (except Map) in ClauseProc…
…essor Rename `findRepeatableClause` to `findRepeatableClause2`, and make the new `findRepeatableClause` operate on new `omp::Clause` objects. Leave `Map` unchanged, because it will require more changes for it to work.
Configuration menu - View commit details
-
Copy full SHA for 655dce5 - Browse repository at this point
Copy the full SHA 655dce5View commit details -
[flang][Lower] Convert OMP Map and related functions to evaluate::Expr
The related functions are `gatherDataOperandAddrAndBounds` and `genBoundsOps`. The former is used in OpenACC as well, and it was updated to pass evaluate::Expr instead of parser objects. The difference in the test case comes from unfolded conversions of index expressions, which are explicitly of type integer(kind=8). Delete now unused `findRepeatableClause2` and `findClause2`. Add `AsGenericExpr` that takes std::optional. It already returns optional Expr. Making it accept an optional Expr as input would reduce the number of necessary checks when handling frequent optional values in evaluator.
Configuration menu - View commit details
-
Copy full SHA for bf64cd3 - Browse repository at this point
Copy the full SHA bf64cd3View commit details
Commits on Mar 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 87a0f19 - Browse repository at this point
Copy the full SHA 87a0f19View commit details
Commits on Mar 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8441244 - Browse repository at this point
Copy the full SHA 8441244View commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 17ea8de - Browse repository at this point
Copy the full SHA 17ea8deView commit details