Tobias Grosser | 7580537 | 2011-04-29 06:27:02 | [diff] [blame] | 1 | //===---------- MayAliasSet.cpp - May-Alais Set for base pointers --------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the MayAliasSet class |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "polly/TempScopInfo.h" |
| 15 | #include "polly/MayAliasSet.h" |
| 16 | |
| 17 | #include "llvm/LLVMContext.h" |
| 18 | #include "llvm/Analysis/RegionInfo.h" |
| 19 | #include "llvm/Analysis/RegionIterator.h" |
| 20 | #include "llvm/Analysis/AliasAnalysis.h" |
| 21 | #include "llvm/Analysis/AliasSetTracker.h" |
| 22 | #include "llvm/Assembly/Writer.h" |
| 23 | #include "llvm/Support/raw_ostream.h" |
| 24 | |
| 25 | #include "llvm/Support/Debug.h" |
| 26 | |
| 27 | using namespace llvm; |
| 28 | using namespace polly; |
| 29 | |
| 30 | void MayAliasSet::print(raw_ostream &OS) const { |
| 31 | OS << "Must alias {"; |
| 32 | |
| 33 | for (const_iterator I = mustalias_begin(), E = mustalias_end(); I != E; ++I) { |
| 34 | WriteAsOperand(OS, *I, false); |
| 35 | OS << ", "; |
| 36 | } |
| 37 | |
| 38 | OS << "} May alias {"; |
| 39 | OS << '}'; |
| 40 | } |
| 41 | |
| 42 | void MayAliasSet::dump() const { |
| 43 | print(dbgs()); |
| 44 | } |
| 45 | |
| 46 | void MayAliasSetInfo::buildMayAliasSets(TempScop &Scop, AliasAnalysis &AA) { |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 | [diff] [blame] | 47 | } |