LLVM 22.0.0git
llvm::detail::BCField< Compound > Class Template Reference

Convenience base for all kinds of bitcode abbreviation fields. More...

#include "llvm/Bitcode/BitcodeConvenience.h"

Inheritance diagram for llvm::detail::BCField< Compound >:
[legend]

Static Public Member Functions

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.

Static Public Attributes

static const bool IsCompound = Compound

Detailed Description

template<bool Compound = false>
class llvm::detail::BCField< Compound >

Convenience base for all kinds of bitcode abbreviation fields.

This just defines common properties queried by the metaprogramming.

Definition at line 43 of file BitcodeConvenience.h.

Member Function Documentation

◆ assertValid()

template<bool Compound = false>
template<typename T>
void llvm::detail::BCField< Compound >::assertValid ( const T & data)
inlinestatic

Asserts that the given data is a valid value for this field.

Definition at line 48 of file BitcodeConvenience.h.

References data, and T.

◆ convert()

template<bool Compound = false>
template<typename T>
T llvm::detail::BCField< Compound >::convert ( T rawValue)
inlinestatic

Converts a raw numeric representation of this value to its preferred type.

Definition at line 52 of file BitcodeConvenience.h.

References T.

Member Data Documentation

◆ IsCompound

template<bool Compound = false>
const bool llvm::detail::BCField< Compound >::IsCompound = Compound
static

Definition at line 45 of file BitcodeConvenience.h.


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