llvm / Polygeist

C/C++ frontend for MLIR. Also features polyhedral optimizations, parallel optimizations, and more!
https://polygeist.llvm.org
Other
472 stars 112 forks source link

Add ISL support for polymer #380

Closed vatai closed 2 months ago

vatai commented 9 months ago

This exports scop https://github.com/llvm/Polygeist/blob/add-polymer2/tools/polymer/lib/Target/OpenScop/ConvertFromOpenScop.cc

vatai commented 9 months ago

as for polly, grep for isl :)

onehr commented 8 months ago

Hi Vatai, I have a question about this: as far as I know, ISL doesn't intend to include OpenScop format, I tried several months ago to bring up OSL with isl together for smoother integration (but ended up thinking it would be a big project and maybe not worth it), so I was wondering what's your plan and what would be the benefits here (considering that there's already PPCG with ISL, compared with Pluto with OSL).

Thanks.

vatai commented 8 months ago

I have a project in ISL which would be a nice fit with polygeist. I know Skimo doesn't plan to support OSL.

Wanna help with this? ^_^ currently this is in a very deep backlog for me, i.e. I don't know when I'll get around doing it... but it will definitely happen.

To be honest the conversion between OSL and ISL doesn't seem that hard. Definitely a pain in the neck, but don't see any particular challenges. MLIR <-> OSL seems much harder (I'm saying this without going too deep into the code).

onehr commented 7 months ago

Got it, @vatai let me see what I can do with this.