17 #ifndef LLVM_BITSTREAM_BITCODES_H 18 #define LLVM_BITSTREAM_BITCODES_H 121 assert(isEncoding() && hasEncodingData());
141 if (C >=
'a' && C <=
'z')
return true;
142 if (C >=
'A' && C <=
'Z')
return true;
143 if (C >=
'0' && C <=
'9')
return true;
144 if (C ==
'.' || C ==
'_')
return true;
148 if (C >=
'a' && C <=
'z')
return C-
'a';
149 if (C >=
'A' && C <=
'Z')
return C-
'A'+26;
150 if (C >=
'0' && C <=
'9')
return C-
'0'+26+26;
151 if (C ==
'.')
return 62;
152 if (C ==
'_')
return 63;
157 assert((V & ~63) == 0 &&
"Not a Char6 encoded character!");
158 return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._" 174 : OperandList(OperandList) {}
177 return static_cast<unsigned>(OperandList.
size());
180 return OperandList[
N];
Encoding getEncoding() const
BLOCKINFO_BLOCK is used to define metadata about blocks, for example, standard abbrevs that should be...
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
This class represents lattice values for constants.
void push_back(const T &Elt)
BitCodeAbbrev - This class represents an abbreviation record.
void Add(const BitCodeAbbrevOp &OpInfo)
block Block Frequency true
uint64_t getLiteralValue() const
static unsigned EncodeChar6(char C)
BitstreamWrapperHeader
Offsets of the 32-bit fields of bitstream wrapper header.
StandardBlockIDs
StandardBlockIDs - All bitcode files can optionally include a BLOCKINFO block, which contains metadat...
const BitCodeAbbrevOp & getOperandInfo(unsigned N) const
BlockInfoCodes
BlockInfoCodes - The blockinfo block contains metadata about user-defined blocks. ...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
BitCodeAbbrevOp(uint64_t V)
BitCodeAbbrevOp - This describes one or more operands in an abbreviation.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
BitCodeAbbrev(std::initializer_list< BitCodeAbbrevOp > OperandList)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
DEFINE_ABBREV - Defines an abbrev for the current block.
unsigned getNumOperandInfos() const
uint64_t getEncodingData() const
static char DecodeChar6(unsigned V)
static bool isChar6(char C)
isChar6 - Return true if this character is legal in the Char6 encoding.
bool hasEncodingData() const
static bool hasEncodingData(Encoding E)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
BitCodeAbbrevOp(Encoding E, uint64_t Data=0)