mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Add statistic for # of emitWord() calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1c53405b68
commit
f478556740
@ -26,6 +26,7 @@ namespace {
|
||||
Statistic<> OverwrittenCalls("call-ovwr", "Number of over-written calls");
|
||||
Statistic<> UnmodifiedCalls("call-skip", "Number of unmodified calls");
|
||||
Statistic<> CallbackCalls("callback", "Number CompilationCallback() calls");
|
||||
Statistic<> WordsEmitted("words-emitted", "No. of words emitted to memory");
|
||||
}
|
||||
|
||||
bool UltraSparc::addPassesToEmitMachineCode(FunctionPassManager &PM,
|
||||
@ -440,6 +441,7 @@ SparcV9CodeEmitter::~SparcV9CodeEmitter() {
|
||||
|
||||
void SparcV9CodeEmitter::emitWord(unsigned Val) {
|
||||
// Output the constant in big endian byte order...
|
||||
++WordsEmitted;
|
||||
unsigned byteVal;
|
||||
for (int i = 3; i >= 0; --i) {
|
||||
byteVal = Val >> 8*i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user