Jlm
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
jlm::rvsdg::BitType Class Referencefinal

#include <type.hpp>

Inheritance diagram for jlm::rvsdg::BitType:
Inheritance graph
[legend]
Collaboration diagram for jlm::rvsdg::BitType:
Collaboration graph
[legend]

Public Member Functions

 ~BitType () noexcept override
 
constexpr BitType (const size_t nbits)
 
size_t nbits () const noexcept
 
std::string debug_string () const override
 
bool operator== (const jlm::rvsdg::Type &other) const noexcept override
 
std::size_t ComputeHash () const noexcept override
 
TypeKind Kind () const noexcept override
 Return the kind of this type. More...
 
- Public Member Functions inherited from jlm::rvsdg::Type
virtual ~Type () noexcept
 
bool operator!= (const jlm::rvsdg::Type &other) const noexcept
 

Static Public Member Functions

static std::shared_ptr< const BitTypeCreate (std::size_t nbits)
 Creates bit type of specified width. More...
 

Private Attributes

size_t nbits_
 

Additional Inherited Members

- Protected Member Functions inherited from jlm::rvsdg::Type
constexpr Type () noexcept
 

Detailed Description

Definition at line 16 of file type.hpp.

Constructor & Destructor Documentation

◆ ~BitType()

jlm::rvsdg::BitType::~BitType ( )
overridedefaultnoexcept

◆ BitType()

constexpr jlm::rvsdg::BitType::BitType ( const size_t  nbits)
inlineexplicitconstexpr

Definition at line 21 of file type.hpp.

Member Function Documentation

◆ ComputeHash()

std::size_t jlm::rvsdg::BitType::ComputeHash ( ) const
overridevirtualnoexcept

Computes a hash value for the instance of the type.

Returns
A hash value.

Implements jlm::rvsdg::Type.

Definition at line 31 of file type.cpp.

◆ Create()

std::shared_ptr< const BitType > jlm::rvsdg::BitType::Create ( std::size_t  nbits)
static

Creates bit type of specified width.

Parameters
nbitsWidth of type
Returns
Type representing bitstring of specified width.

Returns an instance of a bitstring type with specified width. Usually this returns a singleton object instance for the type

Definition at line 45 of file type.cpp.

◆ debug_string()

std::string jlm::rvsdg::BitType::debug_string ( ) const
overridevirtual

Implements jlm::rvsdg::Type.

Definition at line 18 of file type.cpp.

◆ Kind()

TypeKind jlm::rvsdg::BitType::Kind ( ) const
overridevirtualnoexcept

Return the kind of this type.

Implements jlm::rvsdg::Type.

Definition at line 39 of file type.cpp.

◆ nbits()

size_t jlm::rvsdg::BitType::nbits ( ) const
inlinenoexcept

Definition at line 26 of file type.hpp.

◆ operator==()

bool jlm::rvsdg::BitType::operator== ( const jlm::rvsdg::Type other) const
overridevirtualnoexcept

Implements jlm::rvsdg::Type.

Definition at line 24 of file type.cpp.

Member Data Documentation

◆ nbits_

size_t jlm::rvsdg::BitType::nbits_
private

Definition at line 60 of file type.hpp.


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