LLVM API Documentation
#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"
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 DEBUG_TYPE "lda" |
Definition at line 22 of file LoopDependenceAnalysis.cpp.
| static void GetMemRefInstrs | ( | const Loop * | L, | |
| SmallVectorImpl< Instruction * > & | Memrefs | |||
| ) | [static] |
Definition at line 62 of file LoopDependenceAnalysis.cpp.
References llvm::LoopBase< BlockT, LoopT >::block_begin(), llvm::LoopBase< BlockT, LoopT >::block_end(), IsMemRefInstr(), and llvm::SmallVectorImpl< T >::push_back().
Referenced by PrintLoopInfo().
| static const SCEV* GetZeroSCEV | ( | ScalarEvolution * | SE | ) | [inline, static] |
Definition at line 95 of file LoopDependenceAnalysis.cpp.
References llvm::ScalarEvolution::getConstant(), llvm::ScalarEvolution::getContext(), llvm::Type::getInt32Ty(), and L.
Definition at line 72 of file LoopDependenceAnalysis.cpp.
Definition at line 57 of file LoopDependenceAnalysis.cpp.
References llvm::dyn_cast(), llvm::Instruction::mayReadFromMemory(), and llvm::Instruction::mayWriteToMemory().
Referenced by GetMemRefInstrs(), and llvm::LoopDependenceAnalysis::isDependencePair().
| static void PrintLoopInfo | ( | raw_ostream & | OS, | |
| LoopDependenceAnalysis * | LDA, | |||
| const Loop * | L | |||
| ) | [static] |
Definition at line 322 of file LoopDependenceAnalysis.cpp.
References llvm::SmallVectorImpl< T >::begin(), llvm::LoopDependenceAnalysis::depends(), llvm::LoopBase< BlockT, LoopT >::empty(), llvm::SmallVectorImpl< T >::end(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::LoopBase< BlockT, LoopT >::getLoopDepth(), GetMemRefInstrs(), llvm::LoopDependenceAnalysis::isDependencePair(), llvm::SmallVectorImpl< T >::size(), and llvm::WriteAsOperand().
Referenced by llvm::ScalarEvolution::print(), llvm::LoopDependenceAnalysis::print(), and PrintLoopInfo().
| 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] |
Definition at line 86 of file LoopDependenceAnalysis.cpp.
References llvm::AliasAnalysis::alias(), llvm::Value::getType(), llvm::AliasAnalysis::getTypeStoreSize(), and llvm::Value::getUnderlyingObject().
RegisterPass<LoopDependenceAnalysis> R("lda","Loop Dependence Analysis", false, true) [static] |
Referenced by llvm::DominatorTree::compare(), llvm::ComputeMaskedBits(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldInstOperands(), llvm::FunctionLoweringInfo::CreateRegForValue(), llvm::ScheduleDAGSDNodes::EmitNode(), evaluateFCmpRelation(), evaluateICmpRelation(), llvm::SelectionDAG::FoldSetCC(), llvm::ImutAVLTree< ImutInfo >::foreach(), llvm::MCValue::get(), llvm::getBitcodeModuleProvider(), getVal(), llvm::FunctionLoweringInfo::InitializeRegForValue(), llvm::InlineFunction(), llvm::AliasSet::mergeSetIn(), llvm::ParseBitcodeFile(), llvm::JoinPriorityQueue< llvm::CopyRecSort >::pop(), llvm::BitstreamCursor::Read(), llvm::MachineLocation::set(), llvm::ImutAVLTree< ImutInfo >::size(), llvm::Interpreter::visitBinaryOperator(), llvm::Interpreter::visitFCmpInst(), llvm::Interpreter::visitICmpInst(), and llvm::Interpreter::visitSelectInst().