Jlm
Loading...
Searching...
No Matches
unary.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2010 2011 2012 2014 Helge Bahmann <hcb@chaoticmind.net>
3 * Copyright 2011 2012 2013 2014 Nico Reißmann <nico.reissmann@gmail.com>
4 * See COPYING for terms of redistribution.
5 */
6
7#ifndef JLM_RVSDG_UNARY_HPP
8#define JLM_RVSDG_UNARY_HPP
9
10#include <jlm/rvsdg/graph.hpp>
11#include <jlm/rvsdg/node.hpp>
12
13#include <optional>
14
15namespace jlm::rvsdg
16{
17
24{
25public:
26 ~UnaryOperation() noexcept override;
27
28 UnaryOperation(std::shared_ptr<const Type> operand, std::shared_ptr<const Type> result)
29 : SimpleOperation({ std::move(operand) }, { std::move(result) })
30 {}
31};
32
33}
34
35#endif
const std::shared_ptr< const rvsdg::Type > & result(size_t index) const noexcept
Definition operation.cpp:36
Unary operator.
Definition unary.hpp:24
~UnaryOperation() noexcept override
Definition unary.cpp:13
UnaryOperation(std::shared_ptr< const Type > operand, std::shared_ptr< const Type > result)
Definition unary.hpp:28