<div dir="ltr">Dear All,<div><br></div><div>My name is Georgios Zacharopoulos and I am a freshly started PhD student in Università della Svizzera italiana (USI) in Lugano.</div><div><br></div><div>I am currently working with Polly-LLVM in order to identify certain characteristics of applications in the respective ScoPs of said applications. </div><div>In the latest version of Polly there was an addition of an <b>Offset </b>parameter in the <b>MemoryAccess </b>class at the ScopInfo.h file. This offset parameter is the Accessed memory location relative to the parameter's Base Address (<b>BaseAddr)</b>, which is the initial accessed array's address. As an example we have the following Read access that resides in the body loop of the second innermost loop.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Read image1[{{2050,+,1024}<nw><%for.cond.1.preheader>,+,1}<nw><%for.body.3>]</blockquote><div><div><br></div><div>This part printed: "{{2050,+,1024}<nw><%for.cond.1.preheader>,+,1}<nw><%for.body.3>" is the offset that according to the description in the ScopInfo.h file can only be printed at the moment, but not accessed or retrieved. I am interested in retrieving the first constant number from this offset, so in this case: "2050". But since the offset is private, I am not allowed to access it directly. So my question is if there is any way that I can retrieve this number from Memory Accesses like the example above. I believe the way to do it is by using functions and objects from <b>isl library, </b>but unfortunately I was not able to achieve it.</div><div><br></div><div>I am able to retrieve the Access Relation of such a Memory Access which is an isl_map object: </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">{ Stmt_for_body_3[i0, i1] -> MemRef_image1[2050 + 1024i0 + i1] }</blockquote><div><br></div><div><br></div><div>I am suspecting that by manipulating this object with the appropriate isl operations I could retrieve this number, "2050" in this case, from the Access Relation.</div><div>If you have any suggestions or tips please let me know.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best Regards,<div>Georgios Zacharopoulos</div></div></div>
</div></div>