[llvm] [MCA] Enhance debug prints of processor resources (PR #190132)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 09:20:42 PDT 2026


================
@@ -96,6 +96,11 @@ class ReleaseAtCycles {
 LLVM_ABI void computeProcResourceMasks(const MCSchedModel &SM,
                                        MutableArrayRef<uint64_t> Masks);
 
+#ifndef NDEBUG
+LLVM_ABI void dumpProcResourceMasks(const MCSchedModel &SM,
+                                    MutableArrayRef<uint64_t> Masks);
----------------
mshockwave wrote:

I don't think you should use `MutableArrayRef` here as you're not modifying the content. `ArrayRef` should suffice.

https://github.com/llvm/llvm-project/pull/190132


More information about the llvm-commits mailing list