LLVM API Documentation
#include <BitCodes.h>
Public Types | |
enum | Encoding { Fixed = 1, VBR = 2, Array = 3, Char6 = 4, Blob = 5 } |
Public Member Functions | |
BitCodeAbbrevOp (uint64_t V) | |
BitCodeAbbrevOp (Encoding E, uint64_t Data=0) | |
bool | isLiteral () const |
bool | isEncoding () const |
uint64_t | getLiteralValue () const |
Encoding | getEncoding () const |
uint64_t | getEncodingData () const |
bool | hasEncodingData () const |
Static Public Member Functions | |
static bool | hasEncodingData (Encoding E) |
static bool | isChar6 (char C) |
isChar6 - Return true if this character is legal in the Char6 encoding. | |
static unsigned | EncodeChar6 (char C) |
static char | DecodeChar6 (unsigned V) |
BitCodeAbbrevOp - This describes one or more operands in an abbreviation. This is actually a union of two different things: 1. It could be a literal integer value ("the operand is always 17"). 2. It could be an encoding specification ("this operand encoded like so").
Definition at line 87 of file BitCodes.h.
Definition at line 92 of file BitCodes.h.
llvm::BitCodeAbbrevOp::BitCodeAbbrevOp | ( | uint64_t | V | ) | [inline, explicit] |
Definition at line 100 of file BitCodes.h.
llvm::BitCodeAbbrevOp::BitCodeAbbrevOp | ( | Encoding | E, |
uint64_t | Data = 0 |
||
) | [inline, explicit] |
Definition at line 101 of file BitCodes.h.
static char llvm::BitCodeAbbrevOp::DecodeChar6 | ( | unsigned | V | ) | [inline, static] |
Definition at line 148 of file BitCodes.h.
References llvm_unreachable.
static unsigned llvm::BitCodeAbbrevOp::EncodeChar6 | ( | char | C | ) | [inline, static] |
Definition at line 139 of file BitCodes.h.
References llvm_unreachable.
Encoding llvm::BitCodeAbbrevOp::getEncoding | ( | ) | const [inline] |
Definition at line 111 of file BitCodes.h.
References isEncoding().
Referenced by hasEncodingData(), llvm::BitstreamCursor::readRecord(), and llvm::BitstreamCursor::skipRecord().
uint64_t llvm::BitCodeAbbrevOp::getEncodingData | ( | ) | const [inline] |
Definition at line 112 of file BitCodes.h.
References hasEncodingData(), and isEncoding().
uint64_t llvm::BitCodeAbbrevOp::getLiteralValue | ( | ) | const [inline] |
Definition at line 108 of file BitCodes.h.
References isLiteral().
bool llvm::BitCodeAbbrevOp::hasEncodingData | ( | ) | const [inline] |
Definition at line 117 of file BitCodes.h.
References getEncoding(), and hasEncodingData().
Referenced by getEncodingData(), hasEncodingData(), and llvm::BitstreamCursor::ReadAbbrevRecord().
static bool llvm::BitCodeAbbrevOp::hasEncodingData | ( | Encoding | E | ) | [inline, static] |
Definition at line 118 of file BitCodes.h.
References Array, Blob, Char6, Fixed, llvm_unreachable, and VBR.
static bool llvm::BitCodeAbbrevOp::isChar6 | ( | char | C | ) | [inline, static] |
isChar6 - Return true if this character is legal in the Char6 encoding.
Definition at line 132 of file BitCodes.h.
Referenced by WriteConstants(), WriteStringRecord(), and WriteValueSymbolTable().
bool llvm::BitCodeAbbrevOp::isEncoding | ( | ) | const [inline] |
Definition at line 105 of file BitCodes.h.
Referenced by getEncoding(), and getEncodingData().
bool llvm::BitCodeAbbrevOp::isLiteral | ( | ) | const [inline] |
Definition at line 104 of file BitCodes.h.
Referenced by getLiteralValue(), llvm::BitstreamCursor::readRecord(), and llvm::BitstreamCursor::skipRecord().