Skip to content
Unverified Commit b6b0756c authored by jeanPerier's avatar jeanPerier Committed by GitHub
Browse files

[flang] Allow lowering of sub-expressions to be overridden (#69944)

OpenACC/OpenMP atomic lowering needs a finer control over expression
lowering. This patch allows mapping evaluate::Expr<T> to mlir::Value so
that any subsequent expression lowering will use these values when an
operand is a mapped Expr<T>.

This is an alternative to
https://github.com/llvm/llvm-project/pull/69866

 From which I took the
test and some of the logic to extract the non-atomic sub-expression.

---------

Co-authored-by: default avatarNimish Mishra <neelam.nimish@gmail.com>
parent 34af57c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment