| 56 | : access_context(access_context), barrier_scope(barrier_scope), barrier(barrier) {} |
| 57 | |
| 58 | AccessMap::iterator ApplySingleBufferBarrierFunctor::Infill(AccessMap* accesses, const Iterator& pos_hint, |
| 59 | const AccessRange& range) const { |
| 60 | // The buffer barrier does not need to fill the gaps because barrier |
| 61 | // application to a range without accesses is a no-op. |
| 62 | // Return the pos iterator unchanged to indicate that no entry was created. |
| 63 | return pos_hint; |
| 64 | } |
| 65 | |
| 66 | void ApplySingleBufferBarrierFunctor::operator()(const Iterator& pos) const { |
| 67 | AccessState& access_state = pos->second; |