17#ifndef LLVM_BITSTREAM_BITCODES_H
18#define LLVM_BITSTREAM_BITCODES_H
47 return E >= 1 &&
E <= 5;
82 static bool isChar6(
char C) {
return isAlnum(
C) ||
C ==
'.' ||
C ==
'_'; }
84 if (
C >=
'a' &&
C <=
'z')
return C-
'a';
85 if (
C >=
'A' &&
C <=
'Z')
return C-
'A'+26;
86 if (
C >=
'0' &&
C <=
'9')
return C-
'0'+26+26;
87 if (
C ==
'.')
return 62;
88 if (
C ==
'_')
return 63;
93 assert((V & ~63) == 0 &&
"Not a Char6 encoded character!");
94 return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._"
110 : OperandList(OperandList) {}
113 return static_cast<unsigned>(OperandList.
size());
116 return OperandList[
N];
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
BitCodeAbbrevOp - This describes one or more operands in an abbreviation.
static bool isChar6(char C)
isChar6 - Return true if this character is legal in the Char6 encoding.
uint64_t getLiteralValue() const
static bool isValidEncoding(uint64_t E)
BitCodeAbbrevOp(uint64_t V)
static unsigned EncodeChar6(char C)
bool hasEncodingData() const
static bool hasEncodingData(Encoding E)
BitCodeAbbrevOp(Encoding E, uint64_t Data=0)
Encoding getEncoding() const
static char DecodeChar6(unsigned V)
uint64_t getEncodingData() const
BitCodeAbbrev - This class represents an abbreviation record.
BitCodeAbbrev(std::initializer_list< BitCodeAbbrevOp > OperandList)
unsigned getNumOperandInfos() const
void Add(const BitCodeAbbrevOp &OpInfo)
const BitCodeAbbrevOp & getOperandInfo(unsigned N) const
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.