[cfe-dev] Why do "Uses" always point to self?
Rafael EspĂndola
rafael.espindola at gmail.com
Wed Apr 30 11:41:13 PDT 2014
On 30 April 2014 10:42, Yaron Keren <yaron.keren at gmail.com> wrote:
> r203364
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140303/207915.html
>
> The for code could be ranged
>
> for (llvm::user i : F->users())
> if (Instruction *Inst = dyn_cast<Instruction>(i)) {
>
> and the next code segment could be
>
> for (llvm::use i : pi->uses()) {
>
Nice. That code lives in docs/ProgrammersManual.rst. Could you send a
patch to llvm-commits?
Thanks,
Rafael
More information about the cfe-dev
mailing list