Assume my target .bc file has two instruction,
%3 = load volatile i32* %i, align 4
%4 = load i32** %sum, align 8
Both of them are Load instruction. I would like to know how to extract the different variables %i and %sum for some conditional compare. I have tried to print something like:
errs()<< instruction->getOperand(i)->getName(); // print out the ith operand's name
But it turns out that the things returned are garbled. Hope anyone with same experience could help me.