[TableGen] Remove unused getMinimalTypeForEnumBitfield
authorKazu Hirata <kazu@google.com>
Thu, 18 May 2023 03:32:37 +0000 (20:32 -0700)
committerKazu Hirata <kazu@google.com>
Thu, 18 May 2023 03:32:37 +0000 (20:32 -0700)
The last use was removed by:

  commit e98944ed47acd04279184343017aa2bf34999111
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
  Date:   Mon Mar 11 17:04:35 2019 +0000

llvm/utils/TableGen/Types.cpp
llvm/utils/TableGen/Types.h

index a6682da..aca8e36 100644 (file)
@@ -34,11 +34,3 @@ const char *llvm::getMinimalTypeForRange(uint64_t Range, unsigned MaxSize LLVM_A
     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);
-}
index 17c7742..f369d61 100644 (file)
@@ -16,9 +16,6 @@ namespace llvm {
 /// 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