Hello all,
What is the best way to compare IR instructions in one basic block to another one’s?
Thank you,
Best,
Parnian
Hello all,
What is the best way to compare IR instructions in one basic block to another one’s?
Thank you,
Best,
Parnian
in what sense?
comparing arithmetical operations in a function’s IR to operations in another function’s IR. I want to see they share similar arithmetic opcode, I don’t care about their sequence at this time.
Thanks,
Best,
Parnian
Take a look at llvm-diff:
http://llvm.org/docs/CommandGuide/llvm-diff.html
I don't use it by myself, so I cannot give any advice/help about it.
Michael
The question seems to be cryptic to me as well.
Do you want to do it during code generation or after the code is generated (like binary to binary comparison)?