[llvm-dev] Using polly to change loop schedules in an llvm pass
Michael Kruse via llvm-dev
llvm-dev at lists.llvm.org
Thu Oct 22 11:15:19 PDT 2020
Hi,
for passes that apply to SCoPs I would suggest to write a ScopPass
within polly. Importing/exporting a jscop file would be more something
for external tools. The reason is that from a LLVM loop- or
function-pass it is non-obvious what a SCoP (which is a loop nest that
fulfils the requirements for Polly's analysis to work) will be. A
ScopPass will just be invoked on previously detected SCoPs, can modify
them, and Polly will re-generate LLVM-IR again when all ScopPasses
have been applied.
Michael
Am Do., 22. Okt. 2020 um 11:18 Uhr schrieb Ejjeh, Adel via llvm-dev
<llvm-dev at lists.llvm.org>:
>
> Hello All
>
>
>
> I am looking into using polly, in conjunction with a set of passes that I am writing, to modify loop schedules/transform loops. I was wondering if there is a way to interface with polly directly through an LLVM pass? It seems by looking at the documentation, that the way to modify loop schedules is to generate the jscop files, modify them, and then reload them with polly, which is not a very “friendly” mechanism to do automatically in a pass. Is my understanding of the usage of polly correct here, or am I missing something?
>
>
>
> Thanks!
>
> -Adel Ejjeh
>
> --
>
> Adel Ejjeh
>
> PhD Candidate | Computer Science
>
> University of Illinois at Urbana Champaign
>
> Email: aejjeh at illinois.edu | adel.ejjeh at gmail.com
>
> Zoom: https://illinois.zoom.us/my/aejjeh
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list