<div dir="ltr">Hi, <div><br></div><div>I was looking at trying to get loop induction variable at IR level. LLVM documentation mentioned indvars pass and getCanonicalInductionVariable() to get them, I tried running the indvars pass and then a custom pass which iterates through loops and uses the function to obtain variable for a simple loop program. But the API returns null. I also read in similar posts that the indvars pass is not available in the current version but documentation still mentions them.</div><div><br></div><div>Is there something I am missing in my method , or is there an alternative method to get the induction variable in the latest version.</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Regards<div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>Archa</div></div><br><div><div><div><br></div></div></div></div></div></div></div></div></div></div>
</div></div>