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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With