[Mlir-commits] [mlir] [mlir][Conversion] Raise SCF to Affine. (Ported from Polygeist) (PR #158267)

Terapines MLIR llvmlistbot at llvm.org
Fri Oct 24 02:02:25 PDT 2025


terapines-osc-mlir wrote:

> First of all, thank you so much for helping with this -- it would be awesome to see this upstream (as many many projects would benefit from the polygeist raising and other transformations).
> 
> The most up to date version of the code currently lives here (and contains raising of not just loops, but memory, etc): https://github.com/EnzymeAD/Enzyme-JAX/blob/main/src/enzyme_ad/jax/Passes/AffineCFG.cpp
> 
> At this point might I recommend perhaps we just add a separate polygeist dialect upstream and make the requisite pass under that?
> 
> cc @Pangoraw @ftynse @ivanradanov

Hi, William, thanks for your suggestion.  Introducing a separate dialect for this seems to be much more work (coding, discussion, etc.)  than this PR.  We would like to do it if there are enough benefits, so can you tell us more about your plan or thoughts?

https://github.com/llvm/llvm-project/pull/158267


More information about the Mlir-commits mailing list