LLVM  4.0.0
Macros | Functions | Variables
IVUsers.cpp File Reference
#include "llvm/Analysis/IVUsers.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/CodeMetrics.h"
#include "llvm/Analysis/LoopAnalysisManager.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
Include dependency graph for IVUsers.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "iv-users"
 

Functions

 INITIALIZE_PASS_BEGIN (IVUsersWrapperPass,"iv-users","Induction Variable Users", false, true) INITIALIZE_PASS_END(IVUsersWrapperPass
 
static bool isInteresting (const SCEV *S, const Instruction *I, const Loop *L, ScalarEvolution *SE, LoopInfo *LI)
 isInteresting - Test whether the given expression is "interesting" when used by the given expression, within the context of analyzing the given loop. More...
 
static bool isSimplifiedLoopNest (BasicBlock *BB, const DominatorTree *DT, const LoopInfo *LI, SmallPtrSetImpl< Loop * > &SimpleLoopNests)
 Return true if all loop headers that dominate this block are in simplified form. More...
 
static const SCEVAddRecExprfindAddRecForLoop (const SCEV *S, const Loop *L)
 

Variables

iv users
 
iv Induction Variable Users
 
iv Induction Variable false
 

Macro Definition Documentation

#define DEBUG_TYPE   "iv-users"

Definition at line 35 of file IVUsers.cpp.

Function Documentation

static const SCEVAddRecExpr* findAddRecForLoop ( const SCEV S,
const Loop L 
)
static

Definition at line 348 of file IVUsers.cpp.

References llvm::MCID::Add, E, I, and L.

Referenced by llvm::IVUsers::getStride().

INITIALIZE_PASS_BEGIN ( IVUsersWrapperPass  ,
"iv-users ,
"Induction Variable Users ,
false  ,
true   
)
static bool isInteresting ( const SCEV S,
const Instruction I,
const Loop L,
ScalarEvolution SE,
LoopInfo LI 
)
static

isInteresting - Test whether the given expression is "interesting" when used by the given expression, within the context of analyzing the given loop.

Definition at line 59 of file IVUsers.cpp.

References llvm::MCID::Add, llvm::LoopBase< N, M >::contains(), llvm::LoopInfoBase< N, M >::getLoopFor(), llvm::Instruction::getParent(), llvm::ScalarEvolution::getSCEVAtScope(), I, and L.

Referenced by llvm::IVUsers::AddUsersImpl().

static bool isSimplifiedLoopNest ( BasicBlock BB,
const DominatorTree DT,
const LoopInfo LI,
SmallPtrSetImpl< Loop * > &  SimpleLoopNests 
)
static

Variable Documentation

iv Induction Variable false

Definition at line 51 of file IVUsers.cpp.

iv users
iv Induction Variable Users