Equality operators
Synopses
Declared in <llvm/ADT/DirectedGraph.h>
Return true if LHS and RHS name the same table offset.
constexpr
bool
operator==(
Offset const& LHS,
Offset const& RHS);
Return true if LHS and RHS wrap equal iterators.
Return true if LHS and RHS wrap equal iterators.
Return true if A and B wrap the same raw location metadata.
bool
operator==(
RawLocationWrapper const& A,
RawLocationWrapper const& B);
Return true if LHS and RHS wrap equal iterators.
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<GSIHashIterator, FixedStreamArrayIterator<PSHashRecord>, random_access_iterator_tag, unsigned int const> const& LHS,
iterator_adaptor_base<GSIHashIterator, FixedStreamArrayIterator<PSHashRecord>, random_access_iterator_tag, unsigned int const> const& RHS);
Compare fallible iterators for equality.
bool
operator==(
fallible_iterator const& LHS,
fallible_iterator const& RHS);
Return true if LHS and RHS have the same range and value.
bool
operator==(
AddressRangeValuePair const& LHS,
AddressRangeValuePair const& RHS);
Return true if the two values compare equal.
bool
operator==(
DIExpression::FragmentInfo const& A,
DIExpression::FragmentInfo const& B);
Return true if the two values compare equal.
bool
operator==(
DIDerivedType::PtrAuthData Lhs,
DIDerivedType::PtrAuthData Rhs);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<MCSubRegIterator, DiffListIterator, forward_iterator_tag, unsigned short const> const& LHS,
iterator_adaptor_base<MCSubRegIterator, DiffListIterator, forward_iterator_tag, unsigned short const> const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<MCSuperRegIterator, DiffListIterator, forward_iterator_tag, unsigned short const> const& LHS,
iterator_adaptor_base<MCSuperRegIterator, DiffListIterator, forward_iterator_tag, unsigned short const> const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<MCRegUnitIterator, DiffListIterator, forward_iterator_tag, MCRegUnit const> const& LHS,
iterator_adaptor_base<MCRegUnitIterator, DiffListIterator, forward_iterator_tag, MCRegUnit const> const& RHS);
Return true if LHS and RHS wrap equal iterators.
Return true when LHS and RHS refer to the same position.
bool
operator==(
find_iterator const& LHS,
find_iterator const& RHS);
Compare two stream references for equality of impl, offset, and length.
bool
operator==(
WritableBinaryStreamRef const& LHS,
WritableBinaryStreamRef const& RHS);
Compare two stream references for equality of impl, offset, and length.
bool
operator==(
BinaryStreamRef const& LHS,
BinaryStreamRef const& RHS);
Compare two stream references for equality of impl, offset, and length.
bool
operator==(
RefType const& LHS,
RefType const& RHS);
Equality comparison for SmallSet.
template<
typename T,
unsigned int LN,
unsigned int RN,
typename C>
[[nodiscard]]
bool
operator==(
SmallSet<T, LN, C> const& LHS,
SmallSet<T, RN, C> const& RHS);
Compare two attribute encodings for equality.
bool
operator==(
AttributeEncoding const& LHS,
AttributeEncoding const& RHS);
Compare two value iterators for equality.
bool
operator==(
ValueIterator const& A,
ValueIterator const& B);
Compare two name iterators for equality.
bool
operator==(
NameIterator const& A,
NameIterator const& B);
Compare two same‐name iterators for equality.
bool
operator==(
SameNameIterator const& A,
SameNameIterator const& B);
Return true if LHS and RHS are the same position in one expression.
bool
operator==(
iterator const& LHS,
iterator const& RHS);
Return true if both iterators have the same number of entries left.
bool
operator==(
iterator_base const& X,
iterator_base const& Y);
Return true if LHS and RHS wrap equal iterators.
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<WrappedSuccIterator, succ_iterator, random_access_iterator_tag, pair<Loop const*, BasicBlock*>, long, pair<Loop const*, BasicBlock*>*, pair<Loop const*, BasicBlock*>> const& LHS,
iterator_adaptor_base<WrappedSuccIterator, succ_iterator, random_access_iterator_tag, pair<Loop const*, BasicBlock*>, long, pair<Loop const*, BasicBlock*>*, pair<Loop const*, BasicBlock*>> const& RHS);
Compare nodes LHS and RHS using derived‐class equality.
bool
operator==(
DDGNode const& LHS,
DDGNode const& RHS);
Returns true if A is equal to B.
bool
operator==(
DynamicAPInt const& A,
int64_t B);
Returns true if A is equal to B.
bool
operator==(
int64_t A,
DynamicAPInt const& B);
Equality operator.
bool
operator==(
MaterializedIterator const& LHS,
MaterializedIterator const& RHS);
Return true if c1 and c2 reserve the same intervals.
bool
operator==(
ResourceSegments const& c1,
ResourceSegments const& c2);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<value_op_iterator, SDUse*, random_access_iterator_tag, SDValue, long, value_op_iterator*, value_op_iterator*> const& LHS,
iterator_adaptor_base<value_op_iterator, SDUse*, random_access_iterator_tag, SDValue, long, value_op_iterator*, value_op_iterator*> const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<const_symbol_iterator, DenseMapIterator<SymbolsMapKey, Symbol*>, forward_iterator_tag, Symbol const*, long, Symbol const*, Symbol const*> const& LHS,
iterator_adaptor_base<const_symbol_iterator, DenseMapIterator<SymbolsMapKey, Symbol*>, forward_iterator_tag, Symbol const*, long, Symbol const*, Symbol const*> const& RHS);
Compare two DenseMaps of SymbolsMapKey to Symbol pointers for equality.
template<
typename DerivedT,
typename KeyInfoT,
typename BucketT>
bool
operator==(
DenseMapBase<DerivedT, SymbolsMapKey, MachO::Symbol*, KeyInfoT, BucketT> const& LHS,
DenseMapBase<DerivedT, SymbolsMapKey, MachO::Symbol*, KeyInfoT, BucketT> const& RHS);
Return true if LHS and RHS are equal expressions.
bool
operator==(
SMTExpr const& LHS,
SMTExpr const& RHS);
Return true if LHS and RHS are equal sorts.
bool
operator==(
SMTSort const& LHS,
SMTSort const& RHS);
Return true if two HTTP requests describe the same outbound request.
bool
operator==(
HTTPRequest const& A,
HTTPRequest const& B);
Return true if LHS and RHS refer to the same line position.
bool
operator==(
line_iterator const& LHS,
line_iterator const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<const_value_iterator, const_iterator, forward_iterator_tag, DIEValue const> const& LHS,
iterator_adaptor_base<const_value_iterator, const_iterator, forward_iterator_tag, DIEValue const> const& RHS);
Return true if two memory operands compare equal.
bool
operator==(
MachineMemOperand const& LHS,
MachineMemOperand const& RHS);
Return true if L and R refer to the same bundle position.
bool
operator==(
MachineInstrBundleIterator const& L,
MachineInstrBundleIterator const& R);
Return true if L equals const instruction iterator R.
bool
operator==(
MachineInstrBundleIterator const& L,
const_instr_iterator const& R);
Return true if const instruction iterator L equals R.
bool
operator==(
const_instr_iterator const& L,
MachineInstrBundleIterator const& R);
Return true if L equals non‐const instruction iterator R.
bool
operator==(
MachineInstrBundleIterator const& L,
nonconst_instr_iterator const& R);
Return true if non‐const instruction iterator L equals R.
bool
operator==(
nonconst_instr_iterator const& L,
MachineInstrBundleIterator const& R);
Compare a bundle iterator to an instruction pointer.
bool
operator==(
MachineInstrBundleIterator const& L,
const_pointer R);
Return true if instruction pointer L equals bundle iterator R.
bool
operator==(
const_pointer L,
MachineInstrBundleIterator const& R);
Return true if bundle iterator L refers to instruction R.
bool
operator==(
MachineInstrBundleIterator const& L,
const_reference R);
Compare a machine instruction reference with a bundle iterator.
bool
operator==(
const_reference L,
MachineInstrBundleIterator const& R);
Return true if optional alignments Lhs and Rhs are both unset or equal.
bool
operator==(
MaybeAlign Lhs,
MaybeAlign Rhs);
Compare a 64‐bit value with an APInt for equality.
bool
operator==(
uint64_t V1,
APInt const& V2);
Determine if two version numbers are equivalent. If not provided, minor and subminor version numbers are considered to be zero.
bool
operator==(
VersionTuple const& X,
VersionTuple const& Y);
Compare two digests for equality.
bool
operator==(
MD5Result const& LHS,
MD5Result const& RHS);
Return true if Err holds error‐code enum Code.
template<
class T,
class E>
bool
operator==(
ErrorOr<T> const& Err,
E Code)
requires std::is_error_code_enum<E>::value ||
std::is_error_condition_enum<E>::value;
Return true if LHS and RHS contain the same pointers.
template<typename PtrType>
[[nodiscard]]
bool
operator==(
SmallPtrSetImpl<PtrType> const& LHS,
SmallPtrSetImpl<PtrType> const& RHS);
Return true if both iterators refer to the same bucket.
bool
operator==(
StringMapIterBase const& LHS,
StringMapIterBase const& RHS);
Return true if LHS and RHS refer to the same node.
bool
operator==(
ilist_iterator_w_bits const& LHS,
ilist_iterator_w_bits const& RHS);
Return true if LHS and RHS refer to the same node.
bool
operator==(
ilist_iterator const& LHS,
ilist_iterator const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<const_value_op_iterator, Use const*, random_access_iterator_tag, Value const*, long, Value const*, Value const*> const& LHS,
iterator_adaptor_base<const_value_op_iterator, Use const*, random_access_iterator_tag, Value const*, long, Value const*, Value const*> const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<value_op_iterator, Use*, random_access_iterator_tag, Value*, long, Value*, Value*> const& LHS,
iterator_adaptor_base<value_op_iterator, Use*, random_access_iterator_tag, Value*, long, Value*, Value*> const& RHS);
Return true if optional alignment Rhs is unset.
bool
operator==(
std::nullopt_t None,
MaybeAlign Rhs);
Return true if optional alignment Lhs is unset.
bool
operator==(
MaybeAlign Lhs,
std::nullopt_t None);
Compare a signed 64‐bit value with an APSInt for equality.
bool
operator==(
int64_t V1,
APSInt const& V2);
Return true if optional alignment Rhs is set and equals Lhs.
bool
operator==(
Align Lhs,
MaybeAlign Rhs);
Return true if optional alignment Lhs is set and equals Rhs.
bool
operator==(
MaybeAlign Lhs,
Align Rhs);
Comparisons between Align and scalars. Rhs must be positive.
bool
operator==(
Align Lhs,
uint64_t Rhs);
Return true if SmallVector LHS equals ArrayRef RHS.
template<typename T>
[[nodiscard]]
bool
operator==(
SmallVectorImpl<T> const& LHS,
ArrayRef<T> RHS);
Return true if LHS and RHS contain equal elements.
template<typename T>
bool
operator==(
ArrayRef<T> LHS,
ArrayRef<T> RHS);
Return true if alignments Lhs and Rhs are equal.
bool
operator==(
Align Lhs,
Align Rhs);
Return true if LHS and RHS have equal length and contents.
bool
operator==(
StringRef LHS,
StringRef RHS);
Compare two hash codes for equality.
constexpr
bool
operator==(
hash_code const& lhs,
hash_code const& rhs);
Equality comparison for DenseMap.
template<
typename DerivedT,
typename KeyT,
typename ValueT,
typename KeyInfoT,
typename BucketT>
[[nodiscard]]
bool
operator==(
DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT> const& LHS,
DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT> const& RHS);
Return whether LHS and RHS refer to the same bucket.
[[nodiscard]]
bool
operator==(
DenseMapIterator const& LHS,
DenseMapIterator const& RHS);
Compare two early‐increment iterators by underlying position.
bool
operator==(
early_inc_iterator_impl const& LHS,
early_inc_iterator_impl const& RHS);
Return true if A and B refer to the same map entry.
bool
operator==(
ValueInfo const& A,
ValueInfo const& B);
Return true if A is empty.
template<class T>
bool
operator==(
IntrusiveRefCntPtr<T> const& A,
std::nullptr_t B);
Return true if B is empty.
template<class T>
bool
operator==(
std::nullptr_t A,
IntrusiveRefCntPtr<T> const& B);
Return true if raw pointer A equals B's pointee.
template<
class T,
class U>
bool
operator==(
T* A,
IntrusiveRefCntPtr<U> const& B);
Return true if A points to the same object as raw pointer B.
template<
class T,
class U>
bool
operator==(
IntrusiveRefCntPtr<T> const& A,
U* B);
Return true if A and B point to the same object.
template<
class T,
class U>
bool
operator==(
IntrusiveRefCntPtr<T> const& A,
IntrusiveRefCntPtr<U> const& B);
True if both reverse DIE iterators refer to the same position.
bool
operator==(
std::reverse_iterator<DWARFDie::iterator> const& LHS,
std::reverse_iterator<DWARFDie::iterator> const& RHS);
True if LHS and RHS refer to the same unit and debug‐info entry.
bool
operator==(
DWARFDie const& LHS,
DWARFDie const& RHS);
True if both location expressions have the same range and expression bytes.
bool
operator==(
DWARFLocationExpression const& L,
DWARFLocationExpression const& R);
True if both ranges have the same section index, LowPC, and HighPC.
bool
operator==(
DWARFAddressRange const& LHS,
DWARFAddressRange const& RHS);
True if both iterators refer to the same DIE.
bool
operator==(
DWARFDie::iterator const& LHS,
DWARFDie::iterator const& RHS);
True if both attribute iterators refer to the same DIE and attribute index.
bool
operator==(
attribute_iterator const& LHS,
attribute_iterator const& RHS);
Check pointer identity (not value) of identifier and data.
bool
operator==(
MemoryBufferRef const& LHS,
MemoryBufferRef const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base const& LHS,
iterator_adaptor_base const& RHS);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
int32_t L,
ScaledNumber<DigitsT> const& R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
ScaledNumber<DigitsT> const& L,
int32_t R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
int64_t L,
ScaledNumber<DigitsT> const& R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
ScaledNumber<DigitsT> const& L,
int64_t R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
uint32_t L,
ScaledNumber<DigitsT> const& R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
ScaledNumber<DigitsT> const& L,
uint32_t R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
uint64_t L,
ScaledNumber<DigitsT> const& R);
Return true if L equals R.
template<class DigitsT>
bool
operator==(
ScaledNumber<DigitsT> const& L,
uint64_t R);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<const_succ_iterator, Use const*, random_access_iterator_tag, BasicBlock const*, long, BasicBlock const*, BasicBlock const*> const& LHS,
iterator_adaptor_base<const_succ_iterator, Use const*, random_access_iterator_tag, BasicBlock const*, long, BasicBlock const*, BasicBlock const*> const& RHS);
Return true if LHS and RHS wrap equal iterators.
bool
operator==(
iterator_adaptor_base<succ_iterator, Use*, random_access_iterator_tag, BasicBlock*, long, BasicBlock*, BasicBlock*> const& LHS,
iterator_adaptor_base<succ_iterator, Use*, random_access_iterator_tag, BasicBlock*, long, BasicBlock*, BasicBlock*> const& RHS);
Compare two unions for equality of their opaque bit patterns.
bool
operator==(
PointerUnion lhs,
PointerUnion rhs);
Return Value
-
True if both offsets have the same value.
-
True if
LHSandRHSwrap equal iterators. -
True if
AandBwrap the same raw location metadata. -
True if both are end values, or both are non‐end values whose underlying iterators compare equal
-
True if both pairs have the same range and value.
-
true if the two values compare equal.
-
True if the iterators refer to the same position.
-
true if both references have the same impl, offset, and length.
-
True if both sets contain the same elements.
-
True if both encodings have the same index and form.
-
True if both iterators refer to the same index and offset.
-
True if both iterators refer to the same name index position.
-
True if both iterators refer to the same data offset.
-
True if both iterators refer to the same expression and offset.
-
True if both iterators have the same number of entries left.
-
True if the nodes compare equal.
-
True if
AequalsB. -
True if
LHSandRHSrefer to the same element. -
True if c1 and c2 reserve the same intervals.
-
True if both maps have the same size and equal symbol values.
-
True if
LHSandRHSare equal expressions. -
True if
LHSandRHSare equal sorts. -
True if the requests describe the same outbound request.
-
trueif the iterators are equal. -
True if the operands compare equal.
-
True if
LandRrefer to the same bundle position. -
True if
Lequals const instruction iteratorR. -
True if const instruction iterator
LequalsR. -
True if
Lequals non‐const instruction iteratorR. -
True if non‐const instruction iterator
LequalsR. -
True if
Lequals instruction pointerR. -
True if instruction pointer
Lequals bundle iteratorR. -
True if bundle iterator
Lrefers to instructionR. -
True if instruction reference
Lequals bundle iteratorR. -
True if both are unset or both are set and equal.
-
True if
V1equalsV2. -
trueif the versions are equivalent. -
True if both digests contain the same bytes.
-
True if
Err'serror equalsCode. -
True if
LHSandRHScontain the same pointers. -
True if both iterators refer to the same bucket.
-
True if
LHSandRHSrefer to the same node. -
True if
Rhsis unset. -
True if
Lhsis unset. -
true if
V1equalsV2 -
True if
Rhsis set and equalsLhs. -
True if
Lhsis set and equalsRhs. -
True if
LhsequalsRhsbytes. -
True if
LHSequalsRHS. -
True if
LHSandRHScontain equal elements. -
True if the alignments are equal.
-
True if
LHSandRHScompare equal. -
True if both hash codes wrap the same value.
-
True if both maps have the same size and contents.
-
True if both iterators share the same underlying position.
-
True if the operands refer to the same map entry.
-
True if
Ais empty. -
True if
Bis empty. -
True if
AequalsB'spointee. -
True if
Apoints to the same object asB. -
True if
AandBpoint to the same object. -
True if both reverse iterators refer to the same position.
-
True if both DIEs refer to the same unit and debug‐info entry.
-
true if
LandRare equal. -
true if
LHSandRHSare equal. -
True if both iterators refer to the same DIE.
-
True if both iterators refer to the same DIE and attribute index.
-
True if
LHSandRHSrefer to the same buffer pointers. -
True if
LequalsR. -
True if
lhsandrhshave the same opaque bits.
Parameters
Name |
Description |
LHS |
First offset to compare. |
RHS |
Second offset to compare. |
A |
Left‐hand raw location wrapper. |
B |
Right‐hand raw location wrapper. |
Lhs |
Left‐hand pointer‐auth data. |
Rhs |
Right‐hand pointer‐auth data. |
X |
First iterator to compare. |
Y |
Second iterator to compare. |
c1 |
First resource‐segment set. |
c2 |
Second resource‐segment set. |
L |
Left‐hand bundle iterator. |
R |
Right‐hand bundle iterator. |
V1 |
Left‐hand 64‐bit value |
V2 |
Right‐hand APInt |
Err |
ErrorOr whose stored error is compared. |
Code |
Error‐code or error‐condition enum to compare against. |
None |
Tag representing an unset optional. |
lhs |
Left‐hand hash code. |
rhs |
Right‐hand hash code. |
Created with MrDocs