[LLVMdev] Live values detection in LLVM

Matthieu Moy Matthieu.Moy at grenoble-inp.fr
Tue Mar 1 01:40:47 PST 2011


[ Note: I'm working with Julien, we talked about the issue off-list ]

Julien Henry <Julien.Henry at imag.fr> writes:

> Hi all,
>
>
> At some points of my program, I would like to know if some LLVM values 
> are live or not. For that, I'm using the LiveValues pass, which gives me 
> methods such as :
>
> isLiveThroughBlock(Value * v, BasicBlock * b)
> isKilledInBlock(Value * v, BasicBlock * b)

This pass has just been removed in the trunk LLVM:

commit 11ae8292f73d31a3740097cc446a789ca13cdd7f
Author: Dan Gohman <gohman at apple.com>
Date:   Mon Feb 28 19:37:59 2011 +0000

    Delete the LiveValues pass. I won't get get back to the project it
    was started for in the foreseeable future.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126668 91177308-0d34-0410-b5e6-96231b3b80d8

You should probably look at LiveVariables (yes, "Variables", not
"Values") instead:

  http://llvm.org/docs/doxygen/html/LiveVariables_8h_source.html

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/



More information about the llvm-dev mailing list