From 9b284bbafd9e57da79b41c8f997ec6d89d7f2378 Mon Sep 17 00:00:00 2001 From: Evandro Menezes Date: Tue, 18 Dec 2018 20:45:50 +0000 Subject: [PATCH] [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 --- lib/MCA/HardwareUnits/ResourceManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'; } -- 2.50.1