Jlm
Loading...
Searching...
No Matches
UnitType.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2025 Helge Bahmann <hcb@chaoticmind.net>
3 * See COPYING for terms of redistribution.
4 */
5
6#ifndef JLM_RVSDG_UNITTYPE_HPP
7#define JLM_RVSDG_UNITTYPE_HPP
8
9#include <jlm/rvsdg/type.hpp>
10
11namespace jlm::rvsdg
12{
13
23class UnitType final : public Type
24{
25public:
27
28 std::string
30
31 bool
33
34 std::size_t
36
39
41 Create();
42};
43
44}
45
46#endif
Unit type (type carrying no information)
Definition UnitType.hpp:24
~UnitType() noexcept override
std::size_t ComputeHash() const noexcept override
Definition UnitType.cpp:21
TypeKind Kind() const noexcept override
Return the kind of this type.
Definition UnitType.cpp:27
std::string debug_string() const override
Definition UnitType.cpp:9
static std::shared_ptr< const UnitType > Create()
Definition UnitType.cpp:33
TypeKind
The kinds of types supported in rvsdg.
Definition type.hpp:22
NodeType * TryGetOwnerNode(const rvsdg::Input &input) noexcept
Checks if this is an input to a node of specified type.
Definition node.hpp:872