[llvm] 37e717e - TableGen/GlobalISel: Fix using wrong type for instruction flags

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 01:37:48 PDT 2024


Author: Matt Arsenault
Date: 2024-10-02T12:37:41+04:00
New Revision: 37e717ec1387d8c5ec2a58a941797f5d74a1b03b

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

LOG: TableGen/GlobalISel: Fix using wrong type for instruction flags

09515f2c20111628ce81ad5f40e12e5f6af5ed2f increased the size of the
MachineInstr flags from uint16_t to uint32_t, so change TableGen
to match.

Added: 
    

Modified: 
    llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
index 315606417fc9ea..43b0eb50710363 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
@@ -55,7 +55,7 @@ enum {
   GISF_IgnoreCopies = 0x1,
 };
 
-using GISelFlags = std::uint16_t;
+using GISelFlags = std::uint32_t;
 
 //===- Helper functions ---------------------------------------------------===//
 


        


More information about the llvm-commits mailing list