mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
BinaryIntegerRelationalOperator.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/BinaryIntegerOperator.h
"
9
#include "
mini-llvm/ir/Type.h
"
10
#include "
mini-llvm/ir/Type/I1.h
"
11
#include "
mini-llvm/ir/Value.h
"
12
#include "
mini-llvm/utils/Compiler.h
"
13
14
namespace
mini_llvm::ir
{
15
16
class
MINI_LLVM_EXPORT
BinaryIntegerRelationalOperator
:
public
BinaryIntegerOperator
{
17
public
:
18
std::unique_ptr<Type>
type
()
const override
{
19
return
std::make_unique<I1>();
20
}
21
22
protected
:
23
BinaryIntegerRelationalOperator
(std::shared_ptr<Value>
lhs
, std::shared_ptr<Value>
rhs
)
24
:
BinaryIntegerOperator
(std::move(
lhs
), std::move(
rhs
)) {}
25
};
26
27
}
// namespace mini_llvm::ir
BinaryIntegerOperator.h
Compiler.h
MINI_LLVM_EXPORT
#define MINI_LLVM_EXPORT
Definition
Compiler.h:17
I1.h
Type.h
Value.h
mini_llvm::ir::BinaryIntegerOperator::lhs
auto & lhs(this Self &&self)
Definition
BinaryIntegerOperator.h:19
mini_llvm::ir::BinaryIntegerOperator::BinaryIntegerOperator
BinaryIntegerOperator(std::shared_ptr< Value > lhs, std::shared_ptr< Value > rhs)
Definition
BinaryIntegerOperator.h:36
mini_llvm::ir::BinaryIntegerOperator::rhs
auto & rhs(this Self &&self)
Definition
BinaryIntegerOperator.h:24
mini_llvm::ir::BinaryIntegerRelationalOperator::type
std::unique_ptr< Type > type() const override
Definition
BinaryIntegerRelationalOperator.h:18
mini_llvm::ir::BinaryIntegerRelationalOperator::BinaryIntegerRelationalOperator
BinaryIntegerRelationalOperator(std::shared_ptr< Value > lhs, std::shared_ptr< Value > rhs)
Definition
BinaryIntegerRelationalOperator.h:23
mini_llvm::ir
Definition
Argument.h:13
include
mini-llvm
ir
Instruction
BinaryIntegerRelationalOperator.h
Generated by
1.17.0