Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reaching Definitions using LLVM

I am trying to implement the naive implementation of Reaching Definitions. However, I am having trouble navigating through the LLVM framework. I am thinking of figuring out how to obtain the GEN set for a basic block first and then going for KILL sets (The same way as done in the naive algorithm).

Any guidance regarding the matter is appreciated. Thanks

like image 405
user2058668 Avatar asked Feb 25 '26 02:02

user2058668


1 Answers

Reaching definitions analysis does not really apply to SSA-form languages such as LLVM IR, because there's never any re-definition (or re-assignment) of a variable that was already defined earlier.

like image 132
Oak Avatar answered Feb 27 '26 03:02

Oak