llvm.org GIT mirror llvm / bb50ac5
[llvm-mca] Display masks in hex Display the resources masks as hexadecimal. Otherwise, NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350777 91177308-0d34-0410-b5e6-96231b3b80d8 Evandro Menezes 1 year, 10 months ago
2 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
9898
9999 #ifndef NDEBUG
100100 void ResourceState::dump() const {
101 dbgs() << "MASK=" << format_hex(ResourceMask, 8)
102 << ", SZMASK=" << format_hex(ResourceSizeMask, 8)
103 << ", RDYMASK=" << format_hex(ReadyMask, 8)
101 dbgs() << "MASK=" << format_hex(ResourceMask, 16)
102 << ", SZMASK=" << format_hex(ResourceSizeMask, 16)
103 << ", RDYMASK=" << format_hex(ReadyMask, 16)
104104 << ", BufferSize=" << BufferSize
105105 << ", AvailableSlots=" << AvailableSlots
106106 << ", Reserved=" << Unavailable << '\n';
177177
178178 LLVM_DEBUG({
179179 for (const std::pair &R : ID.Resources)
180 dbgs() << "\t\tMask=" << R.first << ", cy=" << R.second.size() << '\n';
180 dbgs() << "\t\tMask=" << format_hex(R.first, 16) << ", " <<
181 "cy=" << R.second.size() << '\n';
181182 for (const uint64_t R : ID.Buffers)
182 dbgs() << "\t\tBuffer Mask=" << R << '\n';
183 dbgs() << "\t\tBuffer Mask=" << format_hex(R, 16) << '\n';
183184 });
184185 }
185186