[llvm] 4059faf - [TableGen] Update comment for size of NumToSkip field in DecoderEmitter. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 10:13:44 PST 2025


Author: Craig Topper
Date: 2025-02-26T10:12:38-08:00
New Revision: 4059faf61355f15818d4bb800e8a3337658f3b97

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

LOG: [TableGen] Update comment for size of NumToSkip field in DecoderEmitter. NFC

NumToSkip is 24 bits. It used to be 16 bits.

Added: 
    

Modified: 
    llvm/utils/TableGen/DecoderEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index b847031fdc00a..4e591f580477e 100644
--- a/llvm/utils/TableGen/DecoderEmitter.cpp
+++ b/llvm/utils/TableGen/DecoderEmitter.cpp
@@ -681,7 +681,7 @@ static void resolveTableFixups(DecoderTable &Table, const FixupList &Fixups,
   for (FixupList::const_reverse_iterator I = Fixups.rbegin(), E = Fixups.rend();
        I != E; ++I) {
     // Calculate the distance from the byte following the fixup entry byte
-    // to the destination. The Target is calculated from after the 16-bit
+    // to the destination. The Target is calculated from after the 24-bit
     // NumToSkip entry itself, so subtract two  from the displacement here
     // to account for that.
     uint32_t FixupIdx = *I;


        


More information about the llvm-commits mailing list