LLVM API Documentation

LoopDependenceAnalysis.cpp File Reference

#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/LoopDependenceAnalysis.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/Instructions.h"
#include "llvm/Operator.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetData.h"

Include dependency graph for LoopDependenceAnalysis.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "lda"

Functions

 STATISTIC (NumAnswered,"Number of dependence queries answered")
 STATISTIC (NumAnalysed,"Number of distinct dependence pairs analysed")
 STATISTIC (NumDependent,"Number of pairs with dependent accesses")
 STATISTIC (NumIndependent,"Number of pairs with independent accesses")
 STATISTIC (NumUnknown,"Number of pairs with unknown accesses")
LoopPass * llvm::createLoopDependenceAnalysisPass ()
static bool IsMemRefInstr (const Value *V)
static void GetMemRefInstrs (const Loop *L, SmallVectorImpl< Instruction * > &Memrefs)
static bool IsLoadOrStoreInst (Value *I)
static Value * GetPointerOperand (Value *I)
static AliasAnalysis::AliasResult UnderlyingObjectsAlias (AliasAnalysis *AA, const Value *A, const Value *B)
static const SCEV * GetZeroSCEV (ScalarEvolution *SE)
static void PrintLoopInfo (raw_ostream &OS, LoopDependenceAnalysis *LDA, const Loop *L)

Variables

static RegisterPass
< LoopDependenceAnalysis > 
R ("lda","Loop Dependence Analysis", false, true)


Define Documentation

#define DEBUG_TYPE   "lda"

Definition at line 22 of file LoopDependenceAnalysis.cpp.


Function Documentation

static void GetMemRefInstrs ( const Loop *  L,
SmallVectorImpl< Instruction * > &  Memrefs 
) [static]

static Value* GetPointerOperand ( Value *  I  )  [static]

Definition at line 76 of file LoopDependenceAnalysis.cpp.

References llvm_unreachable.

static const SCEV* GetZeroSCEV ( ScalarEvolution *  SE  )  [inline, static]

static bool IsLoadOrStoreInst ( Value *  I  )  [static]

Definition at line 72 of file LoopDependenceAnalysis.cpp.

static bool IsMemRefInstr ( const Value *  V  )  [inline, static]

static void PrintLoopInfo ( raw_ostream &  OS,
LoopDependenceAnalysis *  LDA,
const Loop *  L 
) [static]

STATISTIC ( NumUnknown  ,
"Number of pairs with unknown accesses"   
)

STATISTIC ( NumIndependent  ,
"Number of pairs with independent accesses"   
)

STATISTIC ( NumDependent  ,
"Number of pairs with dependent accesses"   
)

STATISTIC ( NumAnalysed  ,
"Number of distinct dependence pairs analysed"   
)

STATISTIC ( NumAnswered  ,
"Number of dependence queries answered"   
)

static AliasAnalysis::AliasResult UnderlyingObjectsAlias ( AliasAnalysis *  AA,
const Value *  A,
const Value *  B 
) [static]


Variable Documentation

RegisterPass<LoopDependenceAnalysis> R("lda","Loop Dependence Analysis", false, true) [static]