mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
UnaryFloatingArithmeticOperator.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
#include <memory>
6
#include <utility>
7
8
#include "
mini-llvm/ir/Instruction/UnaryFloatingOperator.h
"
9
#include "
mini-llvm/ir/Type.h
"
10
#include "
mini-llvm/ir/Value.h
"
11
#include "
mini-llvm/utils/Compiler.h
"
12
13
namespace
mini_llvm::ir
{
14
15
class
MINI_LLVM_EXPORT
UnaryFloatingArithmeticOperator
:
public
UnaryFloatingOperator
{
16
public
:
17
std::unique_ptr<Type>
type
()
const override
{
18
return
value
()->type();
19
}
20
21
protected
:
22
explicit
UnaryFloatingArithmeticOperator
(std::shared_ptr<Value> op)
23
:
UnaryFloatingOperator
(std::move(op)) {}
24
};
25
26
}
// namespace mini_llvm::ir
Compiler.h
MINI_LLVM_EXPORT
#define MINI_LLVM_EXPORT
Definition
Compiler.h:17
Type.h
UnaryFloatingOperator.h
Value.h
mini_llvm::ir::UnaryFloatingArithmeticOperator::type
std::unique_ptr< Type > type() const override
Definition
UnaryFloatingArithmeticOperator.h:17
mini_llvm::ir::UnaryFloatingArithmeticOperator::UnaryFloatingArithmeticOperator
UnaryFloatingArithmeticOperator(std::shared_ptr< Value > op)
Definition
UnaryFloatingArithmeticOperator.h:22
mini_llvm::ir::UnaryFloatingOperator::UnaryFloatingOperator
UnaryFloatingOperator(std::shared_ptr< Value > value)
Definition
UnaryFloatingOperator.h:31
mini_llvm::ir::UnaryFloatingOperator::value
auto & value(this Self &&self)
Definition
UnaryFloatingOperator.h:19
mini_llvm::ir
Definition
Argument.h:13
include
mini-llvm
ir
Instruction
UnaryFloatingArithmeticOperator.h
Generated by
1.17.0