[llvm] [DependenceAnalysis] Extending SIV to handle fusable loops (PR #128782)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 9 05:41:27 PDT 2025
================
@@ -144,12 +154,25 @@ class LLVM_ABI Dependence {
/// source and destination of the dependence.
virtual unsigned getLevels() const { return 0; }
- /// getDirection - Returns the direction associated with a particular level.
- virtual unsigned getDirection(unsigned Level) const { return DVEntry::ALL; }
+ /// getSameSDLevels - Returns the number of separate SameSD loops surrounding
+ /// the source and destination of the dependence.
+ virtual unsigned getSameSDLevels() const { return 0; }
- /// getDistance - Returns the distance (or NULL) associated with a particular
- /// level.
- virtual const SCEV *getDistance(unsigned Level) const { return nullptr; }
+ /// getDVEntry - Returns the DV entry associated with a regular or a
+ /// SameSD level
+ DVEntry getDVEntry(unsigned Level, bool isSameSD) const;
----------------
kasuga-fj wrote:
Variable names should be camel case so it should be start with an upper-case letter.
https://github.com/llvm/llvm-project/pull/128782
More information about the llvm-commits
mailing list