Jlm
Loading...
Searching...
No Matches
jlm
rvsdg
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
15
namespace
jlm::rvsdg
16
{
17
23
class
UnaryOperation
:
public
SimpleOperation
24
{
25
public
:
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
jlm::rvsdg::SimpleOperation
Definition
operation.hpp:57
jlm::rvsdg::SimpleOperation::result
const std::shared_ptr< const rvsdg::Type > & result(size_t index) const noexcept
Definition
operation.cpp:36
jlm::rvsdg::UnaryOperation
Unary operator.
Definition
unary.hpp:24
jlm::rvsdg::UnaryOperation::~UnaryOperation
~UnaryOperation() noexcept override
Definition
unary.cpp:13
jlm::rvsdg::UnaryOperation::UnaryOperation
UnaryOperation(std::shared_ptr< const Type > operand, std::shared_ptr< const Type > result)
Definition
unary.hpp:28
graph.hpp
jlm::rvsdg
Definition
add-sinks.hpp:12
node.hpp
Generated by
1.9.8