[LLVMdev] Cast to SCEVAddRecExpr
Nema, Ashutosh
Ashutosh.Nema at amd.com
Wed Mar 18 23:40:36 PDT 2015
Hi,
I'm trying to cast one of the SCEV node to "SCEVAddRecExpr".
Every time cast return NULL, and I'm unable to do this.
SCEV Node:
((4 * (sext i32 {2,+,2}<%for.body4> to i64))<nsw> + %var)<nsw>
Casting:
const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(SCEVNode);
'var' is of type float pointer (float*).
Without 'sext' it works, but I'm wondering why it not working in above case.
I'm not sure, is such casting allowed ?
Regards,
Ashutosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150319/e7c2d65e/attachment.html>
More information about the llvm-dev
mailing list