@@ -292,9 +292,10 @@ class MemoryDepChecker {
292
292
bool couldPreventStoreLoadForward (unsigned Distance, unsigned TypeByteSize);
293
293
};
294
294
295
- // / This struct holds information about the memory runtime legality check that
296
- // / a group of pointers do not overlap.
297
- struct RuntimePointerChecking {
295
+ // / \brief Holds information about the memory runtime legality checks to verify
296
+ // / that a group of pointers do not overlap.
297
+ class RuntimePointerChecking {
298
+ public:
298
299
struct PointerInfo {
299
300
// / Holds the pointer value that we need to check.
300
301
TrackingVH<Value> PointerValue;
@@ -374,15 +375,6 @@ struct RuntimePointerChecking {
374
375
void groupChecks (MemoryDepChecker::DepCandidates &DepCands,
375
376
bool UseDependencies);
376
377
377
- // / \brief Decide whether we need to issue a run-time check for pointer at
378
- // / index \p I and \p J to prove their independence.
379
- // /
380
- // / If \p PtrPartition is set, it contains the partition number for
381
- // / pointers (-1 if the pointer belongs to multiple partitions). In this
382
- // / case omit checks between pointers belonging to the same partition.
383
- bool needsChecking (unsigned I, unsigned J,
384
- const SmallVectorImpl<int > *PtrPartition) const ;
385
-
386
378
// / \brief Decide if we need to add a check between two groups of pointers,
387
379
// / according to needsChecking.
388
380
bool needsChecking (const CheckingPtrGroup &M, const CheckingPtrGroup &N,
@@ -413,6 +405,16 @@ struct RuntimePointerChecking {
413
405
// / Holds a partitioning of pointers into "check groups".
414
406
SmallVector<CheckingPtrGroup, 2 > CheckingGroups;
415
407
408
+ private:
409
+ // / \brief Decide whether we need to issue a run-time check for pointer at
410
+ // / index \p I and \p J to prove their independence.
411
+ // /
412
+ // / If \p PtrPartition is set, it contains the partition number for
413
+ // / pointers (-1 if the pointer belongs to multiple partitions). In this
414
+ // / case omit checks between pointers belonging to the same partition.
415
+ bool needsChecking (unsigned I, unsigned J,
416
+ const SmallVectorImpl<int > *PtrPartition) const ;
417
+
416
418
// / Holds a pointer to the ScalarEvolution analysis.
417
419
ScalarEvolution *SE;
418
420
};
0 commit comments