Skip to content

Commit f6b3fbb

Browse files
committed
Move PointerDiffInfoValues to VPlan.h
1 parent 5019914 commit f6b3fbb

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

llvm/include/llvm/Analysis/LoopAccessAnalysis.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -448,20 +448,6 @@ struct PointerDiffInfo {
448448
NeedsFreeze(NeedsFreeze) {}
449449
};
450450

451-
/// A pair of pointers that could overlap across a loop iteration.
452-
struct PointerDiffInfoValues {
453-
/// The pointer being read from
454-
Value *Src;
455-
/// The pointer being stored to
456-
Value *Sink;
457-
458-
PointerDiffInfoValues(const SCEV *SrcStart, const SCEV *SinkStart,
459-
SCEVExpander Exp, Instruction *Loc)
460-
: Src(Exp.expandCodeFor(SrcStart, SrcStart->getType(), Loc)),
461-
Sink(Exp.expandCodeFor(SinkStart, SinkStart->getType(), Loc)) {}
462-
PointerDiffInfoValues(Value *Src, Value *Sink) : Src(Src), Sink(Sink) {}
463-
};
464-
465451
/// Holds information about the memory runtime legality checks to verify
466452
/// that a group of pointers do not overlap.
467453
class RuntimePointerChecking {

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,6 +3827,20 @@ inline bool isUniformAfterVectorization(VPValue *VPV) {
38273827
bool isHeaderMask(VPValue *V, VPlan &Plan);
38283828
} // end namespace vputils
38293829

3830+
/// A pair of pointers that could overlap across a loop iteration.
3831+
struct PointerDiffInfoValues {
3832+
/// The pointer being read from
3833+
Value *Src;
3834+
/// The pointer being stored to
3835+
Value *Sink;
3836+
3837+
PointerDiffInfoValues(const SCEV *SrcStart, const SCEV *SinkStart,
3838+
SCEVExpander Exp, Instruction *Loc)
3839+
: Src(Exp.expandCodeFor(SrcStart, SrcStart->getType(), Loc)),
3840+
Sink(Exp.expandCodeFor(SinkStart, SinkStart->getType(), Loc)) {}
3841+
PointerDiffInfoValues(Value *Src, Value *Sink) : Src(Src), Sink(Sink) {}
3842+
};
3843+
38303844
} // end namespace llvm
38313845

38323846
#endif // LLVM_TRANSFORMS_VECTORIZE_VPLAN_H

0 commit comments

Comments
 (0)