mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
Xor.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
namespace
mini_llvm::ops
{
6
7
struct
Xor
{
8
template
<
typename
T>
9
T
operator()
(T x, T y)
const
noexcept
{
10
return
x ^ y;
11
}
12
13
bool
operator()
(
bool
x,
bool
y)
const
noexcept
{
14
return
x != y;
15
}
16
};
17
18
}
// namespace mini_llvm::ops
mini_llvm::ops
Definition
Add.h:9
mini_llvm::ops::Xor
Definition
Xor.h:7
mini_llvm::ops::Xor::operator()
bool operator()(bool x, bool y) const noexcept
Definition
Xor.h:13
mini_llvm::ops::Xor::operator()
T operator()(T x, T y) const noexcept
Definition
Xor.h:9
include
mini-llvm
common
ops
Xor.h
Generated by
1.17.0