LLVM API Documentation
#include "llvm/Analysis/AliasAnalysis.h"#include "llvm/Analysis/CaptureTracking.h"#include "llvm/Analysis/Passes.h"#include "llvm/Constants.h"#include "llvm/DerivedTypes.h"#include "llvm/Function.h"#include "llvm/GlobalVariable.h"#include "llvm/Instructions.h"#include "llvm/IntrinsicInst.h"#include "llvm/LLVMContext.h"#include "llvm/Operator.h"#include "llvm/Pass.h"#include "llvm/Target/TargetData.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/GetElementPtrTypeIterator.h"#include <algorithm>
Go to the source code of this file.
Functions | |
| static const GEPOperator * | isGEP (const Value *V) |
| static const Value * | GetGEPOperands (const Value *V, SmallVector< Value *, 16 > &GEPOps) |
| static bool | isKnownNonNull (const Value *V) |
| static bool | isNonEscapingLocalObject (const Value *V) |
| static bool | isObjectSmallerThan (const Value *V, unsigned Size, const TargetData &TD) |
| ImmutablePass * | llvm::createNoAAPass () |
| ImmutablePass * | llvm::createBasicAliasAnalysisPass () |
| static bool | IndexOperandsEqual (Value *V1, Value *V2, LLVMContext &Context) |
Variables | |
| static RegisterPass< NoAA > | U ("no-aa","No Alias Analysis (always returns 'may' alias)", true, true) |
| static RegisterAnalysisGroup < AliasAnalysis > | V (U) |
| static RegisterPass < BasicAliasAnalysis > | X ("basicaa","Basic Alias Analysis (default AA impl)", false, true) |
| static RegisterAnalysisGroup < AliasAnalysis, true > | Y (X) |
| static const Value* GetGEPOperands | ( | const Value * | V, | |
| SmallVector< Value *, 16 > & | GEPOps | |||
| ) | [static] |
Definition at line 45 of file BasicAliasAnalysis.cpp.
References llvm::SmallVectorImpl< T >::begin(), llvm::SmallVectorImpl< T >::empty(), llvm::SmallVectorImpl< T >::end(), llvm::SmallVectorImpl< T >::erase(), G, llvm::SmallVectorImpl< T >::insert(), and isGEP().
| static bool IndexOperandsEqual | ( | Value * | V1, | |
| Value * | V2, | |||
| LLVMContext & | Context | |||
| ) | [static] |
Definition at line 499 of file BasicAliasAnalysis.cpp.
References C2, llvm::Type::getInt64Ty(), llvm::ConstantExpr::getSExt(), and llvm::Value::getType().
| static const GEPOperator* isGEP | ( | const Value * | V | ) | [static] |
Definition at line 41 of file BasicAliasAnalysis.cpp.
References llvm::dyn_cast().
Referenced by GetGEPOperands().
isKnownNonNull - Return true if we know that the specified value is never null.
Definition at line 67 of file BasicAliasAnalysis.cpp.
References A, GV, and llvm::GlobalValue::hasExternalWeakLinkage().
isNonEscapingLocalObject - Return true if the pointer is to a function-local object that never escapes from the function.
Definition at line 83 of file BasicAliasAnalysis.cpp.
References A, llvm::isNoAliasCall(), and llvm::PointerMayBeCaptured().
| static bool isObjectSmallerThan | ( | const Value * | V, | |
| unsigned | Size, | |||
| const TargetData & | TD | |||
| ) | [static] |
isObjectSmallerThan - Return true if we can prove that the object specified by V is smaller than Size.
Definition at line 104 of file BasicAliasAnalysis.cpp.
References A, AI, llvm::SequentialType::getElementType(), llvm::GlobalValue::getType(), llvm::AllocationInst::getType(), llvm::TargetData::getTypeAllocSize(), GV, llvm::AllocationInst::isArrayAllocation(), and llvm::Type::isSized().
char ID [static] |
Definition at line 139 of file BasicAliasAnalysis.cpp.
RegisterPass<NoAA> U("no-aa","No Alias Analysis (always returns 'may' alias)", true, true) [static] |
Referenced by llvm::Calculate().
RegisterAnalysisGroup<AliasAnalysis> V(U) [static] |
Referenced by llvm::TypeMap< llvm::ArrayValType, llvm::ArrayType >::add(), llvm::ExecutionEngine::addGlobalMapping(), llvm::FoldingSetNodeID::AddString(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), BuildSubAggregate(), llvm::Calculate(), llvm::CloneTrace(), llvm::Compress(), llvm::ConstantFoldCall(), llvm::IRBuilder< true, llvm::TargetFolder >::CreateAggregateRet(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), llvm::Constant::destroyConstantImpl(), llvm::BitstreamWriter::Emit(), llvm::StringMap< llvm::StringPool::PooledString >::erase(), FindPHIToPartitionLoops(), llvm::BitstreamWriter::FlushToWord(), FoldCondBranchOnPHI(), llvm::TypeMap< llvm::ArrayValType, llvm::ArrayType >::get(), llvm::MDNode::get(), llvm::CallSite::get(), llvm::BitcodeReaderValueList::getConstantFwdRef(), llvm::EVT::getEVTString(), llvm::PseudoSourceValue::getFixedStack(), llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::getFromOpaqueValue(), llvm::PointerUnion3< PT1, PT2, PT3 >::getFromOpaqueValue(), llvm::PointerUnion< llvm::PointerUnion, PT3 >::getFromOpaqueValue(), GetNegatedExpression(), llvm::SelectionDAG::getNode(), llvm::BlackfinRegisterInfo::getReservedRegs(), llvm::SelectionDAG::getShuffleScalarElt(), llvm::SCEVUnknown::getType(), llvm::SCEVConstant::getType(), llvm::EVT::getTypeForEVT(), llvm::Value::getUnderlyingObject(), getUnderlyingObjectForInstr(), llvm::SCEVUnknown::getValue(), llvm::SCEVConstant::getValue(), llvm::BitcodeReaderMDValueList::getValueFwdRef(), llvm::BitcodeReaderValueList::getValueFwdRef(), InstallGlobalCtors(), llvm::TargetLowering::isConsecutiveLoad(), llvm::TargetLowering::isGAPlusOffset(), llvm::SCEVUnknown::isLoopInvariant(), isNegatibleForFree(), llvm::ISD::isScalarToVector(), llvm::Link(), LLVMGetInstructionCallConv(), LLVMSetInstructionCallConv(), LowerBuildVectorv16i8(), LowerBuildVectorv8i16(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::SPU::LowerV2I64Splat(), LowerVAARG(), llvm::APFloat::mod(), llvm::raw_ostream::operator<<(), llvm::LatencyPriorityQueue::pop(), llvm::SCEVUnknown::print(), llvm::SCEVConstant::print(), llvm::MachineInstr::print(), llvm::BitstreamCursor::Read64(), llvm::APFloat::remainder(), llvm::RemapInstruction(), SimplifyCondBranchToCondBranch(), llvm::Value::stripPointerCasts(), StripSymtab(), llvm::SymbolTableListTraits< ValueSubClass, ItemParentClass >::transferNodesFromList(), llvm::ExecutionEngine::updateGlobalMapping(), llvm::Interpreter::visitCallSite(), and WriteConstants().
RegisterPass<BasicAliasAnalysis> X("basicaa","Basic Alias Analysis (default AA impl)", false, true) [static] |
RegisterAnalysisGroup<AliasAnalysis, true> Y(X) [static] |