LLVM  14.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]
Collaboration diagram for llvm::BCVBR< Width >:
Collaboration 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<>
static void assertValid (const T &data)
 Asserts that the given data is a valid value for this field. More...
 
static T convert (T rawValue)
 Converts a raw numeric representation of this value to its preferred type. More...
 

Additional Inherited Members

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

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 102 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 110 of file BitcodeConvenience.h.

References assert().

◆ emitOp()

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

Definition at line 106 of file BitcodeConvenience.h.

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


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