mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
And.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
And
{
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::And
Definition
And.h:7
mini_llvm::ops::And::operator()
T operator()(T x, T y) const noexcept
Definition
And.h:9
mini_llvm::ops::And::operator()
bool operator()(bool x, bool y) const noexcept
Definition
And.h:13
include
mini-llvm
common
ops
And.h
Generated by
1.17.0