Compares two IR snapshots and reports per-function differences.
Declared in <llvm/Passes/StandardInstrumentations.h>
template<typename T>
class IRComparer;
The class is created with the 2 IRs to compare and then compare is called. The static function analyzeIR is used to build up the IR representation.
| Name | Description |
|---|---|
IRComparer [constructor] | Construct a comparer for Before and After IR snapshots. |
compare | Compare the two IRs, invoking CompareFunc for each function pair. |
| Name | Description |
|---|---|
analyzeIR | Analyze IR and build the IR representation in Data. |
| Name | Description |
|---|---|
generateFunctionData | Generate the data for F into Data. |
| Name | Description |
|---|---|
After | IR snapshot taken after the pass. |
Before | IR snapshot taken before the pass. |