Unverified Commit 0b665c3d authored by Spenser Bauman's avatar Spenser Bauman Committed by GitHub
Browse files

[mlir][scf] Implement conversion from scf.forall to scf.parallel (#94109)



There is currently no path to lower scf.forall to scf.parallel with the
goal of targeting the OpenMP dialect.

In the SCF->ControlFlow conversion, scf.forall is briefly converted to
scf.parallel, but the scf.parallel is lowered directly to a sequential
loop. This makes experimenting with scf.forall for CPU execution
difficult.

This change factors out the rewrite in the SCF->ControlFlow pass into a
utility function that can then be used in the SCF->ControlFlow lowering
and via a separate -scf-forall-to-parallel pass.

---------

Co-authored-by: default avatarSpenser Bauman <sabauma@fastmail>
parent e775efce
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment