I am trying to do some instrumentation over an ll file. One of the task I want to achieve is the following.
Whenever I meet an AllocaInstr like:
%1 = alloca i32
I want to instrument a function call __save_addr()
after it as follows:
%1 = alloca i32
call __save_addr(i32* %1)
Is there a way to achieve this?