LLVM API Documentation
#include <AliasSetTracker.h>
Definition at line 254 of file AliasSetTracker.h.
| typedef ilist<AliasSet>::iterator llvm::AliasSetTracker::iterator |
Definition at line 368 of file AliasSetTracker.h.
Definition at line 369 of file AliasSetTracker.h.
| llvm::AliasSetTracker::AliasSetTracker | ( | AliasAnalysis & | aa | ) | [inline, explicit] |
AliasSetTracker ctor - Create an empty collection of AliasSets, and use the specified alias analysis object to disambiguate load and store addresses.
Definition at line 284 of file AliasSetTracker.h.
| llvm::AliasSetTracker::~AliasSetTracker | ( | ) | [inline] |
add methods - These methods are used to add different types of instructions to the alias sets. Adding a new instruction can result in one of three actions happening:
1. If the instruction doesn't alias any other sets, create a new set. 2. If the instruction aliases exactly one set, add it to the set 3. If the instruction aliases multiple sets, merge the sets, and add the instruction to the result.
These methods return true if inserting the instruction resulted in the addition of a new alias set (i.e., the pointer did not alias anything).
Definition at line 273 of file AliasSetTracker.cpp.
Definition at line 280 of file AliasSetTracker.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), llvm::AliasAnalysis::getTypeStoreSize(), llvm::LoadInst::isVolatile(), and llvm::AliasSet::setVolatile().
Definition at line 289 of file AliasSetTracker.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), llvm::AliasAnalysis::getTypeStoreSize(), llvm::StoreInst::isVolatile(), llvm::AliasSet::setVolatile(), and Val.
Definition at line 312 of file AliasSetTracker.cpp.
References llvm::AliasSet::addCallSite(), AliasSet, llvm::AliasAnalysis::doesNotAccessMemory(), and llvm::CallSite::getInstruction().
| bool llvm::AliasSetTracker::add | ( | InvokeInst * | II | ) | [inline] |
| bool AliasSetTracker::add | ( | Instruction * | I | ) |
| void AliasSetTracker::add | ( | BasicBlock & | BB | ) |
Definition at line 347 of file AliasSetTracker.cpp.
References llvm::BasicBlock::begin(), E, and llvm::BasicBlock::end().
| void AliasSetTracker::add | ( | const AliasSetTracker & | AST | ) |
Definition at line 352 of file AliasSetTracker.cpp.
References AA, llvm::AliasSet::AccessTy, begin(), llvm::AliasSet::begin(), llvm::AliasSet::CallSites, E, end(), llvm::AliasSet::end(), llvm::AliasSet::iterator::getPointer(), llvm::AliasSet::iterator::getSize(), llvm::AliasSet::isVolatile(), llvm::AliasSet::setVolatile(), and llvm::X.
remove methods - These methods are used to remove all entries that might be aliased by the specified instruction. These methods return true if any alias sets were eliminated.
Definition at line 407 of file AliasSetTracker.cpp.
Definition at line 414 of file AliasSetTracker.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), and llvm::AliasAnalysis::getTypeStoreSize().
Definition at line 422 of file AliasSetTracker.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), and llvm::AliasAnalysis::getTypeStoreSize().
Definition at line 444 of file AliasSetTracker.cpp.
References llvm::AliasAnalysis::doesNotAccessMemory().
| bool llvm::AliasSetTracker::remove | ( | InvokeInst * | II | ) | [inline] |
| bool AliasSetTracker::remove | ( | Instruction * | I | ) |
| void AliasSetTracker::remove | ( | AliasSet & | AS | ) |
remove - Remove the specified (potentially non-empty) alias set from the tracker.
Definition at line 380 of file AliasSetTracker.cpp.
References llvm::AliasSet::CallSites, llvm::AliasSet::empty(), llvm::AliasSet::PtrList, llvm::AliasSet::RefCount, and llvm::AliasSet::removeFromTracker().
| void AliasSetTracker::clear | ( | ) |
getAliasSets - Return the alias sets that are active.
Definition at line 329 of file AliasSetTracker.h.
| AliasSet & AliasSetTracker::getAliasSetForPointer | ( | Value * | Pointer, | |
| unsigned | Size, | |||
| bool * | New = 0 | |||
| ) |
getAliasSetForPointer - Return the alias set that the specified pointer lives in. If the New argument is non-null, this method sets the value to true if a new alias set is created to contain the pointer (because the pointer didn't alias anything).
getAliasSetForPointer - Return the alias set that the specified pointer lives in.
Definition at line 251 of file AliasSetTracker.cpp.
References llvm::AliasSet::addPointer(), and AliasSet.
| AliasSet* llvm::AliasSetTracker::getAliasSetForPointerIfExists | ( | Value * | P, | |
| unsigned | Size | |||
| ) | [inline] |
getAliasSetForPointerIfExists - Return the alias set containing the location specified if one exists, otherwise return null.
Definition at line 339 of file AliasSetTracker.h.
containsPointer - Return true if the specified location is represented by this alias set, false otherwise. This does not modify the AST object or alias sets.
containsPointer - Return true if the specified location is represented by this alias set, false otherwise. This does not modify the AST object or alias sets.
Definition at line 223 of file AliasSetTracker.cpp.
| AliasAnalysis& llvm::AliasSetTracker::getAliasAnalysis | ( | ) | const [inline] |
getAliasAnalysis - Return the underlying alias analysis object used by this tracker.
Definition at line 350 of file AliasSetTracker.h.
Referenced by llvm::AliasSet::mergeSetIn().
| void AliasSetTracker::deleteValue | ( | Value * | PtrVal | ) |
deleteValue method - This method is used to remove a pointer value from the AliasSetTracker entirely. It should be used when an instruction is deleted from the program to update the AST. If you don't use this, you would have dangling pointers to deleted instructions.
Definition at line 475 of file AliasSetTracker.cpp.
References llvm::AliasAnalysis::deleteValue(), llvm::AliasAnalysis::doesNotAccessMemory(), llvm::AliasSet::dropRef(), llvm::CallSite::get(), llvm::CallSite::getInstruction(), and llvm::AliasSet::removeCallSite().
copyValue - This method should be used whenever a preexisting value in the program is copied or cloned, introducing a new value. Note that it is ok for clients that use this method to introduce the same value multiple times: if the tracker already knows about a value, it will ignore the request.
Definition at line 509 of file AliasSetTracker.cpp.
References llvm::AliasSet::addPointer(), and llvm::AliasAnalysis::copyValue().
| const_iterator llvm::AliasSetTracker::begin | ( | ) | const [inline] |
Definition at line 371 of file AliasSetTracker.h.
Referenced by add(), containsPointer(), and print().
| const_iterator llvm::AliasSetTracker::end | ( | ) | const [inline] |
Definition at line 372 of file AliasSetTracker.h.
Referenced by add(), containsPointer(), and print().
| iterator llvm::AliasSetTracker::begin | ( | ) | [inline] |
Definition at line 374 of file AliasSetTracker.h.
| iterator llvm::AliasSetTracker::end | ( | ) | [inline] |
Definition at line 375 of file AliasSetTracker.h.
| void AliasSetTracker::print | ( | std::ostream & | OS | ) | const |
Definition at line 567 of file AliasSetTracker.cpp.
References begin(), E, and end().
Referenced by dump(), llvm::operator<<(), and print().
| void llvm::AliasSetTracker::print | ( | std::ostream * | OS | ) | const [inline] |
| void AliasSetTracker::dump | ( | ) | const |
friend class AliasSet [friend] |