Jlm
Loading...
Searching...
No Matches
nullary.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2010 2011 2012 2014 Helge Bahmann <hcb@chaoticmind.net>
3 * Copyright 2013 2014 Nico Reißmann <nico.reissmann@gmail.com>
4 * See COPYING for terms of redistribution.
5 */
6
7#ifndef JLM_RVSDG_NULLARY_HPP
8#define JLM_RVSDG_NULLARY_HPP
9
10#include <jlm/rvsdg/node.hpp>
12
13namespace jlm::rvsdg
14{
15
16class Output;
17
22{
23public:
24 ~NullaryOperation() noexcept override;
25
26 explicit NullaryOperation(std::shared_ptr<const Type> resultType)
27 : SimpleOperation({}, { std::move(resultType) })
28 {}
29};
30
31}
32
33#endif
Nullary operator (operator taking no formal arguments)
Definition nullary.hpp:22
~NullaryOperation() noexcept override
Definition nullary.cpp:13
NullaryOperation(std::shared_ptr< const Type > resultType)
Definition nullary.hpp:26
NodeType * TryGetOwnerNode(const rvsdg::Input &input) noexcept
Checks if this is an input to a node of specified type.
Definition node.hpp:872