From: Evandro Menezes Date: Tue, 18 Dec 2018 20:45:50 +0000 (+0000) Subject: [llvm-mca] Dump mask in hex X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b284bbafd9e57da79b41c8f997ec6d89d7f2378;p=llvm [llvm-mca] Dump mask in hex Dump the resources masks as hexadecimal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349536 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MCA/HardwareUnits/ResourceManager.cpp b/lib/MCA/HardwareUnits/ResourceManager.cpp index b62fccdfd28..e76543c53e1 100644 --- a/lib/MCA/HardwareUnits/ResourceManager.cpp +++ b/lib/MCA/HardwareUnits/ResourceManager.cpp @@ -91,8 +91,10 @@ ResourceStateEvent ResourceState::isBufferAvailable() const { #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'; }