GCC Middle and Back End API Reference
integer-with-unit.h File Reference
#include "analyzer/integer.h"
#include "analyzer/units.h"
Include dependency graph for integer-with-unit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ana::integer_with_unit< Unit >

Namespaces

namespace  ana

Typedefs

using ana::concrete_bit_size = integer_with_unit<units::bit>
using ana::concrete_bit_offset = integer_with_unit<units::bit>
using ana::concrete_byte_size = integer_with_unit<units::byte>
using ana::concrete_byte_offset = integer_with_unit<units::byte>

Functions

integer_with_unit< units::bit > ana::operator""_bit (unsigned long long v)
integer_with_unit< units::bit > ana::operator""_bits (unsigned long long v)
integer_with_unit< units::byte > ana::operator""_byte (unsigned long long v)
integer_with_unit< units::byte > ana::operator""_bytes (unsigned long long v)
integer_with_unit< units::bit > ana::bits_from_bytes (integer_with_unit< units::byte > bytes)
bool ana::maybe_bytes_from_bits (integer_with_unit< units::bit > bits, integer_with_unit< units::byte > *out)
template<typename Unit>
bool ana::operator== (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
template<typename Unit>
bool ana::operator!= (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
bool ana::operator== (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
bool ana::operator== (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
bool ana::operator!= (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
bool ana::operator!= (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
template<typename Unit>
integer_with_unit< Unit > ana::operator+ (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
integer_with_unit< units::bit > ana::operator+ (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
integer_with_unit< units::bit > ana::operator+ (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
template<typename Unit>
integer_with_unit< Unit > ana::operator- (const integer_with_unit< Unit > &i)
template<typename Unit>
integer_with_unit< Unit > ana::operator- (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
integer_with_unit< units::bit > ana::operator- (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
integer_with_unit< units::bit > ana::operator- (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
template<typename Unit>
integer_with_unit< Unit > ana::operator* (const integer_with_unit< Unit > &lhs, const integer &rhs)
template<typename Unit>
integer_with_unit< Unit > ana::operator* (const integer &lhs, const integer_with_unit< Unit > &rhs)
concrete_byte_offset ana::round_bit_to_lowest_byte (concrete_bit_offset bit_offset)
concrete_bit_offset ana::bit_within_byte (concrete_bit_offset bit_offset)
bool ana::get_type_size (const_tree type, concrete_bit_size *out)
concrete_bit_offset ana::convert_from_bit_offset_t (bit_offset_t)
concrete_bit_size ana::convert_from_bit_size_t (bit_size_t)
integer_with_unit< units::byte > ana::convert_from_byte_offset_t (byte_offset_t)
integer_with_unit< units::byte > ana::convert_from_byte_size_t (byte_size_t)
bit_offset_t ana::convert_to_bit_offset_t (concrete_bit_offset)
bit_size_t ana::convert_to_bit_size_t (concrete_bit_size)
byte_offset_t ana::convert_to_byte_offset_t (concrete_byte_offset)
byte_size_t ana::convert_to_byte_size_t (concrete_byte_size)
template<typename ConcreteValueType>
bool ana::eval_comparison_p (ConcreteValueType a, enum tree_code op, ConcreteValueType b)