LLVM 20.0.0git
Namespaces | Functions
LEB128.h File Reference
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

unsigned llvm::encodeSLEB128 (int64_t Value, raw_ostream &OS, unsigned PadTo=0)
 Utility function to encode a SLEB128 value to an output stream.
 
unsigned llvm::encodeSLEB128 (int64_t Value, uint8_t *p, unsigned PadTo=0)
 Utility function to encode a SLEB128 value to a buffer.
 
unsigned llvm::encodeULEB128 (uint64_t Value, raw_ostream &OS, unsigned PadTo=0)
 Utility function to encode a ULEB128 value to an output stream.
 
unsigned llvm::encodeULEB128 (uint64_t Value, uint8_t *p, unsigned PadTo=0)
 Utility function to encode a ULEB128 value to a buffer.
 
uint64_t llvm::decodeULEB128 (const uint8_t *p, unsigned *n=nullptr, const uint8_t *end=nullptr, const char **error=nullptr)
 Utility function to decode a ULEB128 value.
 
int64_t llvm::decodeSLEB128 (const uint8_t *p, unsigned *n=nullptr, const uint8_t *end=nullptr, const char **error=nullptr)
 Utility function to decode a SLEB128 value.
 
uint64_t llvm::decodeULEB128AndInc (const uint8_t *&p, const uint8_t *end, const char **error=nullptr)
 
int64_t llvm::decodeSLEB128AndInc (const uint8_t *&p, const uint8_t *end, const char **error=nullptr)
 
uint64_t llvm::decodeULEB128AndIncUnsafe (const uint8_t *&p)
 
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.