llvm-project/llvm/tools/llvm-mca/Views
Fangrui Song aa708763d3 [MC] Add parameter `Address` to MCInstPrinter::printInst
printInst prints a branch/call instruction as `b offset` (there are many
variants on various targets) instead of `b address`.

It is a convention to use address instead of offset in most external
symbolizers/disassemblers. This difference makes `llvm-objdump -d`
output unsatisfactory.

Add `uint64_t Address` to printInst(), so that it can pass the argument to
printInstruction(). `raw_ostream &OS` is moved to the last to be
consistent with other print* methods.

The next step is to pass `Address` to printInstruction() (generated by
tablegen from the instruction set description). We can gradually migrate
targets to print addresses instead of offsets.

In any case, downstream projects which don't know `Address` can pass 0 as
the argument.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D72172
2020-01-06 20:42:22 -08:00
..
BottleneckAnalysis.cpp [MC] Add parameter `Address` to MCInstPrinter::printInst 2020-01-06 20:42:22 -08:00
BottleneckAnalysis.h [MCA] Improved cost computation for loop carried dependencies in the bottleneck analysis. 2019-09-19 16:05:11 +00:00
DispatchStatistics.cpp [Tools] Fixes -Wrange-loop-analysis warnings 2019-12-22 19:11:17 +01:00
DispatchStatistics.h
InstructionInfoView.cpp [MC] Add parameter `Address` to MCInstPrinter::printInst 2020-01-06 20:42:22 -08:00
InstructionInfoView.h [MCA] Add flag -show-encoding to llvm-mca. 2019-08-09 11:26:27 +00:00
RegisterFileStatistics.cpp
RegisterFileStatistics.h
ResourcePressureView.cpp [MC] Add parameter `Address` to MCInstPrinter::printInst 2020-01-06 20:42:22 -08:00
ResourcePressureView.h
RetireControlUnitStatistics.cpp [Tools] Fixes -Wrange-loop-analysis warnings 2019-12-22 19:11:17 +01:00
RetireControlUnitStatistics.h
SchedulerStatistics.cpp [Tools] Fixes -Wrange-loop-analysis warnings 2019-12-22 19:11:17 +01:00
SchedulerStatistics.h
SummaryView.cpp [Tools] Fixes -Wrange-loop-analysis warnings 2019-12-22 19:11:17 +01:00
SummaryView.h
TimelineView.cpp [MC] Add parameter `Address` to MCInstPrinter::printInst 2020-01-06 20:42:22 -08:00
TimelineView.h [MCA] Show aggregate over Average Wait times for the whole snippet (PR43219) 2019-10-10 14:46:21 +00:00
View.cpp
View.h