[llvm] r349536 - [llvm-mca] Dump mask in hex
Evandro Menezes via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 18 12:45:50 PST 2018
Author: evandro
Date: Tue Dec 18 12:45:50 2018
New Revision: 349536
URL: http://llvm.org/viewvc/llvm-project?rev=349536&view=rev
Log:
[llvm-mca] Dump mask in hex
Dump the resources masks as hexadecimal.
Modified:
llvm/trunk/lib/MCA/HardwareUnits/ResourceManager.cpp
Modified: llvm/trunk/lib/MCA/HardwareUnits/ResourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MCA/HardwareUnits/ResourceManager.cpp?rev=349536&r1=349535&r2=349536&view=diff
==============================================================================
--- llvm/trunk/lib/MCA/HardwareUnits/ResourceManager.cpp (original)
+++ llvm/trunk/lib/MCA/HardwareUnits/ResourceManager.cpp Tue Dec 18 12:45:50 2018
@@ -91,8 +91,10 @@ ResourceStateEvent ResourceState::isBuff
#ifndef NDEBUG
void ResourceState::dump() const {
- dbgs() << "MASK: " << ResourceMask << ", SIZE_MASK: " << ResourceSizeMask
- << ", RDYMASK: " << ReadyMask << ", BufferSize=" << BufferSize
+ dbgs() << "MASK=" << format_hex(ResourceMask, 8)
+ << ", SZMASK=" << format_hex(ResourceSizeMask, 8)
+ << ", RDYMASK=" << format_hex(ReadyMask, 8)
+ << ", BufferSize=" << BufferSize
<< ", AvailableSlots=" << AvailableSlots
<< ", Reserved=" << Unavailable << '\n';
}
More information about the llvm-commits
mailing list