LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
llvm::AMDGPU::EncodingField< HighBit, LowBit, D > Struct Template Reference

#include "Target/AMDGPU/Utils/AMDGPUBaseInfo.h"

Inheritance diagram for llvm::AMDGPU::EncodingField< HighBit, LowBit, D >:
Inheritance graph
[legend]

Public Types

using ValueType = unsigned
 

Public Member Functions

constexpr EncodingField (ValueType Value)
 
constexpr uint64_t encode () const
 

Static Public Member Functions

static ValueType decode (uint64_t Encoded)
 

Public Attributes

ValueType Value
 

Static Public Attributes

static constexpr unsigned Offset = LowBit
 
static constexpr unsigned Width = HighBit - LowBit + 1
 
static constexpr ValueType Default = D
 

Detailed Description

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
struct llvm::AMDGPU::EncodingField< HighBit, LowBit, D >

Definition at line 348 of file AMDGPUBaseInfo.h.

Member Typedef Documentation

◆ ValueType

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
using llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::ValueType = unsigned

Definition at line 353 of file AMDGPUBaseInfo.h.

Constructor & Destructor Documentation

◆ EncodingField()

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
constexpr llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::EncodingField ( ValueType  Value)
inlineconstexpr

Definition at line 357 of file AMDGPUBaseInfo.h.

Member Function Documentation

◆ decode()

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
static ValueType llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::decode ( uint64_t  Encoded)
inlinestatic

Definition at line 360 of file AMDGPUBaseInfo.h.

◆ encode()

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
constexpr uint64_t llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::encode ( ) const
inlineconstexpr

Member Data Documentation

◆ Default

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
constexpr ValueType llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::Default = D
staticconstexpr

Definition at line 354 of file AMDGPUBaseInfo.h.

◆ Offset

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
constexpr unsigned llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::Offset = LowBit
staticconstexpr

Definition at line 350 of file AMDGPUBaseInfo.h.

◆ Value

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
ValueType llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::Value

◆ Width

template<unsigned HighBit, unsigned LowBit, unsigned D = 0>
constexpr unsigned llvm::AMDGPU::EncodingField< HighBit, LowBit, D >::Width = HighBit - LowBit + 1
staticconstexpr

Definition at line 351 of file AMDGPUBaseInfo.h.


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