Skip to content

Commit f2607df

Browse files
committed
[TableGen] Use uint8_t for bit_value_t enum. NFC
This reduces the amount of space needed for vectors of bit_value_t and allows the user of memset. Also reorder the enum values so BIT_FALSE is 0 and BIT_TRUE is 1.
1 parent d65719f commit f2607df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ class DecoderEmitter {
190190
//
191191
// BIT_UNFILTERED is used as the init value for a filter position. It is used
192192
// only for filter processings.
193-
typedef enum {
194-
BIT_TRUE, // '1'
193+
typedef enum : uint8_t {
195194
BIT_FALSE, // '0'
195+
BIT_TRUE, // '1'
196196
BIT_UNSET, // '?'
197197
BIT_UNFILTERED // unfiltered
198198
} bit_value_t;

0 commit comments

Comments
 (0)