return "uint16_t";
return "uint8_t";
}
-
-const char *llvm::getMinimalTypeForEnumBitfield(uint64_t Size) {
- uint64_t MaxIndex = Size;
- if (MaxIndex > 0)
- MaxIndex--;
- assert(MaxIndex <= 64 && "Too many bits");
- return getMinimalTypeForRange(1ULL << MaxIndex);
-}
/// MaxSize indicates the largest size of integer to consider (in bits) and only
/// supports values of at least 32.
const char *getMinimalTypeForRange(uint64_t Range, unsigned MaxSize = 64);
-
-/// Returns the smallest unsigned integer type that can hold the given bitfield.
-const char *getMinimalTypeForEnumBitfield(uint64_t Size);
}
#endif