[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-dev
Subject: Re: [llvm-dev] [cfe-dev] How to check if a variable is updated inside a loop?
From: Min-Yih Hsu via llvm-dev <llvm-dev () lists ! llvm ! org>
Date: 2021-12-24 1:22:21
Message-ID: 726AED09-6FFC-4F37-A78B-7258B3A4890D () uci ! edu
[Download RAW message or body]
If you only want to see if a specific instruction is part of a loop, `llvm::Loop` can \
give you a list of enclosing basic blocks. Also, I believe this question is more \
suitable in the llvm-dev mailing list (Cc-ed)
-Min
> On Dec 23, 2021, at 4:35 AM, karan raj singh ranawat via cfe-dev \
> <cfe-dev@lists.llvm.org> wrote:
> If there is a variable outside a loop, and if it is used inside a loop. How can I \
> check in the LLVM analysis if the variable is getting modified inside a loop \
> iteration.
> Ex: int i = 0;
> for(;;i++){}
> When there is i++, the load instruction updates existing i. How can I identify if \
> the load instruction is part of a loop. \
> _______________________________________________ cfe-dev mailing list
> cfe-dev@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
_______________________________________________
LLVM Developers mailing list
llvm-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic