|
Yume
|
A built-in integral type, such as I32 or Bool. More...
#include <type.hpp>


Public Member Functions | |
| Int (string name, int size, bool is_signed) | |
| auto | size () const -> int |
| auto | is_signed () const -> bool |
| auto | name () const -> string override |
| auto | in_range (int64_t num) const -> bool |
Public Member Functions inherited from yume::ty::BaseType | |
| BaseType (const BaseType &) noexcept=delete | |
| BaseType (BaseType &&) noexcept=delete | |
| auto | operator= (const BaseType &) noexcept -> BaseType &=delete |
| auto | operator= (BaseType &&) noexcept -> BaseType &=delete |
| virtual | ~BaseType ()=default |
| auto | kind () const -> Kind |
| auto | base_name () const -> string |
| virtual auto | name () const -> string=0 |
Additional Inherited Members | |
Protected Member Functions inherited from yume::ty::BaseType | |
| BaseType (Kind kind, string name) | |
|
inline |
| auto yume::ty::Int::in_range | ( | int64_t | num | ) | const -> bool |
Definition at line 536 of file type.cpp.
References yume::ty::detail::minmax_for_bits().
Referenced by yume::semantic::literal_cast().
|
inline |
Definition at line 42 of file type.hpp.
Referenced by yume::Compiler::expression().
|
inlineoverridevirtual |
Implements yume::ty::BaseType.
Definition at line 43 of file type.hpp.
References yume::ty::BaseType::base_name().