[LLVMdev] How to recognize the declaring code scopes of stack variables

Eric Lu eirc.lew at gmail.com
Thu Jul 11 19:45:05 PDT 2013


Hi,

  If I want to know where the stack variables are declared? For example,
 whether it is declared within a loop or not?  Like variables a[100] and
temp.

  int a[100];
  for( int i = 0; i < N; i++){
      int temp;
    }

  Can this be done in LLVM IR? Or should be implemented in Clang.


Thanks!


Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130712/21e98579/attachment.html>


More information about the llvm-dev mailing list