Jlm
Loading...
Searching...
No Matches
TestType.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2025 Nico Reißmann <nico.reissmann@gmail.com>
3 * See COPYING for terms of redistribution.
4 */
5
6#ifndef JLM_RVSDG_TESTTYPE_HPP
7#define JLM_RVSDG_TESTTYPE_HPP
8
9#include <jlm/rvsdg/type.hpp>
10
11namespace jlm::rvsdg
12{
13
17class TestType final : public Type
18{
19public:
21
25
26 [[nodiscard]] std::string
27 debug_string() const override;
28
29 bool
30 operator==(const Type & other) const noexcept override;
31
32 [[nodiscard]] std::size_t
34
37
40
43
46};
47
48}
49
50#endif
~TestType() noexcept override
std::string debug_string() const override
Definition TestType.cpp:33
TypeKind Kind() const noexcept override
Return the kind of this type.
Definition TestType.cpp:54
static std::shared_ptr< const TestType > createStateType()
Definition TestType.cpp:60
static std::shared_ptr< const TestType > createValueType()
Definition TestType.cpp:67
bool operator==(const Type &other) const noexcept override
Definition TestType.cpp:39
std::size_t ComputeHash() const noexcept override
Definition TestType.cpp:46
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