Skip to content

Commit 1f9d21d

Browse files
committed
Use smaller types for SDTC/NumResults/NumOperands
1 parent c233ee9 commit 1f9d21d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/SDNodeInfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enum SDNP {
2828
SDNPVariadic,
2929
};
3030

31-
enum SDTC {
31+
enum SDTC : uint8_t {
3232
SDTCisVT,
3333
SDTCisPtrTy,
3434
SDTCisInt,
@@ -56,8 +56,8 @@ struct SDTypeConstraint {
5656
};
5757

5858
struct SDNodeDesc {
59-
unsigned NumResults;
60-
int NumOperands;
59+
uint16_t NumResults;
60+
int16_t NumOperands;
6161
uint32_t Properties;
6262
uint32_t Flags;
6363
uint32_t TSFlags;

0 commit comments

Comments
 (0)