File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ namespace IGC {
104104 {
105105 return *minor;
106106 }
107- bool operator ==(const iterator& rhs)
107+ bool operator ==(const iterator& rhs) const
108108 {
109109 return (major == rhs.major && minor == rhs.minor );
110110 }
111- bool operator !=(const iterator& rhs)
111+ bool operator !=(const iterator& rhs) const
112112 {
113113 return !(*this == rhs);
114114 }
Original file line number Diff line number Diff line change @@ -1029,15 +1029,15 @@ const KernelArg& KernelArgs::const_iterator::operator*()
10291029 return *m_minor;
10301030}
10311031
1032- bool KernelArgs::const_iterator::operator !=(const const_iterator& iterator)
1032+ bool KernelArgs::const_iterator::operator !=(const const_iterator& iterator) const
10331033{
10341034 if (m_empty)
10351035 return (m_major != iterator.m_major );
10361036 else
10371037 return (m_major != iterator.m_major ) || (m_minor != iterator.m_minor );
10381038}
10391039
1040- bool KernelArgs::const_iterator::operator ==(const const_iterator& iterator)
1040+ bool KernelArgs::const_iterator::operator ==(const const_iterator& iterator) const
10411041{
10421042 if (m_empty)
10431043 return (m_major == iterator.m_major );
Original file line number Diff line number Diff line change @@ -459,13 +459,13 @@ namespace IGC
459459 // / by checking if they point to the same element
460460 // / @param iterator An iterator to compare this iterator
461461 // / @return true if the iterators pare different, false otherwise
462- bool operator !=(const const_iterator& iterator);
462+ bool operator !=(const const_iterator& iterator) const ;
463463
464464 // / @brief Checks whether this iterator and the given iterator are same
465465 // / by checking if they point to the same element
466466 // / @param iterator An iterator to compare this iterator
467467 // / @return true if the iterators are same, false otherwise
468- bool operator ==(const const_iterator& iterator);
468+ bool operator ==(const const_iterator& iterator) const ;
469469
470470 private:
471471 AllocationArgs::const_iterator m_major;
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ namespace IGC
204204
205205 void updateUses ();
206206
207- bool operator ==(const llvm::Function* F) {
207+ bool operator ==(const llvm::Function* F) const {
208208 return this ->F == F;
209209 }
210210
Original file line number Diff line number Diff line change @@ -653,13 +653,13 @@ class LiveBuckets {
653653 node_it != LB->nodeBucketsArray [bucket].bucketVec .end ());
654654 return *this ;
655655 }
656- bool operator ==(const BN_iterator &it2) {
656+ bool operator ==(const BN_iterator &it2) const {
657657 vASSERT (LB == it2.LB && iterateAll == it2.iterateAll );
658658 // NOTE: order of comparisons matters: if different buckets
659659 // then node_its are of different vectors
660660 return (bucket == it2.bucket && node_it == it2.node_it );
661661 }
662- bool operator !=(const BN_iterator &it2) {
662+ bool operator !=(const BN_iterator &it2) const {
663663 vASSERT (LB == it2.LB && iterateAll == it2.iterateAll );
664664 return (!(*this == it2));
665665 }
You can’t perform that action at this time.
0 commit comments