LLVM 19.0.0git
Static Public Member Functions | List of all members
llvm::BCVBR< Width > Class Template Reference

Represents a variable-width value in a bitcode record. More...

#include "llvm/Bitcode/BitcodeConvenience.h"

Inheritance diagram for llvm::BCVBR< Width >:
Inheritance graph
[legend]

Static Public Member Functions

static void emitOp (llvm::BitCodeAbbrev &abbrev)
 
template<typename T >
static void assertValid (const T &data)
 
- Static Public Member Functions inherited from llvm::detail::BCField< Compound >
template<typename T >
static void assertValid (const T &data)
 Asserts that the given data is a valid value for this field.
 
template<typename T >
static T convert (T rawValue)
 Converts a raw numeric representation of this value to its preferred type.
 

Additional Inherited Members

- Static Public Attributes inherited from llvm::detail::BCField< Compound >
static const bool IsCompound = Compound
 

Detailed Description

template<unsigned Width>
class llvm::BCVBR< Width >

Represents a variable-width value in a bitcode record.

The Width parameter should include the continuation bit.

Note that the LLVM bitcode format only supports unsigned values.

Definition at line 103 of file BitcodeConvenience.h.

Member Function Documentation

◆ assertValid()

template<unsigned Width>
template<typename T >
static void llvm::BCVBR< Width >::assertValid ( const T data)
inlinestatic

Definition at line 111 of file BitcodeConvenience.h.

References assert().

◆ emitOp()

template<unsigned Width>
static void llvm::BCVBR< Width >::emitOp ( llvm::BitCodeAbbrev abbrev)
inlinestatic

Definition at line 107 of file BitcodeConvenience.h.

References llvm::BitCodeAbbrev::Add(), and llvm::BitCodeAbbrevOp::VBR.


The documentation for this class was generated from the following file: