Skip to content
Unverified Commit 80c27abb authored by Rajan Walia's avatar Rajan Walia Committed by Valentin Clement
Browse files

[fir] Add affine demotion pass



Add affine demotion pass.
Affine dialect's default lowering for loads and stores is different from
fir as it uses the `memref` type. The `memref` type is not compatible with
the Fortran runtime. Therefore, conversion of memory operations back to
`fir.load` and `fir.store` with `!fir.ref<?>` types is required.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: default avatarJean Perier <jperier@nvidia.com>
Co-authored-by: default avatarV Donaldson <vdonaldson@nvidia.com>
Co-authored-by: default avatarRajan Walia <walrajan@gmail.com>
Co-authored-by: default avatarSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Co-authored-by: default avatarValentin Clement <clementval@gmail.com>

Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D111257
parent b6426d52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment