LLVM API Documentation

Namespaces | Functions
LEB128.h File Reference
#include "llvm/Support/raw_ostream.h"
Include dependency graph for LEB128.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


Functions

void llvm::encodeSLEB128 (int64_t Value, raw_ostream &OS)
 Utility function to encode a SLEB128 value to an output stream.
void llvm::encodeULEB128 (uint64_t Value, raw_ostream &OS, unsigned Padding=0)
 Utility function to encode a ULEB128 value to an output stream.
unsigned llvm::encodeULEB128 (uint64_t Value, uint8_t *p, unsigned Padding=0)
uint64_t llvm::decodeULEB128 (const uint8_t *p, unsigned *n=nullptr)
 Utility function to decode a ULEB128 value.
int64_t llvm::decodeSLEB128 (const uint8_t *p, unsigned *n=nullptr)
 Utility function to decode a SLEB128 value.
unsigned llvm::getULEB128Size (uint64_t Value)
 Utility function to get the size of the ULEB128-encoded value.
unsigned llvm::getSLEB128Size (int64_t Value)
 Utility function to get the size of the SLEB128-encoded value.