LLVM 20.0.0git
|
#include "llvm/Analysis/DependenceAnalysis.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/Delinearization.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "da" |
Functions | |
STATISTIC (TotalArrayPairs, "Array pairs tested") | |
STATISTIC (SeparableSubscriptPairs, "Separable subscript pairs") | |
STATISTIC (CoupledSubscriptPairs, "Coupled subscript pairs") | |
STATISTIC (NonlinearSubscriptPairs, "Nonlinear subscript pairs") | |
STATISTIC (ZIVapplications, "ZIV applications") | |
STATISTIC (ZIVindependence, "ZIV independence") | |
STATISTIC (StrongSIVapplications, "Strong SIV applications") | |
STATISTIC (StrongSIVsuccesses, "Strong SIV successes") | |
STATISTIC (StrongSIVindependence, "Strong SIV independence") | |
STATISTIC (WeakCrossingSIVapplications, "Weak-Crossing SIV applications") | |
STATISTIC (WeakCrossingSIVsuccesses, "Weak-Crossing SIV successes") | |
STATISTIC (WeakCrossingSIVindependence, "Weak-Crossing SIV independence") | |
STATISTIC (ExactSIVapplications, "Exact SIV applications") | |
STATISTIC (ExactSIVsuccesses, "Exact SIV successes") | |
STATISTIC (ExactSIVindependence, "Exact SIV independence") | |
STATISTIC (WeakZeroSIVapplications, "Weak-Zero SIV applications") | |
STATISTIC (WeakZeroSIVsuccesses, "Weak-Zero SIV successes") | |
STATISTIC (WeakZeroSIVindependence, "Weak-Zero SIV independence") | |
STATISTIC (ExactRDIVapplications, "Exact RDIV applications") | |
STATISTIC (ExactRDIVindependence, "Exact RDIV independence") | |
STATISTIC (SymbolicRDIVapplications, "Symbolic RDIV applications") | |
STATISTIC (SymbolicRDIVindependence, "Symbolic RDIV independence") | |
STATISTIC (DeltaApplications, "Delta applications") | |
STATISTIC (DeltaSuccesses, "Delta successes") | |
STATISTIC (DeltaIndependence, "Delta independence") | |
STATISTIC (DeltaPropagations, "Delta propagations") | |
STATISTIC (GCDapplications, "GCD applications") | |
STATISTIC (GCDsuccesses, "GCD successes") | |
STATISTIC (GCDindependence, "GCD independence") | |
STATISTIC (BanerjeeApplications, "Banerjee applications") | |
STATISTIC (BanerjeeIndependence, "Banerjee independence") | |
STATISTIC (BanerjeeSuccesses, "Banerjee successes") | |
INITIALIZE_PASS_BEGIN (DependenceAnalysisWrapperPass, "da", "Dependence Analysis", true, true) INITIALIZE_PASS_END(DependenceAnalysisWrapperPass | |
static void | dumpExampleDependence (raw_ostream &OS, DependenceInfo *DA, ScalarEvolution &SE, bool NormalizeResults) |
static AliasResult | underlyingObjectsAlias (AAResults *AA, const DataLayout &DL, const MemoryLocation &LocA, const MemoryLocation &LocB) |
static bool | isLoadOrStore (const Instruction *I) |
static bool | findGCD (unsigned Bits, const APInt &AM, const APInt &BM, const APInt &Delta, APInt &G, APInt &X, APInt &Y) |
static APInt | floorOfQuotient (const APInt &A, const APInt &B) |
static APInt | ceilingOfQuotient (const APInt &A, const APInt &B) |
static bool | isRemainderZero (const SCEVConstant *Dividend, const SCEVConstant *Divisor) |
static const SCEVConstant * | getConstantPart (const SCEV *Expr) |
static void | dumpSmallBitVector (SmallBitVector &BV) |
Variables | |
static cl::opt< bool > | Delinearize ("da-delinearize", cl::init(true), cl::Hidden, cl::desc("Try to delinearize array references.")) |
static cl::opt< bool > | DisableDelinearizationChecks ("da-disable-delinearization-checks", cl::Hidden, cl::desc("Disable checks that try to statically verify validity of " "delinearized subscripts. Enabling this option may result in incorrect " "dependence vectors for languages that allow the subscript of one " "dimension to underflow or overflow into another dimension.")) |
static cl::opt< unsigned > | MIVMaxLevelThreshold ("da-miv-max-level-threshold", cl::init(7), cl::Hidden, cl::desc("Maximum depth allowed for the recursive algorithm used to " "explore MIV direction vectors.")) |
da | |
Dependence | Analysis |
Dependence | true |
#define DEBUG_TYPE "da" |
Definition at line 70 of file DependenceAnalysis.cpp.
Definition at line 1534 of file DependenceAnalysis.cpp.
References A, B, and llvm::APInt::sdivrem().
|
static |
Definition at line 179 of file DependenceAnalysis.cpp.
References D, F, llvm::inst_begin(), llvm::inst_end(), and OS.
Referenced by llvm::DependenceAnalysisWrapperPass::print(), and llvm::DependenceAnalysisPrinterPass::run().
|
static |
Definition at line 3553 of file DependenceAnalysis.cpp.
References llvm::dbgs(), llvm::SmallBitVector::find_next(), and llvm::SmallBitVector::set_bits().
Referenced by llvm::DependenceInfo::depends().
|
static |
Definition at line 1493 of file DependenceAnalysis.cpp.
References llvm::APInt::abs(), llvm::dbgs(), G, LLVM_DEBUG, llvm::APInt::sdiv(), llvm::APInt::sdivrem(), llvm::APInt::slt(), llvm::APInt::srem(), X, and Y.
Definition at line 1521 of file DependenceAnalysis.cpp.
References A, B, and llvm::APInt::sdivrem().
|
static |
Definition at line 2374 of file DependenceAnalysis.cpp.
INITIALIZE_PASS_BEGIN | ( | DependenceAnalysisWrapperPass | , |
"da" | , | ||
"Dependence Analysis" | , | ||
true | , | ||
true | |||
) |
|
static |
Definition at line 750 of file DependenceAnalysis.cpp.
References I.
Referenced by llvm::DependenceInfo::depends(), and llvm::DependenceInfo::getSplitIteration().
|
static |
Definition at line 1720 of file DependenceAnalysis.cpp.
References llvm::SCEVConstant::getAPInt(), and llvm::APInt::srem().
STATISTIC | ( | BanerjeeApplications | , |
"Banerjee applications" | |||
) |
STATISTIC | ( | BanerjeeIndependence | , |
"Banerjee independence" | |||
) |
STATISTIC | ( | BanerjeeSuccesses | , |
"Banerjee successes" | |||
) |
STATISTIC | ( | CoupledSubscriptPairs | , |
"Coupled subscript pairs" | |||
) |
STATISTIC | ( | DeltaApplications | , |
"Delta applications" | |||
) |
STATISTIC | ( | DeltaIndependence | , |
"Delta independence" | |||
) |
STATISTIC | ( | DeltaPropagations | , |
"Delta propagations" | |||
) |
STATISTIC | ( | DeltaSuccesses | , |
"Delta successes" | |||
) |
STATISTIC | ( | ExactRDIVapplications | , |
"Exact RDIV applications" | |||
) |
STATISTIC | ( | ExactRDIVindependence | , |
"Exact RDIV independence" | |||
) |
STATISTIC | ( | ExactSIVapplications | , |
"Exact SIV applications" | |||
) |
STATISTIC | ( | ExactSIVindependence | , |
"Exact SIV independence" | |||
) |
STATISTIC | ( | ExactSIVsuccesses | , |
"Exact SIV successes" | |||
) |
STATISTIC | ( | GCDapplications | , |
"GCD applications" | |||
) |
STATISTIC | ( | GCDindependence | , |
"GCD independence" | |||
) |
STATISTIC | ( | GCDsuccesses | , |
"GCD successes" | |||
) |
STATISTIC | ( | NonlinearSubscriptPairs | , |
"Nonlinear subscript pairs" | |||
) |
STATISTIC | ( | SeparableSubscriptPairs | , |
"Separable subscript pairs" | |||
) |
STATISTIC | ( | StrongSIVapplications | , |
"Strong SIV applications" | |||
) |
STATISTIC | ( | StrongSIVindependence | , |
"Strong SIV independence" | |||
) |
STATISTIC | ( | StrongSIVsuccesses | , |
"Strong SIV successes" | |||
) |
STATISTIC | ( | SymbolicRDIVapplications | , |
"Symbolic RDIV applications" | |||
) |
STATISTIC | ( | SymbolicRDIVindependence | , |
"Symbolic RDIV independence" | |||
) |
STATISTIC | ( | TotalArrayPairs | , |
"Array pairs tested" | |||
) |
STATISTIC | ( | WeakCrossingSIVapplications | , |
"Weak-Crossing SIV applications" | |||
) |
STATISTIC | ( | WeakCrossingSIVindependence | , |
"Weak-Crossing SIV independence" | |||
) |
STATISTIC | ( | WeakCrossingSIVsuccesses | , |
"Weak-Crossing SIV successes" | |||
) |
STATISTIC | ( | WeakZeroSIVapplications | , |
"Weak-Zero SIV applications" | |||
) |
STATISTIC | ( | WeakZeroSIVindependence | , |
"Weak-Zero SIV independence" | |||
) |
STATISTIC | ( | WeakZeroSIVsuccesses | , |
"Weak-Zero SIV successes" | |||
) |
STATISTIC | ( | ZIVapplications | , |
"ZIV applications" | |||
) |
STATISTIC | ( | ZIVindependence | , |
"ZIV independence" | |||
) |
|
static |
Definition at line 715 of file DependenceAnalysis.cpp.
References llvm::MemoryLocation::AATags, llvm::MemoryLocation::getBeforeOrAfter(), llvm::getUnderlyingObject(), llvm::isIdentifiedObject(), llvm::AAResults::isNoAlias(), llvm::AliasResult::MayAlias, llvm::AliasResult::MustAlias, llvm::AliasResult::NoAlias, and llvm::MemoryLocation::Ptr.
Referenced by llvm::DependenceInfo::depends(), and llvm::DependenceInfo::getSplitIteration().
Dependence Analysis |
Definition at line 142 of file DependenceAnalysis.cpp.
da |
Definition at line 142 of file DependenceAnalysis.cpp.
|
static |
Referenced by llvm::DependenceInfo::depends(), and llvm::DependenceInfo::getSplitIteration().
|
static |
|
static |
Dependence true |
Definition at line 143 of file DependenceAnalysis.cpp.