[llvm] fb57171 - [TableGen] Dump RC.AllocationPriority with -register-info-debug

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 08:32:20 PDT 2022


Author: Jay Foad
Date: 2022-04-26T16:29:26+01:00
New Revision: fb571719d5c9bd2b7f09695f7242cdf09850b9ae

URL: https://github.com/llvm/llvm-project/commit/fb571719d5c9bd2b7f09695f7242cdf09850b9ae
DIFF: https://github.com/llvm/llvm-project/commit/fb571719d5c9bd2b7f09695f7242cdf09850b9ae.diff

LOG: [TableGen] Dump RC.AllocationPriority with -register-info-debug

Added: 
    

Modified: 
    llvm/utils/TableGen/RegisterInfoEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/RegisterInfoEmitter.cpp b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
index cafe233005c6d..8696cbbc1c9f3 100644
--- a/llvm/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
@@ -1726,6 +1726,7 @@ void RegisterInfoEmitter::debugDump(raw_ostream &OS) {
     OS << "\tHasDisjunctSubRegs: " << RC.HasDisjunctSubRegs << '\n';
     OS << "\tCoveredBySubRegs: " << RC.CoveredBySubRegs << '\n';
     OS << "\tAllocatable: " << RC.Allocatable << '\n';
+    OS << "\tAllocationPriority: " << unsigned(RC.AllocationPriority) << '\n';
     OS << "\tRegs:";
     for (const CodeGenRegister *R : RC.getMembers()) {
       OS << " " << R->getName();


        


More information about the llvm-commits mailing list