[llvm-dev] Getting the symbolic expression for an address calculation

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 30 13:16:49 PDT 2016


On 9/30/2016 12:16 PM, Charith Mendis via llvm-dev wrote:
>
> Hi all,
>
> What is the best way to get the symbolic expression for an address 
> calculation in llvm specially when  memory addresses are calculated 
> within a loop.

ScalarEvolution works with pointers as well as integers; if you call 
getSCEV on an address based on an induction variable, you'll get a 
SCEVAddRecExpr.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project



More information about the llvm-dev mailing list